Skip to content

Commit

Permalink
Update package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
excid3 committed Sep 13, 2024
1 parent b40f562 commit c5763e5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ yarn-error.log
*.swp
*.swo
*~
dist/
15 changes: 12 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
{
"name": "tailwindcss-stimulus-components",
"version": "6.0.0",
"version": "6.0.2",
"description": "A set of Stimulus components (tabs, dropdowns, modals, toggles, autosave, etc) for TailwindCSS users",
"source": "./src/index.js",
"main": "./src/index.js",
"exports": "./src/index.js",
"main": "./dist/tailwindcss-stimulus-components.cjs",
"module": "./dist/tailwindcss-stimulus-components.module.js",
"files": [
"dist/*",
"src/*"
],
"repository": {
"url": "git+https://github.com/excid3/tailwindcss-stimulus-components.git",
"type": "git"
Expand All @@ -26,6 +30,11 @@
"not IE 11"
],
"scripts": {
"dev": "esbuild src/index.js --format=esm --bundle --outfile=dist/tailwindcss-stimulus-components.module.js --watch",
"build": "npm run build-esm && npm run build-cjs",
"build-cjs": "esbuild src/index.js --format=cjs --target=es2020 --minify --bundle --sourcemap=external --external:@hotwired/stimulus --outfile=dist/tailwindcss-stimulus-components.cjs",
"build-esm": "esbuild src/index.js --format=esm --target=es2020 --minify --bundle --sourcemap=external --external:@hotwired/stimulus --outfile=dist/tailwindcss-stimulus-components.module.js",
"prepare": "npm run build",
"test": "web-test-runner",
"test:watch": "web-test-runner --watch"
},
Expand Down

0 comments on commit c5763e5

Please sign in to comment.