Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

Commit

Permalink
feat: add default exports (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshi-automation authored and bcoe committed Nov 16, 2019
1 parent 1677eaf commit 870bfd6
Show file tree
Hide file tree
Showing 12 changed files with 262 additions and 116 deletions.
7 changes: 7 additions & 0 deletions linkinator.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"recurse": true,
"skip": [
"https://codecov.io/gh/googleapis/",
"www.googleapis.com"
]
}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"jsdoc-region-tag": "^1.0.2",
"linkinator": "^1.4.0",
"mocha": "^6.1.4",
"pack-n-play": "^1.0.0-2",
"prettier": "^1.17.0",
"typescript": "~3.7.0"
},
Expand All @@ -54,7 +55,7 @@
"system-test": "c8 mocha --timeout=15000 system-test/*.js",
"samples-test": "cd samples/ && npm link ../ && npm test && cd ../",
"predocs-test": "npm run docs",
"docs-test": "linkinator docs -r --skip 'www.npmjs.org/package/@google-cloud/cloudbuild|googleapis.dev.*|github.com.*'"
"docs-test": "linkinator docs"
},
"license": "Apache-2.0",
"engines": {
Expand Down
15 changes: 15 additions & 0 deletions protos/protos.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
// Copyright 2019 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

import * as Long from "long";
import * as $protobuf from "protobufjs";
/** Namespace google. */
export namespace google {
Expand Down
14 changes: 14 additions & 0 deletions protos/protos.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
// Copyright 2019 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

/*eslint-disable block-scoped-var, id-length, no-control-regex, no-magic-numbers, no-prototype-builtins, no-redeclare, no-shadow, no-var, sort-vars*/
(function(global, factory) { /* global define, require, module */

Expand Down
6 changes: 4 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
// ** All changes to this file may be overwritten. **

import * as v1 from './v1';
export {v1};
const CloudBuildClient = v1.CloudBuildClient;
export {CloudBuildClient};
export {v1, CloudBuildClient};
// For compatibility with JavaScript libraries we need to provide this default export:
// tslint:disable-next-line no-default-export
export default {v1, CloudBuildClient};
Loading

0 comments on commit 870bfd6

Please sign in to comment.