@nx/remix 19.7.2 → 19.7.4
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 +5 -5
- package/src/plugins/plugin.js +5 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/remix",
|
|
3
|
-
"version": "19.7.
|
|
3
|
+
"version": "19.7.4",
|
|
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",
|
|
@@ -29,12 +29,12 @@
|
|
|
29
29
|
"migrations": "./migrations.json"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@nx/devkit": "19.7.
|
|
33
|
-
"@nx/js": "19.7.
|
|
34
|
-
"@nx/react": "19.7.
|
|
32
|
+
"@nx/devkit": "19.7.4",
|
|
33
|
+
"@nx/js": "19.7.4",
|
|
34
|
+
"@nx/react": "19.7.4",
|
|
35
35
|
"tslib": "^2.3.1",
|
|
36
36
|
"@phenomnomnominal/tsquery": "~5.0.1",
|
|
37
|
-
"@nrwl/remix": "19.7.
|
|
37
|
+
"@nrwl/remix": "19.7.4"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {},
|
|
40
40
|
"publishConfig": {
|
package/src/plugins/plugin.js
CHANGED
|
@@ -24,7 +24,7 @@ const createDependencies = () => {
|
|
|
24
24
|
return [];
|
|
25
25
|
};
|
|
26
26
|
exports.createDependencies = createDependencies;
|
|
27
|
-
const remixConfigGlob = '**/{remix,vite}.config.{js,cjs,mjs}';
|
|
27
|
+
const remixConfigGlob = '**/{remix,vite}.config.{js,cjs,mjs,ts,cts,mts}';
|
|
28
28
|
exports.createNodesV2 = [
|
|
29
29
|
remixConfigGlob,
|
|
30
30
|
async (configFilePaths, options, context) => {
|
|
@@ -206,9 +206,12 @@ function determineIsRemixVite(configFilePath, workspaceRoot) {
|
|
|
206
206
|
if (configFilePath.includes('remix.config')) {
|
|
207
207
|
return RemixCompiler.IsClassic;
|
|
208
208
|
}
|
|
209
|
+
const VITE_PLUGIN_REGEX = /vitePlugin\(\s*(.|\n)*?\s*\)/;
|
|
210
|
+
const REMIX_PLUGIN_REGEX = /remix\(\s*(.|\n)*?\s*\)/;
|
|
209
211
|
const fileContents = (0, fs_1.readFileSync)((0, path_1.join)(workspaceRoot, configFilePath), 'utf8');
|
|
210
212
|
if (fileContents.includes('@remix-run/dev') &&
|
|
211
|
-
(
|
|
213
|
+
(VITE_PLUGIN_REGEX.test(fileContents) ||
|
|
214
|
+
REMIX_PLUGIN_REGEX.test(fileContents))) {
|
|
212
215
|
return RemixCompiler.IsVte;
|
|
213
216
|
}
|
|
214
217
|
else {
|