Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: trick renovate to update dependencies for us #240

Merged
merged 1 commit into from
Feb 12, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 49 additions & 0 deletions templates/typescript_gapic/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
"name": "{{ api.publishName }}",
"version": "0.1.0",
"description": "{{ api.naming.productName }} client for Node.js",
"repository": "googleapis/nodejs-{{ api.naming.productName.toKebabCase() }}",
"license": "Apache-2.0",
"author": "Google LLC",
"files": [
"build/src",
"build/protos"
],
"main": "build/src/index.js",
"scripts": {
"clean": "gts clean",
"compile": "tsc -p . && cp -r protos build/",
"compile-protos": "compileProtos src",
"docs": "jsdoc -c .jsdoc.js",
"docs-test": "linkinator docs",
"fix": "gts fix",
"lint": "gts check",
"predocs-test": "npm run docs",
"prepare": "npm run compile-protos && npm run compile",
"system-test": "c8 mocha build/system-test",
"test": "c8 mocha build/test"
},
"dependencies": {
"google-gax": "^1.12.0"
},
"devDependencies": {
"@types/mocha": "^5.2.5",
"@types/node": "^12.0.0",
"c8": "^6.0.0",
"gts": "^1.0.0",
"jsdoc": "^3.5.5",
"jsdoc-fresh": "^1.0.1",
"jsdoc-region-tag": "^1.0.2",
"linkinator": "^1.5.0",
"mocha": "^6.0.0",
"pack-n-play": "^1.0.0-2",
"null-loader": "^3.0.0",
"ts-loader": "^6.2.1",
"typescript": "~3.6.4",
"webpack": "^4.41.2",
"webpack-cli": "^3.3.10"
},
"engines": {
"node": ">=8.13.0"
}
}
66 changes: 0 additions & 66 deletions templates/typescript_gapic/package.json.njk

This file was deleted.

1 change: 1 addition & 0 deletions templates/typescript_gapic/package.json.njk
4 changes: 2 additions & 2 deletions typescript/src/templater.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const commonParameters: { [name: string]: string } = {

const readFile = util.promisify(fs.readFile);
const readDir = util.promisify(fs.readdir);
const lstat = util.promisify(fs.lstat);
const fsstat = util.promisify(fs.stat);

async function recursiveFileList(
basePath: string,
Expand All @@ -41,7 +41,7 @@ async function recursiveFileList(
const entries = await readDir(directory);
for (const entry of entries) {
const fullPath = path.join(directory, entry);
const stat = await lstat(fullPath);
const stat = await fsstat(fullPath);
if (stat.isDirectory()) {
dirQueue.push(fullPath);
} else if (stat.isFile() && entry.match(nameRegex)) {
Expand Down
49 changes: 49 additions & 0 deletions typescript/test/testdata/dlp/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
"name": "dlp",
"version": "0.1.0",
"description": "Dlp client for Node.js",
"repository": "googleapis/nodejs-dlp",
"license": "Apache-2.0",
"author": "Google LLC",
"files": [
"build/src",
"build/protos"
],
"main": "build/src/index.js",
"scripts": {
"clean": "gts clean",
"compile": "tsc -p . && cp -r protos build/",
"compile-protos": "compileProtos src",
"docs": "jsdoc -c .jsdoc.js",
"docs-test": "linkinator docs",
"fix": "gts fix",
"lint": "gts check",
"predocs-test": "npm run docs",
"prepare": "npm run compile-protos && npm run compile",
"system-test": "c8 mocha build/system-test",
"test": "c8 mocha build/test"
},
"dependencies": {
"google-gax": "^1.12.0"
},
"devDependencies": {
"@types/mocha": "^5.2.5",
"@types/node": "^12.0.0",
"c8": "^6.0.0",
"gts": "^1.0.0",
"jsdoc": "^3.5.5",
"jsdoc-fresh": "^1.0.1",
"jsdoc-region-tag": "^1.0.2",
"linkinator": "^1.5.0",
"mocha": "^6.0.0",
"pack-n-play": "^1.0.0-2",
"null-loader": "^3.0.0",
"ts-loader": "^6.2.1",
"typescript": "~3.6.4",
"webpack": "^4.41.2",
"webpack-cli": "^3.3.10"
},
"engines": {
"node": ">=8.13.0"
}
}
49 changes: 0 additions & 49 deletions typescript/test/testdata/dlp/package.json.baseline

This file was deleted.

1 change: 1 addition & 0 deletions typescript/test/testdata/dlp/package.json.baseline
49 changes: 49 additions & 0 deletions typescript/test/testdata/keymanager/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
"name": "kms",
"version": "0.1.0",
"description": "Kms client for Node.js",
"repository": "googleapis/nodejs-kms",
"license": "Apache-2.0",
"author": "Google LLC",
"files": [
"build/src",
"build/protos"
],
"main": "build/src/index.js",
"scripts": {
"clean": "gts clean",
"compile": "tsc -p . && cp -r protos build/",
"compile-protos": "compileProtos src",
"docs": "jsdoc -c .jsdoc.js",
"docs-test": "linkinator docs",
"fix": "gts fix",
"lint": "gts check",
"predocs-test": "npm run docs",
"prepare": "npm run compile-protos && npm run compile",
"system-test": "c8 mocha build/system-test",
"test": "c8 mocha build/test"
},
"dependencies": {
"google-gax": "^1.12.0"
},
"devDependencies": {
"@types/mocha": "^5.2.5",
"@types/node": "^12.0.0",
"c8": "^6.0.0",
"gts": "^1.0.0",
"jsdoc": "^3.5.5",
"jsdoc-fresh": "^1.0.1",
"jsdoc-region-tag": "^1.0.2",
"linkinator": "^1.5.0",
"mocha": "^6.0.0",
"pack-n-play": "^1.0.0-2",
"null-loader": "^3.0.0",
"ts-loader": "^6.2.1",
"typescript": "~3.6.4",
"webpack": "^4.41.2",
"webpack-cli": "^3.3.10"
},
"engines": {
"node": ">=8.13.0"
}
}
49 changes: 0 additions & 49 deletions typescript/test/testdata/keymanager/package.json.baseline

This file was deleted.

1 change: 1 addition & 0 deletions typescript/test/testdata/keymanager/package.json.baseline
49 changes: 49 additions & 0 deletions typescript/test/testdata/monitoring/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
"name": "monitoring",
"version": "0.1.0",
"description": "Monitoring client for Node.js",
"repository": "googleapis/nodejs-monitoring",
"license": "Apache-2.0",
"author": "Google LLC",
"files": [
"build/src",
"build/protos"
],
"main": "build/src/index.js",
"scripts": {
"clean": "gts clean",
"compile": "tsc -p . && cp -r protos build/",
"compile-protos": "compileProtos src",
"docs": "jsdoc -c .jsdoc.js",
"docs-test": "linkinator docs",
"fix": "gts fix",
"lint": "gts check",
"predocs-test": "npm run docs",
"prepare": "npm run compile-protos && npm run compile",
"system-test": "c8 mocha build/system-test",
"test": "c8 mocha build/test"
},
"dependencies": {
"google-gax": "^1.12.0"
},
"devDependencies": {
"@types/mocha": "^5.2.5",
"@types/node": "^12.0.0",
"c8": "^6.0.0",
"gts": "^1.0.0",
"jsdoc": "^3.5.5",
"jsdoc-fresh": "^1.0.1",
"jsdoc-region-tag": "^1.0.2",
"linkinator": "^1.5.0",
"mocha": "^6.0.0",
"pack-n-play": "^1.0.0-2",
"null-loader": "^3.0.0",
"ts-loader": "^6.2.1",
"typescript": "~3.6.4",
"webpack": "^4.41.2",
"webpack-cli": "^3.3.10"
},
"engines": {
"node": ">=8.13.0"
}
}
Loading