@nx/vite 21.5.0-beta.1 → 21.5.0-beta.2

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/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": "21.5.0-beta.1",
3
+ "version": "21.5.0-beta.2",
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": "21.5.0-beta.1",
33
+ "@nx/devkit": "21.5.0-beta.2",
34
34
  "@phenomnomnominal/tsquery": "~5.0.1",
35
35
  "enquirer": "~2.3.6",
36
- "@nx/js": "21.5.0-beta.1",
36
+ "@nx/js": "21.5.0-beta.2",
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": "21.5.0-beta.1"
44
+ "nx": "21.5.0-beta.2"
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);