@knighted/duel 2.1.4 → 2.1.5
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/dist/cjs/duel.cjs +2 -2
- package/dist/esm/duel.js +2 -2
- package/package.json +20 -18
package/dist/cjs/duel.cjs
CHANGED
|
@@ -113,7 +113,7 @@ const duel = async (args) => {
|
|
|
113
113
|
* Transform ambiguous modules for the target dual build.
|
|
114
114
|
* @see https://github.com/microsoft/TypeScript/issues/58658
|
|
115
115
|
*/
|
|
116
|
-
const toTransform = await (0, glob_1.glob)(`${subDir}/**/*{.js,.jsx,.ts,.tsx}`, {
|
|
116
|
+
const toTransform = await (0, glob_1.glob)(`${subDir.replace(/\\/g, '/')}/**/*{.js,.jsx,.ts,.tsx}`, {
|
|
117
117
|
ignore: 'node_modules/**',
|
|
118
118
|
});
|
|
119
119
|
for (const file of toTransform) {
|
|
@@ -157,7 +157,7 @@ const duel = async (args) => {
|
|
|
157
157
|
}
|
|
158
158
|
}
|
|
159
159
|
if (success) {
|
|
160
|
-
const filenames = await (0, glob_1.glob)(`${absoluteDualOutDir}/**/*{.js,.d.ts}`, {
|
|
160
|
+
const filenames = await (0, glob_1.glob)(`${absoluteDualOutDir.replace(/\\/g, '/')}/**/*{.js,.d.ts}`, {
|
|
161
161
|
ignore: 'node_modules/**',
|
|
162
162
|
});
|
|
163
163
|
await updateSpecifiersAndFileExtensions(filenames);
|
package/dist/esm/duel.js
CHANGED
|
@@ -110,7 +110,7 @@ const duel = async (args) => {
|
|
|
110
110
|
* Transform ambiguous modules for the target dual build.
|
|
111
111
|
* @see https://github.com/microsoft/TypeScript/issues/58658
|
|
112
112
|
*/
|
|
113
|
-
const toTransform = await glob(`${subDir}/**/*{.js,.jsx,.ts,.tsx}`, {
|
|
113
|
+
const toTransform = await glob(`${subDir.replace(/\\/g, '/')}/**/*{.js,.jsx,.ts,.tsx}`, {
|
|
114
114
|
ignore: 'node_modules/**',
|
|
115
115
|
});
|
|
116
116
|
for (const file of toTransform) {
|
|
@@ -154,7 +154,7 @@ const duel = async (args) => {
|
|
|
154
154
|
}
|
|
155
155
|
}
|
|
156
156
|
if (success) {
|
|
157
|
-
const filenames = await glob(`${absoluteDualOutDir}/**/*{.js,.d.ts}`, {
|
|
157
|
+
const filenames = await glob(`${absoluteDualOutDir.replace(/\\/g, '/')}/**/*{.js,.d.ts}`, {
|
|
158
158
|
ignore: 'node_modules/**',
|
|
159
159
|
});
|
|
160
160
|
await updateSpecifiersAndFileExtensions(filenames);
|
package/package.json
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@knighted/duel",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.5",
|
|
4
4
|
"description": "TypeScript dual packages.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/esm/duel.js",
|
|
7
|
-
"bin":
|
|
7
|
+
"bin": {
|
|
8
|
+
"duel": "dist/esm/duel.js"
|
|
9
|
+
},
|
|
8
10
|
"exports": {
|
|
9
11
|
".": {
|
|
10
12
|
"import": "./dist/esm/duel.js",
|
|
@@ -47,7 +49,7 @@
|
|
|
47
49
|
"license": "MIT",
|
|
48
50
|
"repository": {
|
|
49
51
|
"type": "git",
|
|
50
|
-
"url": "https://github.com/knightedcodemonkey/duel.git"
|
|
52
|
+
"url": "git+https://github.com/knightedcodemonkey/duel.git"
|
|
51
53
|
},
|
|
52
54
|
"bugs": {
|
|
53
55
|
"url": "https://github.com/knightedcodemonkey/duel/issues"
|
|
@@ -56,25 +58,25 @@
|
|
|
56
58
|
"typescript": ">=5.5.0-dev || >=5.6.0-dev || >=5.7.0-dev || next"
|
|
57
59
|
},
|
|
58
60
|
"devDependencies": {
|
|
59
|
-
"@eslint/js": "^9.
|
|
60
|
-
"@tsconfig/recommended": "^1.0.
|
|
61
|
-
"@types/node": "^
|
|
61
|
+
"@eslint/js": "^9.32.0",
|
|
62
|
+
"@tsconfig/recommended": "^1.0.10",
|
|
63
|
+
"@types/node": "^24.1.0",
|
|
62
64
|
"c8": "^10.1.3",
|
|
63
|
-
"eslint": "^9.
|
|
64
|
-
"eslint-plugin-n": "^17.
|
|
65
|
-
"globals": "^
|
|
65
|
+
"eslint": "^9.32.0",
|
|
66
|
+
"eslint-plugin-n": "^17.21.2",
|
|
67
|
+
"globals": "^16.3.0",
|
|
66
68
|
"node-module-type": "^1.0.2",
|
|
67
|
-
"prettier": "^3.
|
|
68
|
-
"tsx": "^4.
|
|
69
|
-
"typescript": "^5.8.
|
|
70
|
-
"vite": "^
|
|
69
|
+
"prettier": "^3.6.2",
|
|
70
|
+
"tsx": "^4.20.3",
|
|
71
|
+
"typescript": "^5.8.3",
|
|
72
|
+
"vite": "^7.0.6"
|
|
71
73
|
},
|
|
72
74
|
"dependencies": {
|
|
73
|
-
"@knighted/module": "^1.0.0-alpha.
|
|
74
|
-
"@knighted/specifier": "^2.0.
|
|
75
|
-
"find-up": "^
|
|
76
|
-
"get-tsconfig": "^4.10.
|
|
77
|
-
"glob": "^11.0.
|
|
75
|
+
"@knighted/module": "^1.0.0-alpha.9",
|
|
76
|
+
"@knighted/specifier": "^2.0.7",
|
|
77
|
+
"find-up": "^7.0.0",
|
|
78
|
+
"get-tsconfig": "^4.10.1",
|
|
79
|
+
"glob": "^11.0.3",
|
|
78
80
|
"read-package-up": "^11.0.0"
|
|
79
81
|
},
|
|
80
82
|
"prettier": {
|