Skip to content

Commit a1b1a80

Browse files
authored
Merge pull request #15 from WTW-IM/fix-exports
Ensuring exports work correctly
2 parents ab8a7f4 + f3f45ff commit a1b1a80

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,12 @@
66
"exports": {
77
".": {
88
"require": "dist/index.js",
9+
"import": "module/index.js",
910
"default": "module/index.js"
1011
},
1112
"./*": {
1213
"require": "dist/*.js",
14+
"import": "module/*.js",
1315
"default": "module/*.js"
1416
}
1517
},

release.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ const config = branchName === MAIN_BRANCH ? mainConfig : branchConfig;
100100
module.exports = {
101101
branches: [
102102
MAIN_BRANCH,
103-
{ name: branchName, channel: preId, prerelease: preId },
103+
{ name: branchName, channel: "${name}", prerelease: preId },
104104
],
105105
preset: "eslint",
106106
repositoryUrl: "[email protected]:WTW-IM/scriptloader-component.git",

src/useScriptLoader.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
export * from "./hooks/useScriptLoader";
2+
export { default as default } from "./hooks/useScriptLoader";

0 commit comments

Comments
 (0)