diff --git a/.github/workflows/publish-datatype-parser.yml b/.github/workflows/publish-datatype-parser.yml index 4dc7fdead..cf3a39d85 100644 --- a/.github/workflows/publish-datatype-parser.yml +++ b/.github/workflows/publish-datatype-parser.yml @@ -55,6 +55,13 @@ jobs: registry-url: "https://registry.npmjs.org" - name: Install dependencies + # datatype-parser is an npm workspace package, so install the whole + # workspace from the repo root (overriding this job's package-dir + # default). A scoped `npm ci` from the package dir still fires the root + # lifecycle scripts (postinstall/parquet-wasm, prepare/husky) but + # without their dev-only devDependencies, which breaks the install. The + # remaining steps run from packages/datatype-parser as usual. + working-directory: ${{ github.workspace }} run: npm ci - name: Build diff --git a/package.json b/package.json index ae605aa9f..0001af256 100644 --- a/package.json +++ b/package.json @@ -46,7 +46,7 @@ "test:web:all": "TEST_MODE=all vitest -c vitest.web.config.ts", "test:web:coverage": "VITEST_COVERAGE=true TEST_MODE=all vitest -c vitest.web.config.ts", "//": "See https://github.com/kylebarron/parquet-wasm/issues/798", - "postinstall": "cd node_modules/parquet-wasm 2>/dev/null && npm pkg delete type || true", + "postinstall": "cd node_modules/parquet-wasm && npm pkg delete type", "prepare": "husky" }, "devDependencies": {