Skip to content

Commit

Permalink
fix(ci): Enable pre & post fro PNPM
Browse files Browse the repository at this point in the history
  • Loading branch information
Pilaton committed Feb 11, 2024
1 parent d5bc9e3 commit 7287e37
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ jobs:
node-version: '20.x'
registry-url: ${{ matrix.registry }}

- name: Create .npmrc
run: echo "enable-pre-post-scripts=true" > .npmrc

- name: Install pnpm
uses: pnpm/action-setup@master
with:
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@
"build/"
],
"scripts": {
"prebuild": "rimraf build",
"build": "rollup --config",
"postbuild": "dts-bundle-generator --config ./dts-bundle.config.cjs",
"check": "tsc --noEmit",
"lint": "eslint .",
"ci": "pnpm run lint && pnpm run check && pnpm run test:coverage",
"knip": "knip",
"lint": "eslint .",
"postbuild": "dts-bundle-generator --config ./dts-bundle.config.cjs",
"prebuild": "rimraf build",
"test": "vitest",
"test:coverage": "vitest run --coverage"
},
Expand Down

0 comments on commit 7287e37

Please sign in to comment.