Skip to content

Commit ebcc17c

Browse files
zeroedinbennypowers
authored andcommitted
fix(tools): correct import interpolation tag close
- template package.json exports Co-Authored-By: Steven Spriggs <[email protected]>
1 parent 447b2d7 commit ebcc17c

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

tools/create-element/templates/element/demo/element.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import '<%= packageName =>';
1+
import '<%= packageName %>';
22

33
const root = document.querySelector('[data-demo="<%= tagName %>"]')?.shadowRoot ?? document;
44

tools/create-element/templates/element/package.json

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,8 @@
1212
"test": "tests"
1313
},
1414
"exports": {
15-
".": {
16-
"esbuild": "./<%= tagName %>.ts",
17-
"default": "./<%= tagName %>.js"
18-
},
19-
"./*": {
20-
"esbuild": "./*.ts",
21-
"default": "./*.js"
22-
}
15+
".": "./<%= tagName %>.js",
16+
"./*": "./*.js"
2317
},
2418
"publishConfig": {
2519
"access": "public",

0 commit comments

Comments
 (0)