@nx/vite 0.0.0-pr-32490-e4fdfa9 → 0.0.0-pr-32868-a65a4a2

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/README.md CHANGED
@@ -22,7 +22,7 @@
22
22
 
23
23
  # Nx: Smart Repos · Fast Builds
24
24
 
25
- An AI-first build platform that connects everything from your editor to CI. Helping you deliver fast, without breaking things.
25
+ Get to green PRs in half the time. Nx optimizes your builds, scales your CI, and fixes failed PRs. Built for developers and AI agents.
26
26
 
27
27
  This package is a [Vite plugin for Nx](https://nx.dev/nx-api/vite).
28
28
 
package/migrations.json CHANGED
@@ -105,6 +105,9 @@
105
105
  "version": "^7.1.3",
106
106
  "alwaysAddToPackageJson": false
107
107
  }
108
+ },
109
+ "incompatibleWith": {
110
+ "@remix-run/dev": "*"
108
111
  }
109
112
  }
110
113
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/vite",
3
- "version": "0.0.0-pr-32490-e4fdfa9",
3
+ "version": "0.0.0-pr-32868-a65a4a2",
4
4
  "private": false,
5
5
  "description": "The Nx Plugin for building and testing applications using Vite",
6
6
  "repository": {
@@ -30,10 +30,10 @@
30
30
  "migrations": "./migrations.json"
31
31
  },
32
32
  "dependencies": {
33
- "@nx/devkit": "0.0.0-pr-32490-e4fdfa9",
33
+ "@nx/devkit": "0.0.0-pr-32868-a65a4a2",
34
34
  "@phenomnomnominal/tsquery": "~5.0.1",
35
35
  "enquirer": "~2.3.6",
36
- "@nx/js": "0.0.0-pr-32490-e4fdfa9",
36
+ "@nx/js": "0.0.0-pr-32868-a65a4a2",
37
37
  "picomatch": "4.0.2",
38
38
  "tsconfig-paths": "^4.1.2",
39
39
  "semver": "^7.6.3",
@@ -41,7 +41,7 @@
41
41
  "ajv": "^8.0.0"
42
42
  },
43
43
  "devDependencies": {
44
- "nx": "0.0.0-pr-32490-e4fdfa9"
44
+ "nx": "0.0.0-pr-32868-a65a4a2"
45
45
  },
46
46
  "peerDependencies": {
47
47
  "vite": "^5.0.0 || ^6.0.0 || ^7.0.0",
@@ -1 +1 @@
1
- {"version":3,"file":"configuration.d.ts","sourceRoot":"","sources":["../../../../../../packages/vite/src/generators/configuration/configuration.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,iBAAiB,EAMjB,IAAI,EAGL,MAAM,YAAY,CAAC;AAuBpB,OAAO,EAAE,gCAAgC,EAAE,MAAM,UAAU,CAAC;AAE5D,wBAAgB,0BAA0B,CACxC,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,gCAAgC,8BAMzC;AAED,wBAAsB,kCAAkC,CACtD,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,gCAAgC,8BA6IzC;AAED,eAAe,0BAA0B,CAAC"}
1
+ {"version":3,"file":"configuration.d.ts","sourceRoot":"","sources":["../../../../../../packages/vite/src/generators/configuration/configuration.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,iBAAiB,EAMjB,IAAI,EAGL,MAAM,YAAY,CAAC;AAwBpB,OAAO,EAAE,gCAAgC,EAAE,MAAM,UAAU,CAAC;AAE5D,wBAAgB,0BAA0B,CACxC,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,gCAAgC,8BAMzC;AAED,wBAAsB,kCAAkC,CACtD,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,gCAAgC,8BA6IzC;AAED,eAAe,0BAA0B,CAAC"}
@@ -152,9 +152,6 @@ function updatePackageJson(tree, options, projectType) {
152
152
  // we configure the dts plugin with the entryRoot set to `src`
153
153
  const rootDir = (0, posix_1.join)(project.root, 'src');
154
154
  const outputPath = (0, devkit_1.joinPathFragments)(project.root, 'dist');
155
- // the file must exist in the TS solution setup, which is the only case this
156
- // function is called
157
- const tsconfigBase = (0, devkit_1.readJson)(tree, 'tsconfig.base.json');
158
155
  packageJson = (0, js_1.getUpdatedPackageJsonContent)(packageJson, {
159
156
  main,
160
157
  outputPath,
@@ -163,7 +160,7 @@ function updatePackageJson(tree, options, projectType) {
163
160
  generateExportsField: true,
164
161
  packageJsonPath,
165
162
  format: ['esm'],
166
- skipDevelopmentExports: !tsconfigBase.compilerOptions?.customConditions?.includes('development'),
163
+ developmentConditionName: (0, ts_solution_setup_1.getDefinedCustomConditionName)(tree),
167
164
  });
168
165
  }
169
166
  (0, devkit_1.writeJson)(tree, packageJsonPath, packageJson);
@@ -361,7 +361,7 @@ function getOutputs(viteBuildConfig, projectRoot, workspaceRoot) {
361
361
  const isBuildable = build?.lib ||
362
362
  build?.rollupOptions?.input ||
363
363
  (0, fs_1.existsSync)((0, path_1.join)(workspaceRoot, projectRoot, 'index.html'));
364
- const hasServeConfig = Boolean(server);
364
+ const hasServeConfig = Boolean(server?.host || server?.port);
365
365
  const reportsDirectoryPath = normalizeOutputPath(test?.coverage?.reportsDirectory, projectRoot, workspaceRoot, 'coverage');
366
366
  return {
367
367
  buildOutputs: [buildOutputPath],
@@ -1 +1 @@
1
- {"version":3,"file":"executor-utils.d.ts","sourceRoot":"","sources":["../../../../../packages/vite/src/utils/executor-utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAA4B,MAAM,YAAY,CAAC;AAWvE,wBAAsB,aAAa,CAAC,IAAI,EAAE;IACxC,aAAa,EAAE,MAAM,CAAC;IACtB,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB,GAAG,OAAO,CAAC,IAAI,CAAC,CA0BhB;AAED,wBAAgB,uBAAuB,CACrC,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE;IAAE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAAC,mBAAmB,CAAC,EAAE,OAAO,CAAA;CAAE,EAC7D,OAAO,EAAE,eAAe,UA4BzB;AAED,wBAAgB,qBAAqB,IACW,OAAO,CAAC,cAAc,MAAM,CAAC,CAAC,CAC7E;AAED,wBAAgB,uBAAuB,IACgB,OAAO,CAC1D,cAAc,aAAa,CAAC,CAC7B,CACF"}
1
+ {"version":3,"file":"executor-utils.d.ts","sourceRoot":"","sources":["../../../../../packages/vite/src/utils/executor-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAA4B,MAAM,YAAY,CAAC;AAUvE,wBAAsB,aAAa,CAAC,IAAI,EAAE;IACxC,aAAa,EAAE,MAAM,CAAC;IACtB,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB,GAAG,OAAO,CAAC,IAAI,CAAC,CA0BhB;AAED,wBAAgB,uBAAuB,CACrC,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE;IAAE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAAC,mBAAmB,CAAC,EAAE,OAAO,CAAA;CAAE,EAC7D,OAAO,EAAE,eAAe,UA4BzB;AAED,wBAAgB,qBAAqB,IACW,OAAO,CAAC,cAAc,MAAM,CAAC,CAAC,CAC7E;AAED,wBAAgB,uBAAuB,IACgB,OAAO,CAC1D,cAAc,aAAa,CAAC,CAC7B,CACF"}