@nx/remix 0.0.0-pr-27930-e871993 → 0.0.0-pr-27940-4ec79a3

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/remix",
3
- "version": "0.0.0-pr-27930-e871993",
3
+ "version": "0.0.0-pr-27940-4ec79a3",
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": "0.0.0-pr-27930-e871993",
33
- "@nx/js": "0.0.0-pr-27930-e871993",
34
- "@nx/react": "0.0.0-pr-27930-e871993",
32
+ "@nx/devkit": "0.0.0-pr-27940-4ec79a3",
33
+ "@nx/js": "0.0.0-pr-27940-4ec79a3",
34
+ "@nx/react": "0.0.0-pr-27940-4ec79a3",
35
35
  "tslib": "^2.3.1",
36
36
  "@phenomnomnominal/tsquery": "~5.0.1",
37
- "@nrwl/remix": "0.0.0-pr-27930-e871993"
37
+ "@nrwl/remix": "0.0.0-pr-27940-4ec79a3"
38
38
  },
39
39
  "peerDependencies": {},
40
40
  "publishConfig": {
@@ -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,ts,cts,mts}';
27
+ const remixConfigGlob = '**/{remix,vite}.config.{js,cjs,mjs}';
28
28
  exports.createNodesV2 = [
29
29
  remixConfigGlob,
30
30
  async (configFilePaths, options, context) => {
@@ -206,12 +206,9 @@ 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*\)/;
211
209
  const fileContents = (0, fs_1.readFileSync)((0, path_1.join)(workspaceRoot, configFilePath), 'utf8');
212
210
  if (fileContents.includes('@remix-run/dev') &&
213
- (VITE_PLUGIN_REGEX.test(fileContents) ||
214
- REMIX_PLUGIN_REGEX.test(fileContents))) {
211
+ (fileContents.includes('vitePlugin()') || fileContents.includes('remix()'))) {
215
212
  return RemixCompiler.IsVte;
216
213
  }
217
214
  else {