There was an error while loading. Please reload this page.
1 parent 07e8e82 commit d950c8dCopy full SHA for d950c8d
2 files changed
.gitignore
@@ -1,2 +1,3 @@
1
node_modules
2
coverage
3
+dist
package.json
@@ -3,9 +3,12 @@
"version": "1.0.0",
4
"description": "Check if a protocol requires a certain port number to be added to an URL.",
5
"main": "index.js",
6
+ "module": "./dist/index.mjs",
7
"scripts": {
8
"test": "c8 --reporter=lcov --reporter=text mocha test.js",
- "watch": "mocha --watch test.js"
9
+ "build-esm": "esbuild index.js --outfile=dist/index.mjs --format=esm",
10
+ "watch": "mocha --watch test.js",
11
+ "prepublishOnly": "npm run build-esm"
12
},
13
"repository": {
14
"type": "git",
@@ -38,6 +41,7 @@
38
41
"devDependencies": {
39
42
"assume": "~2.3.0",
40
43
"c8": "~7.12.0",
44
+ "esbuild": "^0.17.18",
45
"mocha": "~10.2.0",
46
"pre-commit": "~1.2.0"
47
}
0 commit comments