@nx/web 16.7.3 → 16.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/web",
3
- "version": "16.7.3",
3
+ "version": "16.7.4",
4
4
  "private": false,
5
5
  "description": "The Nx Plugin for Web Components contains generators for managing Web Component applications and libraries within an Nx workspace. It provides:\n\n\n- Integration with libraries such as Jest, Cypress, and Storybook.\n\n- Scaffolding for creating buildable libraries that can be published to npm.\n\n- Utilities for automatic workspace refactoring.",
6
6
  "repository": {
@@ -30,9 +30,9 @@
30
30
  "migrations": "./migrations.json"
31
31
  },
32
32
  "dependencies": {
33
- "@nrwl/web": "16.7.3",
34
- "@nx/devkit": "16.7.3",
35
- "@nx/js": "16.7.3",
33
+ "@nrwl/web": "16.7.4",
34
+ "@nx/devkit": "16.7.4",
35
+ "@nx/js": "16.7.4",
36
36
  "chalk": "^4.1.0",
37
37
  "chokidar": "^3.5.1",
38
38
  "detect-port": "^1.5.1",
@@ -44,5 +44,5 @@
44
44
  "access": "public"
45
45
  },
46
46
  "type": "commonjs",
47
- "gitHead": "6ff5487c5f4ed9ed008df2af39e37d98fd289259"
47
+ "gitHead": "5d73f6e0f2c6d4dfb2e9d45519d591c338bb5c37"
48
48
  }
@@ -197,9 +197,22 @@ function applicationGenerator(host, schema) {
197
197
  tasks.push(jestTask);
198
198
  }
199
199
  if (options.compiler === 'swc') {
200
+ (0, devkit_1.writeJson)(host, (0, devkit_1.joinPathFragments)(options.appProjectRoot, '.swcrc'), {
201
+ jsc: {
202
+ parser: {
203
+ syntax: 'typescript',
204
+ },
205
+ target: 'es2016',
206
+ },
207
+ });
200
208
  const installTask = (0, devkit_1.addDependenciesToPackageJson)(host, {}, { '@swc/core': versions_1.swcCoreVersion, 'swc-loader': versions_2.swcLoaderVersion });
201
209
  tasks.push(installTask);
202
210
  }
211
+ else {
212
+ (0, devkit_1.writeJson)(host, (0, devkit_1.joinPathFragments)(options.appProjectRoot, '.babelrc'), {
213
+ presets: ['@nx/js/babel'],
214
+ });
215
+ }
203
216
  setDefaults(host, options);
204
217
  if (!schema.skipFormat) {
205
218
  yield (0, devkit_1.formatFiles)(host);
@@ -1,5 +0,0 @@
1
- {
2
- "presets": [
3
- "@nx/js/babel"
4
- ]
5
- }