Skip to content

Commit 5b7e309

Browse files
committed
upgrade are types wrong cli, add publiting in build script
1 parent 11ba9cd commit 5b7e309

3 files changed

Lines changed: 58 additions & 33 deletions

File tree

esm/dom/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { empty } from '../utils.js';
66

77

88
/**
9-
* @param {import("./element.js").default} element
9+
* @param {{ [k in typeof nodeType]: number }}
1010
* @returns {boolean}
1111
*/
1212
export const asElement = ({ [nodeType]: type }) => type === ELEMENT_NODE;

package-lock.json

Lines changed: 52 additions & 26 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"scripts": {
88
"benchmark:w3c": "node test/benchmark/linkedom.js --w3c; node test/benchmark/linkedom-cached.js --w3c; node test/benchmark/dom.js --w3c",
99
"benchmark:dom": "node test/benchmark/linkedom.js --dom; node test/benchmark/linkedom-cached.js --dom; node test/benchmark/dom.js --dom",
10-
"build": "npm run rollup:es && node rollup/ssr.cjs && node rollup/init.cjs && npm run rollup:init && npm run rollup:ssr && rm -rf cjs/* && npm run cjs && npm run build:types && npm run test && npm run size",
10+
"build": "npm run rollup:es && node rollup/ssr.cjs && node rollup/init.cjs && npm run rollup:init && npm run rollup:ssr && rm -rf cjs/* && npm run cjs && npm run build:types && npm run test && npm run size && npm run publint",
1111
"cjs": "ascjs --no-default esm cjs",
1212
"rollup:es": "rollup --config rollup/es.config.js",
1313
"rollup:init": "rollup --config rollup/init.config.js",
@@ -17,10 +17,9 @@
1717
"test": "c8 node test/coverage.js && node test/modern.mjs && node test/svg.mjs",
1818
"coverage": "mkdir -p ./coverage; c8 report --reporter=text-lcov > ./coverage/lcov.info",
1919
"clean": "rm -rf coverage ./*.js cjs/**/*.js cjs/*.js types",
20-
"check:types": "npx attw --pack .",
20+
"check:types": "npx attw $(npm pack) --profile esm-only",
2121
"build:types": "rm -rf types && npx tsc -p tsconfig.json && node rollup/ts.fix.js",
22-
"are-the-types-wrong": "npx attw $(npm pack)",
23-
"publint-package": "npx publint ."
22+
"publint": "npx publint ."
2423
},
2524
"keywords": [
2625
"micro",
@@ -30,8 +29,8 @@
3029
"author": "Andrea Giammarchi",
3130
"license": "MIT",
3231
"devDependencies": {
33-
"@arethetypeswrong/cli": "~0.17.3",
34-
"publint": "~0.3.2",
32+
"@arethetypeswrong/cli": "~0.17.4",
33+
"publint": "~0.3.12",
3534
"@rollup/plugin-node-resolve": "^15.3.0",
3635
"@rollup/plugin-terser": "^0.4.4",
3736
"@types/estree": "^1.0.6",

0 commit comments

Comments
 (0)