Skip to content

Commit 916ce29

Browse files
committed
Add .js files to package.json exports for backwards compatibility; move postpublish script to prepack for better security
1 parent 883d7e0 commit 916ce29

File tree

1 file changed

+39
-3
lines changed

1 file changed

+39
-3
lines changed

package.json

Lines changed: 39 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,42 @@
4343
"./plugins/test.mjs": {
4444
"import": "./esm/plugins/test.mjs"
4545
},
46+
"./code-input.js": {
47+
"import": "./code-input.js"
48+
},
49+
"./templates/hljs.js": {
50+
"import": "./templates/hljs.js"
51+
},
52+
"./templates/prism.js": {
53+
"import": "./templates/prism.js"
54+
},
55+
"./plugins/auto-close-brackets.js": {
56+
"import": "./plugins/auto-close-brackets.js"
57+
},
58+
"./plugins/autocomplete.js": {
59+
"import": "./plugins/autocomplete.js"
60+
},
61+
"./plugins/autodetect.js": {
62+
"import": "./plugins/autodetect.js"
63+
},
64+
"./plugins/find-and-replace.js": {
65+
"import": "./plugins/find-and-replace.js"
66+
},
67+
"./plugins/go-to-line.js": {
68+
"import": "./plugins/go-to-line.js"
69+
},
70+
"./plugins/indent.js": {
71+
"import": "./plugins/indent.js"
72+
},
73+
"./plugins/select-token-callbacks.js": {
74+
"import": "./plugins/select-token-callbacks.js"
75+
},
76+
"./plugins/special-chars.js": {
77+
"import": "./plugins/special-chars.js"
78+
},
79+
"./plugins/test.js": {
80+
"import": "./plugins/test.js"
81+
},
4682
"./code-input.css": "./code-input.css",
4783
"./plugins/autocomplete.css": "./plugins/autocomplete.css",
4884
"./plugins/find-and-replace.css": "./plugins/find-and-replace.css",
@@ -52,7 +88,7 @@
5288
},
5389
"scripts": {
5490
"test": "echo \"This is a front-end library, not a Node library. Please see the README for how to use.\" && exit 1",
55-
"postinstall": "cd esm ; node generate.mjs ; cd .."
91+
"prepack": "cd esm ; node generate.mjs ; cd .."
5692
},
5793
"repository": {
5894
"type": "git",
@@ -67,9 +103,9 @@
67103
"web-components"
68104
],
69105
"author": {
70-
"name": "WebCoder49",
106+
"name": "Oliver Geer and contributors",
71107
"email": "[email protected]",
72-
"url": "https://webcoder49.dev/"
108+
"url": "https://oliver.geer.im/"
73109
},
74110
"license": "MIT",
75111
"bugs": {

0 commit comments

Comments
 (0)