Skip to content

Commit

Permalink
fix: make sure npm pack works (#80)
Browse files Browse the repository at this point in the history
* fix: make sure npm pack works

* sourcemaps are back
  • Loading branch information
alexander-fenster authored Oct 28, 2019
1 parent fdc83b1 commit 3ecdf4c
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 8 deletions.
4 changes: 4 additions & 0 deletions templates/typescript_gapic/package.json.njk
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
"author": "Google LLC",
"description": "{{ api.naming.productName }} client for Node.js",
"main": "build/src/index.js",
"files": [
"build/src",
"build/protos"
],
"dependencies": {
"google-gax": "^1.7.5"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@
import * as gax from 'google-gax';
import * as path from 'path';

import * as packageJson from '../../package.json';
import * as protosTypes from '../../protos/protos';
import * as gapicConfig from './{{ service.name.toSnakeCase() }}_client_config.json';

const version = packageJson.version;
const version = require('../../../package.json').version;

export interface ClientOptions extends gax.GrpcClientOptions,
gax.GoogleAuthOptions,
Expand Down
4 changes: 4 additions & 0 deletions typescript/test/testdata/keymanager/package.json.baseline
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
"author": "Google LLC",
"description": "Kms client for Node.js",
"main": "build/src/index.js",
"files": [
"build/src",
"build/protos"
],
"dependencies": {
"google-gax": "^1.7.5"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,10 @@
import * as gax from 'google-gax';
import * as path from 'path';

import * as packageJson from '../../package.json';
import * as protosTypes from '../../protos/protos';
import * as gapicConfig from './key_management_service_client_config.json';

const version = packageJson.version;
const version = require('../../../package.json').version;

export interface ClientOptions extends gax.GrpcClientOptions,
gax.GoogleAuthOptions,
Expand Down
4 changes: 4 additions & 0 deletions typescript/test/testdata/showcase/package.json.baseline
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
"author": "Google LLC",
"description": "Showcase client for Node.js",
"main": "build/src/index.js",
"files": [
"build/src",
"build/protos"
],
"dependencies": {
"google-gax": "^1.7.5"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,10 @@
import * as gax from 'google-gax';
import * as path from 'path';

import * as packageJson from '../../package.json';
import * as protosTypes from '../../protos/protos';
import * as gapicConfig from './echo_client_config.json';

const version = packageJson.version;
const version = require('../../../package.json').version;

export interface ClientOptions extends gax.GrpcClientOptions,
gax.GoogleAuthOptions,
Expand Down
4 changes: 4 additions & 0 deletions typescript/test/testdata/texttospeech/package.json.baseline
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
"author": "Google LLC",
"description": "Texttospeech client for Node.js",
"main": "build/src/index.js",
"files": [
"build/src",
"build/protos"
],
"dependencies": {
"google-gax": "^1.7.5"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,10 @@
import * as gax from 'google-gax';
import * as path from 'path';

import * as packageJson from '../../package.json';
import * as protosTypes from '../../protos/protos';
import * as gapicConfig from './text_to_speech_client_config.json';

const version = packageJson.version;
const version = require('../../../package.json').version;

export interface ClientOptions extends gax.GrpcClientOptions,
gax.GoogleAuthOptions,
Expand Down

0 comments on commit 3ecdf4c

Please sign in to comment.