Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,6 @@ jobs:

- name: Build artifacts
run: npm run build

- name: Run Publint
run: npm run lint:publint
66 changes: 66 additions & 0 deletions package-lock.json

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

22 changes: 15 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,22 @@
"module": "./esm/index.mjs",
"exports": {
".": {
"import": "./esm/index.mjs",
"require": "./lib/index.js"
"browser": {
"require": "./lib/client/html-to-dom.js",
"default": "./esm/client/html-to-dom.mjs"
},
"default": {
"require": "./lib/index.js",
"default": "./esm/index.mjs"
}
},
"./lib/client/*": {
"import": "./esm/client/*.mjs",
"require": "./lib/client/*.js"
"require": "./lib/client/*.js",
"default": "./esm/client/*.mjs"
},
"./lib/server/*": {
"import": "./esm/server/*.mjs",
"require": "./lib/server/*.js"
"require": "./lib/server/*.js",
"default": "./esm/server/*.mjs"
},
"./package.json": "./package.json"
},
Expand All @@ -28,9 +34,10 @@
"clean": "rm -rf .nyc_output coverage dist lib",
"lint": "eslint .",
"lint:fix": "npm run lint -- --fix",
"lint:publint": "publint",
"lint:tsc": "tsc --noEmit",
"prepare": "husky",
"prepublishOnly": "run-s lint lint:tsc test:server clean build",
"prepublishOnly": "run-s lint lint:tsc test:server clean build lint:publint",
"size-limit": "size-limit",
"test": "run-s test:server test:client",
"test:client": "npm run test:client:watch -- --single-run",
Expand Down Expand Up @@ -95,6 +102,7 @@
"npm-run-all": "4.1.5",
"nyc": "17.1.0",
"prettier": "3.5.3",
"publint": "0.3.12",
"rollup": "4.40.2",
"size-limit": "11.2.0",
"ts-node": "10.9.2",
Expand Down
Loading