From 7fa2805f14f02c0ccfd6b4d0e096c772c0ee2701 Mon Sep 17 00:00:00 2001 From: Alexey Ryazanov Date: Mon, 31 Jul 2023 21:38:27 +0500 Subject: [PATCH] chore: remove `.npmignore` from copying to package --- .github/workflows/release.yml | 2 +- .release-it.json | 3 --- package.json | 3 +++ tools/copy-release-files.js | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 779e467..736a3c0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -37,7 +37,7 @@ jobs: - name: Build run: npm run build - - name: Copy declaration files + - name: Copy release files run: npm run copy-release-files - name: Release diff --git a/.release-it.json b/.release-it.json index 05021e0..5c83dec 100644 --- a/.release-it.json +++ b/.release-it.json @@ -5,9 +5,6 @@ "github": { "release": true }, - "npm": { - "publishPath": "./build" - }, "plugins": { "@release-it/conventional-changelog": { "preset": "conventionalcommits", diff --git a/package.json b/package.json index d9cc5d8..9896685 100644 --- a/package.json +++ b/package.json @@ -24,6 +24,9 @@ "curry", "performance" ], + "files": [ + "build" + ], "sideEffects": false, "license": "Apache-2.0", "publishConfig": { diff --git a/tools/copy-release-files.js b/tools/copy-release-files.js index 77f710d..8ca1d91 100644 --- a/tools/copy-release-files.js +++ b/tools/copy-release-files.js @@ -18,7 +18,7 @@ const copyReleaseFiles = async () => { ); await Promise.all( - ['package.json', '.npmignore', 'README.md', 'LICENSE', 'CHANGELOG.md'].map(fileName => + ['package.json', 'README.md', 'LICENSE', 'CHANGELOG.md'].map(fileName => fsExtra.copy( path.join(ROOT_PATH, fileName), path.join(BUILD_PATH, fileName)