Skip to content

Commit

Permalink
package.json: improve contents for npm
Browse files Browse the repository at this point in the history
* Use GitHub Pages for "website".
* Add "prepare" hook to ensure the script was built before published.
  • Loading branch information
yookoala committed Nov 16, 2023
1 parent 2f26f4b commit 1a41fc1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"build:bundle:min": "esbuild ./src/dragdrop-components.js --format=esm --bundle --minify --outfile=./dist/dragdrop-components.min.js --target=chrome100,firefox100,safari15,edge100",
"build:types": "npx -p typescript tsc src/dragdrop-components.js --declaration --allowJs --emitDeclarationOnly --outDir dist",
"dev": "esbuild ./src/dragdrop-components.js --watch=forever --format=esm --bundle --sourcemap --outfile=./dist/dragdrop-components.js --target=chrome100,firefox100,safari15,edge100",
"prepare": "npm run build",
"test": "npx playwright test"
},
"repository": {
Expand All @@ -27,7 +28,7 @@
"bugs": {
"url": "https://github.com/yookoala/dragdrop-components/issues"
},
"homepage": "https://github.com/yookoala/dragdrop-components#readme",
"homepage": "https://yookoala.github.io/dragdrop-components/",
"keywords": [
"custom element",
"component",
Expand Down

0 comments on commit 1a41fc1

Please sign in to comment.