Skip to content

Commit

Permalink
Add package quality tools
Browse files Browse the repository at this point in the history
  • Loading branch information
ezzatron committed May 7, 2024
1 parent c75ef17 commit bbe32e4
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .attw.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"ignoreRules": ["cjs-resolves-to-esm"]
}
6 changes: 6 additions & 0 deletions .size-limit.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = [
{
path: "artifacts/dist/index.js",
limit: "1.3 kB",
},
];
10 changes: 8 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
export NODE_OPTIONS := --experimental-vm-modules --redirect-warnings=artifacts/node-warnings

CHANGELOG_TAG_URL_PREFIX := https://github.com/ezzatron/nvector-js/releases/tag/

JS_ARETHETYPESWRONG_REQ += artifacts/dist
JS_PUBLINT_REQ += artifacts/dist
JS_SIZE_LIMIT_REQ += artifacts/dist
JS_SKYPACK_PACKAGE_CHECK_REQ += artifacts/dist

################################################################################

-include .makefiles/Makefile
-include .makefiles/pkg/js/v1/Makefile
-include .makefiles/pkg/js/v1/with-npm.mk
-include .makefiles/pkg/js/v1/with-arethetypeswrong.mk
-include .makefiles/pkg/js/v1/with-publint.mk
-include .makefiles/pkg/js/v1/with-skypack-package-check.mk
-include .makefiles/pkg/js/v1/with-tsc.mk
-include .makefiles/pkg/changelog/v1/Makefile

Expand Down
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,10 @@
"prepublishOnly": "tsc -p tsconfig.build.json"
},
"devDependencies": {
"@arethetypeswrong/cli": "^0.15.3",
"@fast-check/vitest": "^0.1.0",
"@size-limit/preset-small-lib": "^11.1.2",
"@skypack/package-check": "^0.2.2",
"@types/ws": "^8.5.5",
"@typescript-eslint/eslint-plugin": "^7.0.0",
"@typescript-eslint/parser": "^7.0.0",
Expand All @@ -52,6 +55,8 @@
"eslint-plugin-vitest": "^0.4.1",
"prettier": "^3.0.3",
"prettier-plugin-organize-imports": "^3.2.3",
"publint": "^0.2.7",
"size-limit": "^11.1.2",
"typedoc": "^0.25.13",
"typescript": "^5.2.2",
"vite": "^5.2.10",
Expand Down

0 comments on commit bbe32e4

Please sign in to comment.