Skip to content

Commit

Permalink
build: use pkgroll (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
privatenumber committed Apr 26, 2022
1 parent 5bf86a0 commit 4132468
Show file tree
Hide file tree
Showing 5 changed files with 386 additions and 227 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ jobs:
node-version: 14.x
- name: Install dependencies
run: npx ci
- name: Test
run: npm run test --if-present
- name: Build
run: npm run build --if-present
- name: Test
run: npm run test --if-present
- name: Release
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ jobs:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npx ci
- name: Test
run: npm run test
- name: Build
run: npm run build
- name: Test
run: npm run test
- name: Test DTS
run: npm run test:dts
12 changes: 5 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,12 @@
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"exports": {
".": {
"require": "./dist/index.js",
"import": "./dist/index.mjs",
"types": "./dist/index.d.ts"
}
"require": "./dist/index.js",
"import": "./dist/index.mjs",
"types": "./dist/index.d.ts"
},
"scripts": {
"build": "tsup src/index.ts --clean --format cjs,esm --dts --minify",
"build": "pkgroll --minify",
"lint": "eslint .",
"test": "jest",
"test:dts": "tsd"
Expand All @@ -57,8 +55,8 @@
"husky": "^4.3.8",
"jest": "^27.4.5",
"lint-staged": "^12.1.2",
"pkgroll": "^1.0.4",
"tsd": "^0.19.1",
"tsup": "^5.11.6",
"typescript": "^4.5.4"
},
"eslintConfig": {
Expand Down
Loading

0 comments on commit 4132468

Please sign in to comment.