@nrwl/js 13.10.1 → 13.10.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/generators.json CHANGED
@@ -9,6 +9,13 @@
9
9
  "x-type": "library",
10
10
  "description": "Create a library."
11
11
  },
12
+ "init": {
13
+ "factory": "./src/generators/init/init#initSchematic",
14
+ "schema": "./src/generators/init/schema.json",
15
+ "aliases": ["lib"],
16
+ "x-type": "init",
17
+ "description": "Init placeholder."
18
+ },
12
19
  "convert-to-swc": {
13
20
  "factory": "./src/generators/convert-to-swc/convert-to-swc#convertToSwcSchematic",
14
21
  "schema": "./src/generators/convert-to-swc/schema.json",
@@ -25,6 +32,13 @@
25
32
  "x-type": "library",
26
33
  "description": "Create a library"
27
34
  },
35
+ "init": {
36
+ "factory": "./src/generators/init/init#initGenerator",
37
+ "schema": "./src/generators/init/schema.json",
38
+ "aliases": ["lib"],
39
+ "x-type": "init",
40
+ "description": "Init placeholder."
41
+ },
28
42
  "convert-to-swc": {
29
43
  "factory": "./src/generators/convert-to-swc/convert-to-swc#convertToSwcGenerator",
30
44
  "schema": "./src/generators/convert-to-swc/schema.json",
package/migrations.json CHANGED
@@ -11,6 +11,12 @@
11
11
  "version": "13.8.5-beta.1",
12
12
  "description": "Adjust .swcrc to .lib.swcrc",
13
13
  "factory": "./src/migrations/update-13-8-5/update-swcrc"
14
+ },
15
+ "update-swcrc-exclude": {
16
+ "cli": "nx",
17
+ "version": "13.10.1-beta.1",
18
+ "description": "Update .lib.swcrc to exclude missing test files",
19
+ "factory": "./src/migrations/update-13-10-1/update-lib-swcrc-exclude"
14
20
  }
15
21
  },
16
22
  "packageJsonUpdates": {}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nrwl/js",
3
- "version": "13.10.1",
3
+ "version": "13.10.2",
4
4
  "description": "The Nx plugin that provides the best experience for developing JavaScript and TypeScript projects.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -31,10 +31,10 @@
31
31
  "executors": "./executors.json",
32
32
  "builders": "./executors.json",
33
33
  "dependencies": {
34
- "@nrwl/workspace": "13.10.1",
35
- "@nrwl/devkit": "13.10.1",
36
- "@nrwl/jest": "13.10.1",
37
- "@nrwl/linter": "13.10.1",
34
+ "@nrwl/workspace": "13.10.2",
35
+ "@nrwl/devkit": "13.10.2",
36
+ "@nrwl/jest": "13.10.2",
37
+ "@nrwl/linter": "13.10.2",
38
38
  "@parcel/watcher": "2.0.4",
39
39
  "chalk": "4.1.0",
40
40
  "fast-glob": "3.2.7",
@@ -0,0 +1,3 @@
1
+ export declare function initGenerator(): Promise<void>;
2
+ export default initGenerator;
3
+ export declare const initSchematic: (generatorOptions: any) => (tree: any, context: any) => Promise<any>;
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.initSchematic = exports.initGenerator = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const devkit_1 = require("@nrwl/devkit");
6
+ function initGenerator() {
7
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
8
+ devkit_1.logger.info('This is a placeholder for @nrwl/js:init generator. If you want to create a library, use @nrwl/js:lib instead');
9
+ });
10
+ }
11
+ exports.initGenerator = initGenerator;
12
+ exports.default = initGenerator;
13
+ exports.initSchematic = (0, devkit_1.convertNxGenerator)(initGenerator);
14
+ //# sourceMappingURL=init.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"init.js","sourceRoot":"","sources":["../../../../../../packages/js/src/generators/init/init.ts"],"names":[],"mappings":";;;;AAAA,yCAA0D;AAE1D,SAAsB,aAAa;;QACjC,eAAM,CAAC,IAAI,CACT,8GAA8G,CAC/G,CAAC;IACJ,CAAC;CAAA;AAJD,sCAIC;AAED,kBAAe,aAAa,CAAC;AAChB,QAAA,aAAa,GAAG,IAAA,2BAAkB,EAAC,aAAa,CAAC,CAAC"}
@@ -0,0 +1,7 @@
1
+ {
2
+ "$schema": "http://json-schema.org/schema",
3
+ "$id": "NxTypescriptInit",
4
+ "cli": "nx",
5
+ "title": "Init nrwl/js",
6
+ "description": "Init generator placeholder for nrwl/js"
7
+ }
@@ -0,0 +1,2 @@
1
+ import { Tree } from '@nrwl/devkit';
2
+ export default function updateSwcRcExclude(tree: Tree): void;
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const devkit_1 = require("@nrwl/devkit");
4
+ const executor_options_utils_1 = require("@nrwl/workspace/src/utilities/executor-options-utils");
5
+ const path_1 = require("path");
6
+ const add_swc_config_1 = require("../../utils/swc/add-swc-config");
7
+ function updateSwcRcExclude(tree) {
8
+ (0, executor_options_utils_1.forEachExecutorOptions)(tree, '@nrwl/js:swc', (config, projectName) => {
9
+ const projectConfig = (0, devkit_1.readProjectConfiguration)(tree, projectName);
10
+ const libSwcPath = (0, path_1.join)(projectConfig.root, '.lib.swcrc');
11
+ if (!tree.exists(libSwcPath))
12
+ return;
13
+ (0, devkit_1.updateJson)(tree, libSwcPath, (json) => {
14
+ if (json.exclude) {
15
+ const excludePatterns = new Set([
16
+ ...add_swc_config_1.defaultExclude,
17
+ ...json.exclude,
18
+ ]);
19
+ // remove old patterns that are duplicate for new patterns
20
+ // defined in defaultExclude
21
+ excludePatterns.delete('./**/.*.spec.ts$');
22
+ excludePatterns.delete('./src/**/.*.spec.ts$');
23
+ excludePatterns.delete('./**/.*.js$');
24
+ excludePatterns.delete('./src/**/jest-setup.ts$');
25
+ json.exclude = [...excludePatterns];
26
+ }
27
+ return json;
28
+ }, { expectComments: true });
29
+ });
30
+ }
31
+ exports.default = updateSwcRcExclude;
32
+ //# sourceMappingURL=update-lib-swcrc-exclude.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-lib-swcrc-exclude.js","sourceRoot":"","sources":["../../../../../../packages/js/src/migrations/update-13-10-1/update-lib-swcrc-exclude.ts"],"names":[],"mappings":";;AAAA,yCAA0E;AAC1E,iGAA8F;AAC9F,+BAA4B;AAE5B,mEAAgE;AAEhE,SAAwB,kBAAkB,CAAC,IAAU;IACnD,IAAA,+CAAsB,EACpB,IAAI,EACJ,cAAc,EACd,CAAC,MAA0B,EAAE,WAAW,EAAE,EAAE;QAC1C,MAAM,aAAa,GAAG,IAAA,iCAAwB,EAAC,IAAI,EAAE,WAAW,CAAC,CAAC;QAClE,MAAM,UAAU,GAAG,IAAA,WAAI,EAAC,aAAa,CAAC,IAAI,EAAE,YAAY,CAAC,CAAC;QAE1D,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC;YAAE,OAAO;QAErC,IAAA,mBAAU,EACR,IAAI,EACJ,UAAU,EACV,CAAC,IAAI,EAAE,EAAE;YACP,IAAI,IAAI,CAAC,OAAO,EAAE;gBAChB,MAAM,eAAe,GAAG,IAAI,GAAG,CAAC;oBAC9B,GAAG,+BAAc;oBACjB,GAAG,IAAI,CAAC,OAAO;iBAChB,CAAC,CAAC;gBACH,0DAA0D;gBAC1D,4BAA4B;gBAC5B,eAAe,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAAC;gBAC3C,eAAe,CAAC,MAAM,CAAC,sBAAsB,CAAC,CAAC;gBAC/C,eAAe,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;gBACtC,eAAe,CAAC,MAAM,CAAC,yBAAyB,CAAC,CAAC;gBAElD,IAAI,CAAC,OAAO,GAAG,CAAC,GAAG,eAAe,CAAC,CAAC;aACrC;YACD,OAAO,IAAI,CAAC;QACd,CAAC,EACD,EAAE,cAAc,EAAE,IAAI,EAAE,CACzB,CAAC;IACJ,CAAC,CACF,CAAC;AACJ,CAAC;AAlCD,qCAkCC"}
@@ -3,11 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.addSwcConfig = exports.defaultExclude = void 0;
4
4
  const path_1 = require("path");
5
5
  exports.defaultExclude = [
6
- './src/**/.*.spec.ts$',
7
- './**/.*.spec.ts$',
8
- './src/**/jest-setup.ts$',
6
+ '.*.spec.tsx?$',
7
+ '.*.test.tsx?$',
8
+ './src/jest-setup.ts$',
9
9
  './**/jest-setup.ts$',
10
- './**/.*.js$',
10
+ '.*.js$',
11
11
  ];
12
12
  const swcOptionsString = () => `{
13
13
  "jsc": {
@@ -1 +1 @@
1
- {"version":3,"file":"add-swc-config.js","sourceRoot":"","sources":["../../../../../../packages/js/src/utils/swc/add-swc-config.ts"],"names":[],"mappings":";;;AAGA,+BAA4B;AAEf,QAAA,cAAc,GAAG;IAC5B,sBAAsB;IACtB,kBAAkB;IAClB,yBAAyB;IACzB,qBAAqB;IACrB,aAAa;CACd,CAAC;AAEF,MAAM,gBAAgB,GAAG,GAAG,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;eAsBhB,IAAI,CAAC,SAAS,CAAC,sBAAc,CAAC;EAC3C,CAAC;AAEH,SAAgB,YAAY,CAAC,IAAU,EAAE,UAAkB;IACzD,MAAM,SAAS,GAAG,IAAA,WAAI,EAAC,UAAU,EAAE,YAAY,CAAC,CAAC;IACjD,IAAI,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC;QAAE,OAAO;IAEnC,IAAI,CAAC,KAAK,CAAC,SAAS,EAAE,gBAAgB,EAAE,CAAC,CAAC;AAC5C,CAAC;AALD,oCAKC"}
1
+ {"version":3,"file":"add-swc-config.js","sourceRoot":"","sources":["../../../../../../packages/js/src/utils/swc/add-swc-config.ts"],"names":[],"mappings":";;;AAGA,+BAA4B;AAEf,QAAA,cAAc,GAAG;IAC5B,eAAe;IACf,eAAe;IACf,sBAAsB;IACtB,qBAAqB;IACrB,QAAQ;CACT,CAAC;AAEF,MAAM,gBAAgB,GAAG,GAAG,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;eAsBhB,IAAI,CAAC,SAAS,CAAC,sBAAc,CAAC;EAC3C,CAAC;AAEH,SAAgB,YAAY,CAAC,IAAU,EAAE,UAAkB;IACzD,MAAM,SAAS,GAAG,IAAA,WAAI,EAAC,UAAU,EAAE,YAAY,CAAC,CAAC;IACjD,IAAI,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC;QAAE,OAAO;IAEnC,IAAI,CAAC,KAAK,CAAC,SAAS,EAAE,gBAAgB,EAAE,CAAC,CAAC;AAC5C,CAAC;AALD,oCAKC"}
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.swcHelpersVersion = exports.swcCliVersion = exports.swcCoreVersion = exports.nxVersion = void 0;
4
- exports.nxVersion = '13.10.1';
4
+ exports.nxVersion = '13.10.2';
5
5
  exports.swcCoreVersion = '~1.2.143';
6
6
  exports.swcCliVersion = '~0.1.55';
7
7
  exports.swcHelpersVersion = '~0.3.3';