Skip to content

Commit

Permalink
chore: enable pnpm pre-post-scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardssh committed Dec 23, 2021
1 parent 14f3e54 commit f2a319b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
8 changes: 1 addition & 7 deletions .github/workflows/continuous-delivery.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,7 @@ jobs:
run: pnpm install

- name: Build
run: yarn build --configProduction

- name: Build Types
run: pnpm run types
run: pnpm build --configProduction

- name: Publish
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
Expand All @@ -68,9 +65,6 @@ jobs:
TARGET_BRANCH="build"
git clone $REPO out -b $TARGET_BRANCH
echo -e "\n# Move d.ts and remove src folder"
rm -rf dist/src
echo -e "\n# Move the generated code to the newly-checked-out repo, to be committed and pushed"
rsync -vaI package.json out/
rsync -vaI README.md out/
Expand Down
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
enable-pre-post-scripts=true
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,11 @@
"lint": "eslint src --ext mjs,js,ts,tsx --fix",
"format": "prettier --write src/**/*.{mjs,ts,js}",
"prepare": "husky install .github/husky",
"prebuild": "pnpm run clean",
"build": "rollup -c ./scripts/rollup.config.js",
"postbuild": "pnpm run types && rimraf ./dist/src && pnpm pack",
"types": "api-extractor run --local --verbose",
"clean": "rimraf {dist,*.tgz}",
"watch": "rollup -w -c ./scripts/rollup.config.js",
"update": "pnpm update --latest --interactive",
"commit": "git-cz",
Expand Down Expand Up @@ -50,6 +53,7 @@
"minimist": "^1.2.5",
"prettier": "^2.5.1",
"pretty-quick": "^3.1.3",
"rimraf": "^3.0.2",
"rollup": "^2.61.1",
"rollup-plugin-terser": "^7.0.2",
"rollup-plugin-typescript2": "^0.31.1",
Expand Down
2 changes: 2 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f2a319b

Please sign in to comment.