forked from HowNetWorks/ipv46
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
60 lines (60 loc) · 2.17 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
{
"name": "@badrap/ipv46",
"version": "2.2.3",
"description": "Parse, format and compare IPv4/6 addresses",
"main": "./dist/cjs/index.js",
"module": "./dist/mjs/index.mjs",
"exports": {
"bun": "./src/index.ts",
"node": {
"module": "./dist/node-mjs/index.mjs",
"import": "./dist/node-cjs/index.esm.mjs",
"require": "./dist/node-cjs/index.js"
},
"default": "./dist/mjs/index.mjs"
},
"sideEffects": false,
"author": "Joachim Viide <[email protected]>",
"repository": "badrap/ipv46",
"license": "MIT",
"publishConfig": {
"provenance": true
},
"scripts": {
"lint": "eslint --max-warnings 0 .",
"typecheck": "tsc --skipLibCheck --noEmit",
"test": "vitest run",
"build": "rm -rf dist/* && npm run build:cjs && npm run build:mjs && npm run build:node-mjs && npm run build:node-cjs",
"build:cjs": "tsc -p ./tsconfig.cjs.json --outDir ./dist/cjs",
"build:node-cjs": "tsc -p ./tsconfig.cjs.json --target es2021 --outDir ./dist/node-cjs",
"build:mjs": "tsc -p ./tsconfig.esm.json --outDir ./dist/mjs && mv ./dist/mjs/index.js ./dist/mjs/index.mjs && mv ./dist/mjs/index.d.ts ./dist/mjs/index.d.mts",
"build:node-mjs": "tsc -p ./tsconfig.esm.json --target es2021 --outDir ./dist/node-mjs && mv ./dist/node-mjs/index.js ./dist/node-mjs/index.mjs && mv ./dist/node-mjs/index.d.ts ./dist/node-mjs/index.d.mts",
"changeset": "changeset",
"bump": "changeset version && sed --in-place \"s/\\\"version\\\": \\\".*\\\"/\\\"version\\\": \\\"$(sed -n 's/^\\s*\\\"version\\\": \\\"\\([^\\\"/]*\\)\\\".*/\\1/p' package.json)\\\"/\" jsr.json",
"release": "npm run build && changeset publish && jsr publish"
},
"devDependencies": {
"@changesets/changelog-github": "^0.5.0",
"@changesets/cli": "^2.27.9",
"@typescript-eslint/eslint-plugin": "^8.9.0",
"@typescript-eslint/parser": "^8.9.0",
"jsr": "^0.13.2",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.2.1",
"prettier": "^3.3.3",
"typescript": "^5.6.3",
"vitest": "^2.1.3"
},
"keywords": [
"ip",
"ipv4",
"ipv6",
"rfc4291",
"rfc5952"
],
"files": [
"src",
"dist"
]
}