Skip to content

Commit

Permalink
Add exports section
Browse files Browse the repository at this point in the history
Try to deal with jspm.org failing to inline cable.js as an internal package.

#654
  • Loading branch information
jorgemanrubia committed Sep 13, 2024
1 parent d4b99f5 commit 6f26247
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@
"files": [
"app/javascript/turbo"
],
"exports": {
".": {
"import": "./app/javascript/turbo/index.js",
"require": "./app/assets/javascripts/turbo.js"
}
},
"scripts": {
"build": "rollup -c",
"prerelease": "yarn build && git --no-pager diff && echo && npm pack --dry-run && echo && read -n 1 -p \"Look OK? Press any key to publish and commit v$npm_package_version\" && echo",
Expand Down

0 comments on commit 6f26247

Please sign in to comment.