diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9db0926..8255206 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -131,6 +131,7 @@ jobs: with: cache: yarn node-version: 16 + - run: yarn --frozen-lockfile --ignore-scripts - name: Download artifacts uses: actions/download-artifact@v3 - name: Build npm packages diff --git a/package.json b/package.json index b5c1656..bf110a8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@parcel/watcher", - "version": "2.3.0-alpha.2", + "version": "2.3.0-alpha.3", "main": "index.js", "types": "index.d.ts", "repository": { @@ -20,6 +20,7 @@ "index.js", "index.js.flow", "index.d.ts", + "wrapper.js", "package.json", "README.md" ], diff --git a/scripts/build-wasm.js b/scripts/build-wasm.js index 00b2853..694734b 100644 --- a/scripts/build-wasm.js +++ b/scripts/build-wasm.js @@ -25,6 +25,7 @@ fs.writeFileSync(`${dir}/npm/wasm/index.mjs`, js); fs.copyFileSync(`${dir}/wrapper.js`, `${dir}/npm/wasm/wrapper.js`); fs.copyFileSync(`${dir}/wasm/watcher.wasm`, `${dir}/npm/wasm/watcher.wasm`); +fs.cpSync(`${dir}/node_modules/napi-wasm`, `${dir}/npm/wasm/node_modules/napi-wasm`, {recursive: true}); let wasmPkg = { ...pkg }; wasmPkg.name = '@parcel/watcher-wasm'; @@ -38,6 +39,7 @@ wasmPkg.dependencies = { 'is-glob': pkg.dependencies['is-glob'], 'micromatch': pkg.dependencies['micromatch'] }; +wasmPkg.bundledDependencies = ['napi-wasm']; // for stackblitz delete wasmPkg.exports; delete wasmPkg.binary; delete wasmPkg['lint-staged'];