@bleedingdev/modern-js-utils 3.2.0-ultramodern.98 → 3.4.0-ultramodern.0
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/cli/alias.js +9 -5
- package/dist/cjs/cli/applyOptionsChain.js +9 -5
- package/dist/cjs/cli/commands.js +9 -5
- package/dist/cjs/cli/common.js +9 -5
- package/dist/cjs/cli/config.js +12 -8
- package/dist/cjs/cli/constants.js +9 -5
- package/dist/cjs/cli/ensure.js +9 -5
- package/dist/cjs/cli/fs.js +9 -5
- package/dist/cjs/cli/get/config.js +9 -5
- package/dist/cjs/cli/get/data.js +9 -5
- package/dist/cjs/cli/get/index.js +14 -10
- package/dist/cjs/cli/index.js +24 -13
- package/dist/cjs/cli/is/config.js +9 -5
- package/dist/cjs/cli/is/env.js +16 -12
- package/dist/cjs/cli/is/index.js +9 -5
- package/dist/cjs/cli/is/project.js +9 -5
- package/dist/cjs/cli/is/type.js +21 -16
- package/dist/cjs/cli/logger.js +9 -5
- package/dist/cjs/cli/modulePath.js +9 -5
- package/dist/cjs/cli/monorepo.js +9 -5
- package/dist/cjs/cli/package.js +9 -5
- package/dist/cjs/cli/path.js +9 -5
- package/dist/cjs/cli/port.js +9 -5
- package/dist/cjs/cli/prettyInstructions.js +9 -5
- package/dist/cjs/cli/require.js +9 -5
- package/dist/cjs/cli/route.js +9 -5
- package/dist/cjs/cli/routeComponentFiles.js +108 -0
- package/dist/cjs/cli/runtimeExports.js +1 -69
- package/dist/cjs/cli/tsconfig.js +9 -5
- package/dist/cjs/cli/version.js +15 -11
- package/dist/cjs/cli/watch.js +9 -5
- package/dist/cjs/compiled.js +9 -5
- package/dist/cjs/import.js +9 -5
- package/dist/cjs/index.js +9 -5
- package/dist/cjs/universal/constants.js +24 -20
- package/dist/cjs/universal/index.js +9 -5
- package/dist/cjs/universal/path.js +12 -8
- package/dist/cjs/universal/pluginDagSort.js +12 -8
- package/dist/esm/cli/index.mjs +1 -0
- package/dist/esm/cli/routeComponentFiles.mjs +56 -0
- package/dist/esm/cli/runtimeExports.mjs +0 -42
- package/dist/esm-node/cli/index.mjs +1 -0
- package/dist/esm-node/cli/routeComponentFiles.mjs +57 -0
- package/dist/esm-node/cli/runtimeExports.mjs +0 -42
- package/dist/types/cli/index.d.ts +1 -0
- package/dist/types/cli/routeComponentFiles.d.ts +25 -0
- package/dist/types/cli/runtimeExports.d.ts +1 -5
- package/package.json +68 -26
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import node_fs from "node:fs";
|
|
2
|
+
import node_path from "node:path";
|
|
3
|
+
const RESOLVE_EXTENSIONS = [
|
|
4
|
+
'.tsx',
|
|
5
|
+
'.ts',
|
|
6
|
+
'.jsx',
|
|
7
|
+
'.js',
|
|
8
|
+
'.mjs',
|
|
9
|
+
'.cjs'
|
|
10
|
+
];
|
|
11
|
+
function normalizeModulePath(filePath) {
|
|
12
|
+
const absolute = node_path.resolve(filePath);
|
|
13
|
+
let real = absolute;
|
|
14
|
+
try {
|
|
15
|
+
real = node_fs.realpathSync.native(absolute);
|
|
16
|
+
} catch {}
|
|
17
|
+
return real.split(node_path.sep).join('/');
|
|
18
|
+
}
|
|
19
|
+
function resolveRouteComponentFile(component, srcDirectory, srcAlias) {
|
|
20
|
+
const normalizedAlias = srcAlias.replace(/[\\/]+$/, '');
|
|
21
|
+
let candidate;
|
|
22
|
+
if (component === normalizedAlias || component.startsWith(`${normalizedAlias}/`)) {
|
|
23
|
+
const relative = component.slice(normalizedAlias.length).replace(/^\/+/, '');
|
|
24
|
+
candidate = node_path.resolve(srcDirectory, relative);
|
|
25
|
+
} else {
|
|
26
|
+
if (!node_path.isAbsolute(component)) return;
|
|
27
|
+
candidate = node_path.resolve(component);
|
|
28
|
+
}
|
|
29
|
+
if (node_path.extname(candidate) && node_fs.existsSync(candidate)) return normalizeModulePath(candidate);
|
|
30
|
+
for (const ext of RESOLVE_EXTENSIONS)if (node_fs.existsSync(candidate + ext)) return normalizeModulePath(candidate + ext);
|
|
31
|
+
for (const ext of RESOLVE_EXTENSIONS){
|
|
32
|
+
const indexFile = node_path.join(candidate, `index${ext}`);
|
|
33
|
+
if (node_fs.existsSync(indexFile)) return normalizeModulePath(indexFile);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
function collectRouteComponentFiles(routes, srcDirectory, srcAlias) {
|
|
37
|
+
const resolvedFiles = new Set();
|
|
38
|
+
const unresolvedSpecifiers = [];
|
|
39
|
+
const walk = (list)=>{
|
|
40
|
+
if (!Array.isArray(list)) return;
|
|
41
|
+
for (const route of list){
|
|
42
|
+
if (route._component) {
|
|
43
|
+
const file = resolveRouteComponentFile(route._component, srcDirectory, srcAlias);
|
|
44
|
+
if (file) resolvedFiles.add(file);
|
|
45
|
+
else unresolvedSpecifiers.push(route._component);
|
|
46
|
+
}
|
|
47
|
+
walk(route.children);
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
walk(routes);
|
|
51
|
+
return {
|
|
52
|
+
resolvedFiles,
|
|
53
|
+
unresolvedSpecifiers
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
export { collectRouteComponentFiles, normalizeModulePath };
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import path from "path";
|
|
2
|
-
import { fs } from "../compiled.mjs";
|
|
3
|
-
import { normalizeOutputPath } from "./path.mjs";
|
|
4
|
-
const memo = (fn)=>{
|
|
5
|
-
const cache = new Map();
|
|
6
|
-
return (...params)=>{
|
|
7
|
-
const stringifiedParams = JSON.stringify(params);
|
|
8
|
-
const cachedResult = cache.get(stringifiedParams);
|
|
9
|
-
if (cachedResult) return cachedResult;
|
|
10
|
-
const res = fn(...params);
|
|
11
|
-
cache.set(stringifiedParams, res);
|
|
12
|
-
return res;
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
const ensureRuntimeExportsFile = (filepath)=>{
|
|
16
|
-
fs.ensureDirSync(path.dirname(filepath));
|
|
17
|
-
if (!fs.existsSync(filepath)) fs.writeFileSync(filepath, 'export {};\n');
|
|
18
|
-
};
|
|
19
|
-
const formatRuntimeExports = (exportsList)=>{
|
|
20
|
-
if (0 === exportsList.length) return 'export {};\n';
|
|
21
|
-
return `${exportsList.join('\n')}\n`;
|
|
22
|
-
};
|
|
23
|
-
const flushRuntimeExports = (filepath, exportsSet)=>{
|
|
24
|
-
fs.writeFileSync(filepath, formatRuntimeExports(Array.from(exportsSet)));
|
|
25
|
-
};
|
|
26
|
-
const createRuntimeExportsUtils = memo((internalDirectory, filename)=>{
|
|
27
|
-
const filepath = path.resolve(internalDirectory, `${filename}.ts`);
|
|
28
|
-
const exportsSet = new Set();
|
|
29
|
-
ensureRuntimeExportsFile(filepath);
|
|
30
|
-
return {
|
|
31
|
-
addExport (exportStatement) {
|
|
32
|
-
const normalized = exportStatement?.trim();
|
|
33
|
-
if (!normalized) return;
|
|
34
|
-
exportsSet.add(normalized);
|
|
35
|
-
flushRuntimeExports(filepath, exportsSet);
|
|
36
|
-
},
|
|
37
|
-
getPath () {
|
|
38
|
-
return normalizeOutputPath(filepath);
|
|
39
|
-
}
|
|
40
|
-
};
|
|
41
|
-
});
|
|
42
|
-
export { createRuntimeExportsUtils };
|
|
@@ -18,6 +18,7 @@ export * from "./port.mjs";
|
|
|
18
18
|
export * from "./prettyInstructions.mjs";
|
|
19
19
|
export * from "./require.mjs";
|
|
20
20
|
export * from "./route.mjs";
|
|
21
|
+
export * from "./routeComponentFiles.mjs";
|
|
21
22
|
export * from "./runtimeExports.mjs";
|
|
22
23
|
export * from "./tsconfig.mjs";
|
|
23
24
|
export * from "./version.mjs";
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import "node:module";
|
|
2
|
+
import node_fs from "node:fs";
|
|
3
|
+
import node_path from "node:path";
|
|
4
|
+
const RESOLVE_EXTENSIONS = [
|
|
5
|
+
'.tsx',
|
|
6
|
+
'.ts',
|
|
7
|
+
'.jsx',
|
|
8
|
+
'.js',
|
|
9
|
+
'.mjs',
|
|
10
|
+
'.cjs'
|
|
11
|
+
];
|
|
12
|
+
function normalizeModulePath(filePath) {
|
|
13
|
+
const absolute = node_path.resolve(filePath);
|
|
14
|
+
let real = absolute;
|
|
15
|
+
try {
|
|
16
|
+
real = node_fs.realpathSync.native(absolute);
|
|
17
|
+
} catch {}
|
|
18
|
+
return real.split(node_path.sep).join('/');
|
|
19
|
+
}
|
|
20
|
+
function resolveRouteComponentFile(component, srcDirectory, srcAlias) {
|
|
21
|
+
const normalizedAlias = srcAlias.replace(/[\\/]+$/, '');
|
|
22
|
+
let candidate;
|
|
23
|
+
if (component === normalizedAlias || component.startsWith(`${normalizedAlias}/`)) {
|
|
24
|
+
const relative = component.slice(normalizedAlias.length).replace(/^\/+/, '');
|
|
25
|
+
candidate = node_path.resolve(srcDirectory, relative);
|
|
26
|
+
} else {
|
|
27
|
+
if (!node_path.isAbsolute(component)) return;
|
|
28
|
+
candidate = node_path.resolve(component);
|
|
29
|
+
}
|
|
30
|
+
if (node_path.extname(candidate) && node_fs.existsSync(candidate)) return normalizeModulePath(candidate);
|
|
31
|
+
for (const ext of RESOLVE_EXTENSIONS)if (node_fs.existsSync(candidate + ext)) return normalizeModulePath(candidate + ext);
|
|
32
|
+
for (const ext of RESOLVE_EXTENSIONS){
|
|
33
|
+
const indexFile = node_path.join(candidate, `index${ext}`);
|
|
34
|
+
if (node_fs.existsSync(indexFile)) return normalizeModulePath(indexFile);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
function collectRouteComponentFiles(routes, srcDirectory, srcAlias) {
|
|
38
|
+
const resolvedFiles = new Set();
|
|
39
|
+
const unresolvedSpecifiers = [];
|
|
40
|
+
const walk = (list)=>{
|
|
41
|
+
if (!Array.isArray(list)) return;
|
|
42
|
+
for (const route of list){
|
|
43
|
+
if (route._component) {
|
|
44
|
+
const file = resolveRouteComponentFile(route._component, srcDirectory, srcAlias);
|
|
45
|
+
if (file) resolvedFiles.add(file);
|
|
46
|
+
else unresolvedSpecifiers.push(route._component);
|
|
47
|
+
}
|
|
48
|
+
walk(route.children);
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
walk(routes);
|
|
52
|
+
return {
|
|
53
|
+
resolvedFiles,
|
|
54
|
+
unresolvedSpecifiers
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
export { collectRouteComponentFiles, normalizeModulePath };
|
|
@@ -1,43 +1 @@
|
|
|
1
1
|
import "node:module";
|
|
2
|
-
import path from "path";
|
|
3
|
-
import { fs } from "../compiled.mjs";
|
|
4
|
-
import { normalizeOutputPath } from "./path.mjs";
|
|
5
|
-
const memo = (fn)=>{
|
|
6
|
-
const cache = new Map();
|
|
7
|
-
return (...params)=>{
|
|
8
|
-
const stringifiedParams = JSON.stringify(params);
|
|
9
|
-
const cachedResult = cache.get(stringifiedParams);
|
|
10
|
-
if (cachedResult) return cachedResult;
|
|
11
|
-
const res = fn(...params);
|
|
12
|
-
cache.set(stringifiedParams, res);
|
|
13
|
-
return res;
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
const ensureRuntimeExportsFile = (filepath)=>{
|
|
17
|
-
fs.ensureDirSync(path.dirname(filepath));
|
|
18
|
-
if (!fs.existsSync(filepath)) fs.writeFileSync(filepath, 'export {};\n');
|
|
19
|
-
};
|
|
20
|
-
const formatRuntimeExports = (exportsList)=>{
|
|
21
|
-
if (0 === exportsList.length) return 'export {};\n';
|
|
22
|
-
return `${exportsList.join('\n')}\n`;
|
|
23
|
-
};
|
|
24
|
-
const flushRuntimeExports = (filepath, exportsSet)=>{
|
|
25
|
-
fs.writeFileSync(filepath, formatRuntimeExports(Array.from(exportsSet)));
|
|
26
|
-
};
|
|
27
|
-
const createRuntimeExportsUtils = memo((internalDirectory, filename)=>{
|
|
28
|
-
const filepath = path.resolve(internalDirectory, `${filename}.ts`);
|
|
29
|
-
const exportsSet = new Set();
|
|
30
|
-
ensureRuntimeExportsFile(filepath);
|
|
31
|
-
return {
|
|
32
|
-
addExport (exportStatement) {
|
|
33
|
-
const normalized = exportStatement?.trim();
|
|
34
|
-
if (!normalized) return;
|
|
35
|
-
exportsSet.add(normalized);
|
|
36
|
-
flushRuntimeExports(filepath, exportsSet);
|
|
37
|
-
},
|
|
38
|
-
getPath () {
|
|
39
|
-
return normalizeOutputPath(filepath);
|
|
40
|
-
}
|
|
41
|
-
};
|
|
42
|
-
});
|
|
43
|
-
export { createRuntimeExportsUtils };
|
|
@@ -17,6 +17,7 @@ export * from './port';
|
|
|
17
17
|
export * from './prettyInstructions';
|
|
18
18
|
export * from './require';
|
|
19
19
|
export * from './route';
|
|
20
|
+
export * from './routeComponentFiles';
|
|
20
21
|
export * from './runtimeExports';
|
|
21
22
|
export * from './tsconfig';
|
|
22
23
|
export * from './version';
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Normalize a path so that route-component collection and `module.resource`
|
|
3
|
+
* comparison use the exact same form: resolve symlinks (best effort), make it
|
|
4
|
+
* absolute, and use POSIX separators. Used on both sides of the `test` match so
|
|
5
|
+
* Windows / symlink / mixed-separator paths still line up.
|
|
6
|
+
*/
|
|
7
|
+
export declare function normalizeModulePath(filePath: string): string;
|
|
8
|
+
export type RouteComponentFileCollection = {
|
|
9
|
+
/** Normalized absolute paths of resolved route component files. */
|
|
10
|
+
resolvedFiles: Set<string>;
|
|
11
|
+
/** `_component` specifiers that could not be mapped to a real file. */
|
|
12
|
+
unresolvedSpecifiers: string[];
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* Per-entry route component files, keyed by entry name. Collected by the router
|
|
16
|
+
* plugin from the FINAL routes and consumed (currently by stream SSR lazy
|
|
17
|
+
* compilation) to force route components eager.
|
|
18
|
+
*/
|
|
19
|
+
export type EagerRouteComponentFilesByEntry = Map<string, RouteComponentFileCollection>;
|
|
20
|
+
/**
|
|
21
|
+
* Walk the file-system route tree and collect the normalized absolute file
|
|
22
|
+
* paths of every route component, plus any `_component` specifiers that could
|
|
23
|
+
* not be resolved to a real file.
|
|
24
|
+
*/
|
|
25
|
+
export declare function collectRouteComponentFiles(routes: unknown, srcDirectory: string, srcAlias: string): RouteComponentFileCollection;
|
package/package.json
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"modern",
|
|
18
18
|
"modern.js"
|
|
19
19
|
],
|
|
20
|
-
"version": "3.
|
|
20
|
+
"version": "3.4.0-ultramodern.0",
|
|
21
21
|
"types": "./dist/types/index.d.ts",
|
|
22
22
|
"main": "./dist/cjs/index.js",
|
|
23
23
|
"module": "./dist/esm/index.mjs",
|
|
@@ -50,27 +50,69 @@
|
|
|
50
50
|
"default": "./dist/esm/universal/constants.mjs"
|
|
51
51
|
},
|
|
52
52
|
"./commander": {
|
|
53
|
+
"types": "./dist/compiled/commander/typings/index.d.ts",
|
|
53
54
|
"import": "./dist/compiled/commander/index.mjs",
|
|
54
55
|
"default": "./dist/compiled/commander/index.js"
|
|
55
56
|
},
|
|
56
|
-
"./ora":
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
"./
|
|
61
|
-
|
|
57
|
+
"./ora": {
|
|
58
|
+
"types": "./dist/compiled/ora/index.d.ts",
|
|
59
|
+
"default": "./dist/compiled/ora/index.js"
|
|
60
|
+
},
|
|
61
|
+
"./glob": {
|
|
62
|
+
"types": "./dist/compiled/glob/index.d.ts",
|
|
63
|
+
"default": "./dist/compiled/glob/index.js"
|
|
64
|
+
},
|
|
65
|
+
"./chalk": {
|
|
66
|
+
"types": "./dist/compiled/chalk/index.d.ts",
|
|
67
|
+
"default": "./dist/compiled/chalk/index.js"
|
|
68
|
+
},
|
|
69
|
+
"./execa": {
|
|
70
|
+
"types": "./dist/compiled/execa/index.d.ts",
|
|
71
|
+
"default": "./dist/compiled/execa/index.js"
|
|
72
|
+
},
|
|
73
|
+
"./json5": {
|
|
74
|
+
"types": "./dist/compiled/json5/lib/index.d.ts",
|
|
75
|
+
"default": "./dist/compiled/json5/index.js"
|
|
76
|
+
},
|
|
77
|
+
"./semver": {
|
|
78
|
+
"types": "./dist/compiled/semver/index.d.ts",
|
|
79
|
+
"default": "./dist/compiled/semver/index.js"
|
|
80
|
+
},
|
|
62
81
|
"./lodash": {
|
|
82
|
+
"types": "./dist/compiled/lodash/index.d.ts",
|
|
63
83
|
"import": "./dist/compiled/lodash/index.mjs",
|
|
64
84
|
"default": "./dist/compiled/lodash/index.js"
|
|
65
85
|
},
|
|
66
|
-
"./globby":
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
"./
|
|
71
|
-
|
|
72
|
-
|
|
86
|
+
"./globby": {
|
|
87
|
+
"types": "./dist/compiled/globby/index.d.ts",
|
|
88
|
+
"default": "./dist/compiled/globby/index.js"
|
|
89
|
+
},
|
|
90
|
+
"./fs-extra": {
|
|
91
|
+
"types": "./dist/compiled/fs-extra/index.d.ts",
|
|
92
|
+
"default": "./dist/compiled/fs-extra/index.js"
|
|
93
|
+
},
|
|
94
|
+
"./fast-glob": {
|
|
95
|
+
"types": "./dist/compiled/fast-glob/out/index.d.ts",
|
|
96
|
+
"default": "./dist/compiled/fast-glob/index.js"
|
|
97
|
+
},
|
|
98
|
+
"./gzip-size": {
|
|
99
|
+
"types": "./dist/compiled/gzip-size/index.d.ts",
|
|
100
|
+
"default": "./dist/compiled/gzip-size/index.js"
|
|
101
|
+
},
|
|
102
|
+
"./mime-types": {
|
|
103
|
+
"types": "./dist/compiled/mime-types/index.d.ts",
|
|
104
|
+
"default": "./dist/compiled/mime-types/index.js"
|
|
105
|
+
},
|
|
106
|
+
"./strip-ansi": {
|
|
107
|
+
"types": "./dist/compiled/strip-ansi/index.d.ts",
|
|
108
|
+
"default": "./dist/compiled/strip-ansi/index.js"
|
|
109
|
+
},
|
|
110
|
+
"./browserslist": {
|
|
111
|
+
"types": "./dist/compiled/browserslist/index.d.ts",
|
|
112
|
+
"default": "./dist/compiled/browserslist/index.js"
|
|
113
|
+
},
|
|
73
114
|
"./tsconfig-paths": {
|
|
115
|
+
"types": "./dist/compiled/tsconfig-paths/lib/index.d.ts",
|
|
74
116
|
"import": "./dist/compiled/tsconfig-paths/index.mjs",
|
|
75
117
|
"default": "./dist/compiled/tsconfig-paths/index.js"
|
|
76
118
|
}
|
|
@@ -97,7 +139,7 @@
|
|
|
97
139
|
"./dist/compiled/chalk/index.d.ts"
|
|
98
140
|
],
|
|
99
141
|
"json5": [
|
|
100
|
-
"./dist/compiled/json5/index.d.ts"
|
|
142
|
+
"./dist/compiled/json5/lib/index.d.ts"
|
|
101
143
|
],
|
|
102
144
|
"semver": [
|
|
103
145
|
"./dist/compiled/semver/index.d.ts"
|
|
@@ -112,7 +154,7 @@
|
|
|
112
154
|
"./dist/compiled/fs-extra/index.d.ts"
|
|
113
155
|
],
|
|
114
156
|
"fast-glob": [
|
|
115
|
-
"./dist/compiled/fast-glob/index.d.ts"
|
|
157
|
+
"./dist/compiled/fast-glob/out/index.d.ts"
|
|
116
158
|
],
|
|
117
159
|
"gzip-size": [
|
|
118
160
|
"./dist/compiled/gzip-size/index.d.ts"
|
|
@@ -139,23 +181,23 @@
|
|
|
139
181
|
},
|
|
140
182
|
"dependencies": {
|
|
141
183
|
"@swc/helpers": "^0.5.23",
|
|
142
|
-
"caniuse-lite": "^1.0.
|
|
184
|
+
"caniuse-lite": "^1.0.30001799",
|
|
143
185
|
"import-meta-resolve": "^4.2.0",
|
|
144
186
|
"lodash": "^4.18.1",
|
|
145
187
|
"lodash-es": "^4.18.1",
|
|
146
|
-
"rslog": "^2.1.
|
|
188
|
+
"rslog": "^2.1.3"
|
|
147
189
|
},
|
|
148
190
|
"devDependencies": {
|
|
149
|
-
"@rslib/core": "0.
|
|
150
|
-
"@types/node": "^
|
|
151
|
-
"@typescript/native-preview": "7.0.0-dev.
|
|
152
|
-
"happy-dom": "^20.
|
|
191
|
+
"@rslib/core": "0.23.0",
|
|
192
|
+
"@types/node": "^26.0.0",
|
|
193
|
+
"@typescript/native-preview": "7.0.0-dev.20260624.1",
|
|
194
|
+
"happy-dom": "^20.10.6",
|
|
153
195
|
"@scripts/rstest-config": "2.66.0",
|
|
154
|
-
"@modern-js/types": "npm:@bleedingdev/modern-js-types@3.
|
|
196
|
+
"@modern-js/types": "npm:@bleedingdev/modern-js-types@3.4.0-ultramodern.0"
|
|
155
197
|
},
|
|
156
198
|
"peerDependencies": {
|
|
157
|
-
"react": "^19.2.
|
|
158
|
-
"react-dom": "^19.2.
|
|
199
|
+
"react": "^19.2.7",
|
|
200
|
+
"react-dom": "^19.2.7"
|
|
159
201
|
},
|
|
160
202
|
"peerDependenciesMeta": {
|
|
161
203
|
"react": {
|
|
@@ -168,7 +210,7 @@
|
|
|
168
210
|
"sideEffects": false,
|
|
169
211
|
"scripts": {
|
|
170
212
|
"dev": "rslib build --watch",
|
|
171
|
-
"build": "rslib build",
|
|
213
|
+
"build": "rslib build && pnpm -w tsgo:dts \"$PWD\"",
|
|
172
214
|
"test": "rstest --passWithNoTests"
|
|
173
215
|
}
|
|
174
216
|
}
|