Skip to content

Commit d0e4f74

Browse files
ci(publish): remove project-level .npmrc, generate .npmrc in CI and copy it into out folder during publish
1 parent 5b7fefd commit d0e4f74

3 files changed

Lines changed: 1 addition & 25 deletions

File tree

.npmignore

Lines changed: 0 additions & 23 deletions
This file was deleted.

.npmrc

Lines changed: 0 additions & 2 deletions
This file was deleted.

scripts/release-prep.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ fs.writeFileSync(__dirname + '/../out/package.json', Buffer.from(JSON.stringify(
2020
fs.writeFileSync(__dirname + '/../out/version.txt', Buffer.from(sourceObj.version, 'utf-8'))
2121

2222
fs.cpSync(__dirname + '/../typings', __dirname + '/../out/declarations', { recursive: true })
23+
fs.copyFileSync(__dirname + '/../.npmrc', __dirname + '/../out/.npmrc')
2324
fs.copyFileSync(__dirname + '/../LICENSE', __dirname + '/../out/LICENSE')
2425
fs.copyFileSync(__dirname + '/../README.md', __dirname + '/../out/README.md')
2526
fs.copyFileSync(__dirname + '/../SECURITY.md', __dirname + '/../out/SECURITY.md')

0 commit comments

Comments
 (0)