Skip to content

Commit

Permalink
test(package): add metadata & esm/cjs compatibility check as a test step
Browse files Browse the repository at this point in the history
  • Loading branch information
maninak committed Sep 11, 2023
1 parent 4e35ba8 commit 6f8e363
Show file tree
Hide file tree
Showing 2 changed files with 163 additions and 1 deletion.
160 changes: 160 additions & 0 deletions package-lock.json

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

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,10 @@
"sideEffects": false,
"scripts": {
"build": "tsup src/index.ts --format esm,cjs --dts --sourcemap --clean",
"test": "npm run test:smoke && npm run test:unit ",
"test": "npm run test:smoke && npm run test:unit && npm run test:package",
"test:smoke": "tsc -p . --noEmit",
"test:unit": "sh scripts/run-tests.sh",
"test:package": "publint",
"preversion": "npm run build && npm test",
"postpublish": "git push --tags"
},
Expand All @@ -44,6 +45,7 @@
},
"homepage": "https://github.com/maninak/ts-xor#README.md",
"devDependencies": {
"publint": "^0.2.2",
"tsup": "^7.2.0",
"typescript": "^5.2.2"
}
Expand Down

0 comments on commit 6f8e363

Please sign in to comment.