-
Notifications
You must be signed in to change notification settings - Fork 367
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support building in CJS and ESM formats (#2296)
* feat: support ESM and CJS formats * update imports to use .js extension * various fixes to get dual formats working * update internal tooling * add .js to imports, fix typing * add gapic-tools to dev deps * rename .jsdoc.js to .cjs * add files under cjs to output * fix merge issue * add files to owlbot ignore * add module tracking string to library version * merge and fix conflicts * revert parse function * add pack-n-play tests * fix merge conflicts * import cleanups in transfer manager tests * create separate packageJSON helper in CJS to avoid breaking esbuild * fix merge conflicts
- Loading branch information
1 parent
ba3f046
commit c848076
Showing
67 changed files
with
670 additions
and
452 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"opts": { | ||
"readme": "./README.md", | ||
"package": "./package.json", | ||
"template": "./node_modules/jsdoc-fresh", | ||
"recurse": true, | ||
"verbose": true, | ||
"destination": "./docs/" | ||
}, | ||
"plugins": ["plugins/markdown", "jsdoc-region-tag"], | ||
"source": { | ||
"excludePattern": "(^|\\/|\\\\)[._]", | ||
"include": ["build/cjs/src"], | ||
"includePattern": "\\.js$" | ||
}, | ||
"templates": { | ||
"copyright": "Copyright 2019 Google, LLC.", | ||
"includeDate": false, | ||
"sourceFiles": false, | ||
"systemName": "@google-cloud/storage", | ||
"theme": "lumen", | ||
"default": { | ||
"outputSourceFiles": false | ||
} | ||
}, | ||
"markdown": { | ||
"idInHeadings": true | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"type": "commonjs" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.