@darcas/smart-dns-promises 1.1.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +9 -22
package/package.json
CHANGED
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
"devDependencies": {
|
|
10
10
|
"@types/node": "^22.10.2",
|
|
11
11
|
"esbuild": "^0.24.2",
|
|
12
|
-
"tshy": "^3.0.2",
|
|
13
12
|
"typescript": "^5.7.2",
|
|
14
13
|
"vitest": "^4.1.11"
|
|
15
14
|
},
|
|
@@ -29,12 +28,12 @@
|
|
|
29
28
|
},
|
|
30
29
|
"./min": {
|
|
31
30
|
"import": {
|
|
32
|
-
"
|
|
33
|
-
"
|
|
31
|
+
"types": "./dist/esm/index.d.ts",
|
|
32
|
+
"default": "./dist/esm/index.min.js"
|
|
34
33
|
},
|
|
35
34
|
"require": {
|
|
36
|
-
"
|
|
37
|
-
"
|
|
35
|
+
"types": "./dist/commonjs/index.d.ts",
|
|
36
|
+
"default": "./dist/commonjs/index.min.js"
|
|
38
37
|
}
|
|
39
38
|
}
|
|
40
39
|
},
|
|
@@ -63,28 +62,16 @@
|
|
|
63
62
|
"url": "https://github.com/DarCas/smart-dns-promises"
|
|
64
63
|
},
|
|
65
64
|
"scripts": {
|
|
66
|
-
"build": "rm -rf ./dist &&
|
|
65
|
+
"build": "rm -rf ./dist && npm run build:esm && npm run build:esm-pkg && npm run build:cjs && npm run cjs && npm run esm",
|
|
66
|
+
"build:esm": "tsc --outDir dist/esm",
|
|
67
|
+
"build:cjs": "tsc --outDir dist/commonjs --module commonjs --moduleResolution node10 && node -e \"const fs = require('fs'); fs.writeFileSync('dist/commonjs/package.json', JSON.stringify({ type: 'commonjs' }, null, 2) + '\\n')\"",
|
|
68
|
+
"build:esm-pkg": "node -e \"require('fs').writeFileSync('dist/esm/package.json', JSON.stringify({ type: 'module' }, null, 2) + '\\n')\"",
|
|
67
69
|
"cjs": "esbuild --minify --sourcemap --bundle dist/commonjs/index.js --outfile=dist/commonjs/index.min.js --format=cjs --platform=node",
|
|
68
70
|
"deploy": "npm run build && npm publish --access public",
|
|
69
71
|
"esm": "esbuild --minify --sourcemap --bundle dist/esm/index.js --outfile=dist/esm/index.min.js --format=esm --platform=node",
|
|
70
72
|
"test": "vitest run"
|
|
71
73
|
},
|
|
72
|
-
"tshy": {
|
|
73
|
-
"exports": {
|
|
74
|
-
".": "./src/index.ts",
|
|
75
|
-
"./min": {
|
|
76
|
-
"import": {
|
|
77
|
-
"default": "./dist/esm/index.min.js",
|
|
78
|
-
"types": "./dist/esm/index.d.ts"
|
|
79
|
-
},
|
|
80
|
-
"require": {
|
|
81
|
-
"default": "./dist/commonjs/index.min.js",
|
|
82
|
-
"types": "./dist/commonjs/index.d.ts"
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
},
|
|
87
74
|
"type": "module",
|
|
88
75
|
"types": "./dist/commonjs/index.d.ts",
|
|
89
|
-
"version": "1.1.
|
|
76
|
+
"version": "1.1.1"
|
|
90
77
|
}
|