@nx/remix 23.0.0-beta.12 → 23.0.0-beta.14
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 +6 -6
- package/src/generators/application/application.impl.d.ts.map +1 -1
- package/src/generators/application/application.impl.js +6 -8
- package/src/generators/application/lib/add-e2e.d.ts.map +1 -1
- package/src/generators/application/lib/add-e2e.js +3 -3
- package/src/generators/application/lib/normalize-options.js +2 -2
- package/src/generators/library/lib/add-tsconfig-entry-points.js +2 -2
- package/src/generators/library/lib/normalize-options.js +2 -2
- package/src/generators/library/library.impl.js +5 -6
- package/src/plugins/plugin.d.ts.map +1 -1
- package/src/plugins/plugin.js +3 -4
- package/src/utils/testing-config-utils.js +5 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/remix",
|
|
3
|
-
"version": "23.0.0-beta.
|
|
3
|
+
"version": "23.0.0-beta.14",
|
|
4
4
|
"description": "The Remix plugin for Nx contains executors and generators for managing Remix applications and libraries within an Nx workspace. It provides:\n\n\n- Integration with libraries such as Vitest, Jest, Playwright, Cypress, and Storybook.\n\n- Generators for applications, libraries, routes, loaders, and more.\n\n- Library build support for publishing packages to npm or other registries.\n\n- Utilities for automatic workspace refactoring.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -30,15 +30,15 @@
|
|
|
30
30
|
"migrations": "./migrations.json"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@nx/devkit": "23.0.0-beta.
|
|
34
|
-
"@nx/js": "23.0.0-beta.
|
|
35
|
-
"@nx/react": "23.0.0-beta.
|
|
33
|
+
"@nx/devkit": "23.0.0-beta.14",
|
|
34
|
+
"@nx/js": "23.0.0-beta.14",
|
|
35
|
+
"@nx/react": "23.0.0-beta.14",
|
|
36
36
|
"tslib": "^2.3.0",
|
|
37
37
|
"@phenomnomnominal/tsquery": "~6.2.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"nx": "23.0.0-beta.
|
|
41
|
-
"@nx/vitest": "23.0.0-beta.
|
|
40
|
+
"nx": "23.0.0-beta.14",
|
|
41
|
+
"@nx/vitest": "23.0.0-beta.14"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
44
|
"@remix-run/dev": "^2.17.3"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"application.impl.d.ts","sourceRoot":"","sources":["../../../../../../packages/remix/src/generators/application/application.impl.ts"],"names":[],"mappings":"AACA,OAAO,EAKL,iBAAiB,EAMjB,IAAI,EAGL,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"application.impl.d.ts","sourceRoot":"","sources":["../../../../../../packages/remix/src/generators/application/application.impl.ts"],"names":[],"mappings":"AACA,OAAO,EAKL,iBAAiB,EAMjB,IAAI,EAGL,MAAM,YAAY,CAAC;AA2BpB,OAAO,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAOlD,wBAAgB,yBAAyB,CACvC,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,sBAAsB,8BAOhC;AAED,wBAAsB,iCAAiC,CACrD,IAAI,EAAE,IAAI,EACV,QAAQ,EAAE,sBAAsB,8BA+SjC;AAED,eAAe,yBAAyB,CAAC"}
|
|
@@ -6,15 +6,13 @@ const tslib_1 = require("tslib");
|
|
|
6
6
|
const internal_1 = require("@nx/devkit/internal");
|
|
7
7
|
const devkit_1 = require("@nx/devkit");
|
|
8
8
|
const js_1 = require("@nx/js");
|
|
9
|
-
const create_ts_config_1 = require("@nx/js/src/utils/typescript/create-ts-config");
|
|
10
9
|
const onboarding_1 = require("nx/src/nx-cloud/utilities/onboarding");
|
|
11
10
|
const testing_config_utils_1 = require("../../utils/testing-config-utils");
|
|
12
11
|
const versions_1 = require("../../utils/versions");
|
|
13
12
|
const init_1 = tslib_1.__importDefault(require("../init/init"));
|
|
14
13
|
const update_dependencies_1 = require("../utils/update-dependencies");
|
|
15
14
|
const lib_1 = require("./lib");
|
|
16
|
-
const
|
|
17
|
-
const sort_fields_1 = require("@nx/js/src/utils/package-json/sort-fields");
|
|
15
|
+
const internal_2 = require("@nx/js/internal");
|
|
18
16
|
function remixApplicationGenerator(tree, options) {
|
|
19
17
|
return remixApplicationGeneratorInternal(tree, {
|
|
20
18
|
addPlugin: true,
|
|
@@ -23,7 +21,7 @@ function remixApplicationGenerator(tree, options) {
|
|
|
23
21
|
});
|
|
24
22
|
}
|
|
25
23
|
async function remixApplicationGeneratorInternal(tree, _options) {
|
|
26
|
-
const addTsPlugin = (0,
|
|
24
|
+
const addTsPlugin = (0, internal_2.shouldConfigureTsSolutionSetup)(tree, _options.addPlugin, _options.useTsSolution);
|
|
27
25
|
const tasks = [
|
|
28
26
|
await (0, init_1.default)(tree, {
|
|
29
27
|
skipFormat: true,
|
|
@@ -43,7 +41,7 @@ async function remixApplicationGeneratorInternal(tree, _options) {
|
|
|
43
41
|
// If we are using the new TS solution
|
|
44
42
|
// We need to update the workspace file (package.json or pnpm-workspaces.yaml) to include the new project
|
|
45
43
|
if (options.isUsingTsSolutionConfig) {
|
|
46
|
-
await (0,
|
|
44
|
+
await (0, internal_2.addProjectToTsSolutionWorkspace)(tree, options.projectRoot);
|
|
47
45
|
}
|
|
48
46
|
if (options.useProjectJson) {
|
|
49
47
|
(0, devkit_1.addProjectConfiguration)(tree, options.projectName, {
|
|
@@ -197,7 +195,7 @@ async function remixApplicationGeneratorInternal(tree, _options) {
|
|
|
197
195
|
}
|
|
198
196
|
else {
|
|
199
197
|
// Otherwise, extract the tsconfig.base.json from tsconfig.json so we can share settings.
|
|
200
|
-
(0,
|
|
198
|
+
(0, js_1.extractTsConfigBase)(tree);
|
|
201
199
|
}
|
|
202
200
|
if (options.rootProject) {
|
|
203
201
|
(0, devkit_1.updateJson)(tree, `package.json`, (json) => {
|
|
@@ -213,14 +211,14 @@ export default {...nxPreset};
|
|
|
213
211
|
}
|
|
214
212
|
tasks.push(await (0, lib_1.addE2E)(tree, options));
|
|
215
213
|
await (0, lib_1.ignoreViteTempFiles)(tree, options.projectRoot);
|
|
216
|
-
(0,
|
|
214
|
+
(0, internal_2.updateTsconfigFiles)(tree, options.projectRoot, 'tsconfig.app.json', {
|
|
217
215
|
jsx: 'react-jsx',
|
|
218
216
|
module: 'esnext',
|
|
219
217
|
moduleResolution: 'bundler',
|
|
220
218
|
}, options.linter === 'eslint'
|
|
221
219
|
? ['eslint.config.js', 'eslint.config.cjs', 'eslint.config.mjs']
|
|
222
220
|
: undefined, '.');
|
|
223
|
-
(0,
|
|
221
|
+
(0, internal_2.sortPackageJsonFields)(tree, options.projectRoot);
|
|
224
222
|
if (!options.skipFormat) {
|
|
225
223
|
await (0, devkit_1.formatFiles)(tree);
|
|
226
224
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-e2e.d.ts","sourceRoot":"","sources":["../../../../../../../packages/remix/src/generators/application/lib/add-e2e.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"add-e2e.d.ts","sourceRoot":"","sources":["../../../../../../../packages/remix/src/generators/application/lib/add-e2e.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,KAAK,IAAI,EAIT,iBAAiB,EAGlB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAI5D,wBAAsB,MAAM,CAC1B,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,gBAAgB,GACxB,OAAO,CAAC,iBAAiB,CAAC,CAoH5B"}
|
|
@@ -98,9 +98,9 @@ async function getRemixE2EWebServerInfo(tree, projectName, configFilePath, isPlu
|
|
|
98
98
|
const nxJson = (0, devkit_1.readNxJson)(tree);
|
|
99
99
|
let e2ePort = isPluginBeingAdded ? 3000 : 4200;
|
|
100
100
|
const defaultServeTarget = isPluginBeingAdded ? 'dev' : 'serve';
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
e2ePort =
|
|
101
|
+
const serveTargetOptions = (0, internal_1.readTargetDefaultsForTarget)(defaultServeTarget, nxJson.targetDefaults)?.options;
|
|
102
|
+
if (serveTargetOptions?.port) {
|
|
103
|
+
e2ePort = serveTargetOptions.port;
|
|
104
104
|
}
|
|
105
105
|
return (0, internal_1.getE2EWebServerInfo)(tree, projectName, {
|
|
106
106
|
plugin: '@nx/remix/plugin',
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.normalizeOptions = normalizeOptions;
|
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
|
5
5
|
const internal_1 = require("@nx/devkit/internal");
|
|
6
|
-
const
|
|
6
|
+
const internal_2 = require("@nx/js/internal");
|
|
7
7
|
async function normalizeOptions(tree, options) {
|
|
8
8
|
await (0, internal_1.ensureRootProjectName)(options, 'application');
|
|
9
9
|
const { projectName, projectRoot, importPath } = await (0, internal_1.determineProjectNameAndRootOptions)(tree, {
|
|
@@ -17,7 +17,7 @@ async function normalizeOptions(tree, options) {
|
|
|
17
17
|
const addPluginDefault = process.env.NX_ADD_PLUGINS !== 'false' &&
|
|
18
18
|
nxJson.useInferencePlugins !== false;
|
|
19
19
|
options.addPlugin ??= addPluginDefault;
|
|
20
|
-
const isUsingTsSolutionConfig = (0,
|
|
20
|
+
const isUsingTsSolutionConfig = (0, internal_2.isUsingTsSolutionSetup)(tree);
|
|
21
21
|
const appProjectName = !isUsingTsSolutionConfig || options.name ? projectName : importPath;
|
|
22
22
|
const e2eProjectName = options.rootProject ? 'e2e' : `${appProjectName}-e2e`;
|
|
23
23
|
const e2eProjectRoot = options.rootProject ? 'e2e' : `${projectRoot}-e2e`;
|
|
@@ -3,10 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.addTsconfigEntryPoints = addTsconfigEntryPoints;
|
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
|
5
5
|
const js_1 = require("@nx/js");
|
|
6
|
-
const
|
|
6
|
+
const internal_1 = require("@nx/js/internal");
|
|
7
7
|
function addTsconfigEntryPoints(tree, options) {
|
|
8
8
|
const project = (0, devkit_1.readProjectConfiguration)(tree, options.projectName);
|
|
9
|
-
const projectSourceRoot = (0,
|
|
9
|
+
const projectSourceRoot = (0, internal_1.getProjectSourceRoot)(project, tree);
|
|
10
10
|
const serverFilePath = (0, devkit_1.joinPathFragments)(projectSourceRoot, 'server.ts');
|
|
11
11
|
tree.write(serverFilePath, `// This file should be used to export ONLY server-code from the library.`);
|
|
12
12
|
const baseTsConfig = (0, js_1.getRootTsConfigPathInTree)(tree);
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.normalizeOptions = normalizeOptions;
|
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
|
5
5
|
const internal_1 = require("@nx/devkit/internal");
|
|
6
|
-
const
|
|
6
|
+
const internal_2 = require("@nx/js/internal");
|
|
7
7
|
async function normalizeOptions(tree, options) {
|
|
8
8
|
await (0, internal_1.ensureRootProjectName)(options, 'application');
|
|
9
9
|
const { projectName, projectRoot, importPath } = await (0, internal_1.determineProjectNameAndRootOptions)(tree, {
|
|
@@ -15,7 +15,7 @@ async function normalizeOptions(tree, options) {
|
|
|
15
15
|
const addPluginDefault = process.env.NX_ADD_PLUGINS !== 'false' &&
|
|
16
16
|
nxJson.useInferencePlugins !== false;
|
|
17
17
|
options.addPlugin ??= addPluginDefault;
|
|
18
|
-
const isUsingTsSolutionConfig = (0,
|
|
18
|
+
const isUsingTsSolutionConfig = (0, internal_2.isUsingTsSolutionSetup)(tree);
|
|
19
19
|
return {
|
|
20
20
|
...options,
|
|
21
21
|
unitTestRunner: options.unitTestRunner ?? 'vitest',
|
|
@@ -6,8 +6,7 @@ const devkit_1 = require("@nx/devkit");
|
|
|
6
6
|
const js_1 = require("@nx/js");
|
|
7
7
|
const react_1 = require("@nx/react");
|
|
8
8
|
const lib_1 = require("./lib");
|
|
9
|
-
const
|
|
10
|
-
const sort_fields_1 = require("@nx/js/src/utils/package-json/sort-fields");
|
|
9
|
+
const internal_1 = require("@nx/js/internal");
|
|
11
10
|
const update_dependencies_1 = require("../utils/update-dependencies");
|
|
12
11
|
async function remixLibraryGenerator(tree, schema) {
|
|
13
12
|
return remixLibraryGeneratorInternal(tree, {
|
|
@@ -18,7 +17,7 @@ async function remixLibraryGenerator(tree, schema) {
|
|
|
18
17
|
}
|
|
19
18
|
async function remixLibraryGeneratorInternal(tree, schema) {
|
|
20
19
|
const tasks = [];
|
|
21
|
-
const addTsPlugin = (0,
|
|
20
|
+
const addTsPlugin = (0, internal_1.shouldConfigureTsSolutionSetup)(tree, schema.addPlugin);
|
|
22
21
|
const installTask = (0, update_dependencies_1.updateDependencies)(tree);
|
|
23
22
|
tasks.push(installTask);
|
|
24
23
|
const jsInitTask = await (0, js_1.initGenerator)(tree, {
|
|
@@ -29,7 +28,7 @@ async function remixLibraryGeneratorInternal(tree, schema) {
|
|
|
29
28
|
tasks.push(jsInitTask);
|
|
30
29
|
const options = await (0, lib_1.normalizeOptions)(tree, schema);
|
|
31
30
|
if (options.isUsingTsSolutionConfig) {
|
|
32
|
-
await (0,
|
|
31
|
+
await (0, internal_1.addProjectToTsSolutionWorkspace)(tree, options.projectRoot);
|
|
33
32
|
}
|
|
34
33
|
const libGenTask = await (0, react_1.libraryGenerator)(tree, {
|
|
35
34
|
directory: options.directory,
|
|
@@ -56,14 +55,14 @@ async function remixLibraryGeneratorInternal(tree, schema) {
|
|
|
56
55
|
if (options.bundler === 'rollup' || options.buildable) {
|
|
57
56
|
(0, lib_1.updateBuildableConfig)(tree, options);
|
|
58
57
|
}
|
|
59
|
-
(0,
|
|
58
|
+
(0, internal_1.updateTsconfigFiles)(tree, options.projectRoot, 'tsconfig.lib.json', {
|
|
60
59
|
jsx: 'react-jsx',
|
|
61
60
|
module: 'esnext',
|
|
62
61
|
moduleResolution: 'bundler',
|
|
63
62
|
}, options.linter === 'eslint'
|
|
64
63
|
? ['eslint.config.js', 'eslint.config.cjs', 'eslint.config.mjs']
|
|
65
64
|
: undefined);
|
|
66
|
-
(0,
|
|
65
|
+
(0, internal_1.sortPackageJsonFields)(tree, options.projectRoot);
|
|
67
66
|
if (!options.skipFormat) {
|
|
68
67
|
await (0, devkit_1.formatFiles)(tree);
|
|
69
68
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../../packages/remix/src/plugins/plugin.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,KAAK,kBAAkB,EAGvB,aAAa,EAOd,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../../packages/remix/src/plugins/plugin.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,KAAK,kBAAkB,EAGvB,aAAa,EAOd,MAAM,YAAY,CAAC;AAUpB,MAAM,WAAW,kBAAkB;IACjC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC;AAID;;GAEG;AACH,eAAO,MAAM,kBAAkB,EAAE,kBAEhC,CAAC;AAIF,eAAO,MAAM,WAAW,EAAE,aAAa,CAAC,kBAAkB,CA6BzD,CAAC;AAEF,eAAO,MAAM,aAAa,mCAAc,CAAC"}
|
package/src/plugins/plugin.js
CHANGED
|
@@ -9,8 +9,7 @@ const js_1 = require("@nx/js");
|
|
|
9
9
|
const path_1 = require("path");
|
|
10
10
|
const fs_1 = require("fs");
|
|
11
11
|
const executor_utils_1 = require("../utils/executor-utils");
|
|
12
|
-
const
|
|
13
|
-
const ts_solution_setup_1 = require("@nx/js/src/utils/typescript/ts-solution-setup");
|
|
12
|
+
const internal_2 = require("@nx/js/internal");
|
|
14
13
|
/**
|
|
15
14
|
* @deprecated The 'createDependencies' function is now a no-op. This functionality is included in 'createNodesV2'.
|
|
16
15
|
*/
|
|
@@ -29,7 +28,7 @@ exports.createNodes = [
|
|
|
29
28
|
const pmc = (0, devkit_1.getPackageManagerCommand)(packageManager);
|
|
30
29
|
const lockFileName = (0, js_1.getLockFileName)(packageManager);
|
|
31
30
|
try {
|
|
32
|
-
return await (0, devkit_1.createNodesFromFiles)((configFile, options, context) => createNodesInternal(configFile, options, context, targetsCache, (0,
|
|
31
|
+
return await (0, devkit_1.createNodesFromFiles)((configFile, options, context) => createNodesInternal(configFile, options, context, targetsCache, (0, internal_2.isUsingTsSolutionSetup)(), pmc, lockFileName), configFilePaths, options, context);
|
|
33
32
|
}
|
|
34
33
|
finally {
|
|
35
34
|
targetsCache.writeToDisk();
|
|
@@ -76,7 +75,7 @@ async function buildRemixTargets(configFilePath, projectRoot, options, context,
|
|
|
76
75
|
targets[options.startTargetName] = startTarget(projectRoot, serverBuildPath, options.buildTargetName, remixCompiler, isUsingTsSolutionSetup);
|
|
77
76
|
targets[options.serveStaticTargetName] = startTarget(projectRoot, serverBuildPath, options.buildTargetName, remixCompiler, isUsingTsSolutionSetup);
|
|
78
77
|
targets[options.typecheckTargetName] = typecheckTarget(options.typecheckTargetName, projectRoot, namedInputs, siblingFiles, isUsingTsSolutionSetup, pmc);
|
|
79
|
-
(0,
|
|
78
|
+
(0, internal_2.addBuildAndWatchDepsTargets)(context.workspaceRoot, projectRoot, targets, options, pmc);
|
|
80
79
|
return { targets, metadata: {} };
|
|
81
80
|
}
|
|
82
81
|
function buildTarget(buildTargetName, projectRoot, buildDirectory, assetsBuildDirectory, namedInputs, remixCompiler, isUsingTsSolutionSetup) {
|
|
@@ -5,11 +5,11 @@ exports.updateJestTestSetup = updateJestTestSetup;
|
|
|
5
5
|
exports.updateJestTestMatch = updateJestTestMatch;
|
|
6
6
|
exports.updateVitestTestIncludes = updateVitestTestIncludes;
|
|
7
7
|
const devkit_1 = require("@nx/devkit");
|
|
8
|
-
const
|
|
8
|
+
const internal_1 = require("@nx/js/internal");
|
|
9
9
|
let tsModule;
|
|
10
10
|
function updateVitestTestSetup(tree, pathToVitestConfig, pathToTestSetup) {
|
|
11
11
|
if (!tsModule) {
|
|
12
|
-
tsModule = (0,
|
|
12
|
+
tsModule = (0, internal_1.ensureTypescript)();
|
|
13
13
|
}
|
|
14
14
|
const { ast, query } = require('@phenomnomnominal/tsquery');
|
|
15
15
|
const fileContents = tree.read(pathToVitestConfig, 'utf-8');
|
|
@@ -32,7 +32,7 @@ function updateVitestTestSetup(tree, pathToVitestConfig, pathToTestSetup) {
|
|
|
32
32
|
}
|
|
33
33
|
function updateJestTestSetup(tree, pathToJestConfig, pathToTestSetup) {
|
|
34
34
|
if (!tsModule) {
|
|
35
|
-
tsModule = (0,
|
|
35
|
+
tsModule = (0, internal_1.ensureTypescript)();
|
|
36
36
|
}
|
|
37
37
|
const { ast, query } = require('@phenomnomnominal/tsquery');
|
|
38
38
|
const fileContents = tree.read(pathToJestConfig, 'utf-8');
|
|
@@ -55,7 +55,7 @@ function updateJestTestSetup(tree, pathToJestConfig, pathToTestSetup) {
|
|
|
55
55
|
}
|
|
56
56
|
function updateJestTestMatch(tree, pathToJestConfig, includesString) {
|
|
57
57
|
if (!tsModule) {
|
|
58
|
-
tsModule = (0,
|
|
58
|
+
tsModule = (0, internal_1.ensureTypescript)();
|
|
59
59
|
}
|
|
60
60
|
const { ast, query } = require('@phenomnomnominal/tsquery');
|
|
61
61
|
const fileContents = tree.read(pathToJestConfig, 'utf-8');
|
|
@@ -69,7 +69,7 @@ function updateJestTestMatch(tree, pathToJestConfig, includesString) {
|
|
|
69
69
|
}
|
|
70
70
|
function updateVitestTestIncludes(tree, pathToVitestConfig, includesString) {
|
|
71
71
|
if (!tsModule) {
|
|
72
|
-
tsModule = (0,
|
|
72
|
+
tsModule = (0, internal_1.ensureTypescript)();
|
|
73
73
|
}
|
|
74
74
|
const { ast, query } = require('@phenomnomnominal/tsquery');
|
|
75
75
|
const fileContents = tree.read(pathToVitestConfig, 'utf-8');
|