@nrwl/js 15.3.0-beta.10 → 15.3.0-beta.11
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/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,6 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
-
# [15.3.0-beta.
|
|
6
|
+
# [15.3.0-beta.11](https://github.com/nrwl/nx/compare/15.2.0...15.3.0-beta.11) (2022-12-01)
|
|
7
7
|
|
|
8
8
|
**Note:** Version bump only for package @nrwl/js
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nrwl/js",
|
|
3
|
-
"version": "15.3.0-beta.
|
|
3
|
+
"version": "15.3.0-beta.11",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "The JS plugin for Nx contains executors and generators that provide the best experience for developing JavaScript and TypeScript projects. ",
|
|
6
6
|
"repository": {
|
|
@@ -32,10 +32,10 @@
|
|
|
32
32
|
"executors": "./executors.json",
|
|
33
33
|
"builders": "./executors.json",
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@nrwl/devkit": "15.3.0-beta.
|
|
36
|
-
"@nrwl/jest": "15.3.0-beta.
|
|
37
|
-
"@nrwl/linter": "15.3.0-beta.
|
|
38
|
-
"@nrwl/workspace": "15.3.0-beta.
|
|
35
|
+
"@nrwl/devkit": "15.3.0-beta.11",
|
|
36
|
+
"@nrwl/jest": "15.3.0-beta.11",
|
|
37
|
+
"@nrwl/linter": "15.3.0-beta.11",
|
|
38
|
+
"@nrwl/workspace": "15.3.0-beta.11",
|
|
39
39
|
"chalk": "4.1.0",
|
|
40
40
|
"fast-glob": "3.2.7",
|
|
41
41
|
"fs-extra": "^10.1.0",
|
|
@@ -49,5 +49,5 @@
|
|
|
49
49
|
"access": "public"
|
|
50
50
|
},
|
|
51
51
|
"types": "./src/index.d.ts",
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "4c723de4448fef0b7d0da2f47af3b27d847b2816"
|
|
53
53
|
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.addBabelInputs = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const devkit_1 = require("@nrwl/devkit");
|
|
6
|
+
function addBabelInputs(tree) {
|
|
7
|
+
var _a;
|
|
8
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
9
|
+
const workspaceConfiguration = (0, devkit_1.readWorkspaceConfiguration)(tree);
|
|
10
|
+
let globalBabelFile = ['babel.config.js', 'babel.config.json'].find((file) => tree.exists(file));
|
|
11
|
+
if (!globalBabelFile) {
|
|
12
|
+
(0, devkit_1.writeJson)(tree, '/babel.config.json', {
|
|
13
|
+
babelrcRoots: ['*'], // Make sure .babelrc files other than root can be loaded in a monorepo
|
|
14
|
+
});
|
|
15
|
+
globalBabelFile = 'babel.config.json';
|
|
16
|
+
}
|
|
17
|
+
if ((_a = workspaceConfiguration.namedInputs) === null || _a === void 0 ? void 0 : _a.sharedGlobals) {
|
|
18
|
+
const sharedGlobalFileset = new Set(workspaceConfiguration.namedInputs.sharedGlobals);
|
|
19
|
+
sharedGlobalFileset.add((0, devkit_1.joinPathFragments)('{workspaceRoot}', globalBabelFile));
|
|
20
|
+
workspaceConfiguration.namedInputs.sharedGlobals =
|
|
21
|
+
Array.from(sharedGlobalFileset);
|
|
22
|
+
}
|
|
23
|
+
(0, devkit_1.updateWorkspaceConfiguration)(tree, workspaceConfiguration);
|
|
24
|
+
yield (0, devkit_1.formatFiles)(tree);
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
exports.addBabelInputs = addBabelInputs;
|
|
28
|
+
//# sourceMappingURL=add-babel-inputs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"add-babel-inputs.js","sourceRoot":"","sources":["../../../../../packages/js/src/utils/add-babel-inputs.ts"],"names":[],"mappings":";;;;AAAA,yCAOsB;AAEtB,SAAsB,cAAc,CAAC,IAAU;;;QAC7C,MAAM,sBAAsB,GAAG,IAAA,mCAA0B,EAAC,IAAI,CAAC,CAAC;QAChE,IAAI,eAAe,GAAG,CAAC,iBAAiB,EAAE,mBAAmB,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAC3E,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAClB,CAAC;QAEF,IAAI,CAAC,eAAe,EAAE;YACpB,IAAA,kBAAS,EAAC,IAAI,EAAE,oBAAoB,EAAE;gBACpC,YAAY,EAAE,CAAC,GAAG,CAAC,EAAE,uEAAuE;aAC7F,CAAC,CAAC;YACH,eAAe,GAAG,mBAAmB,CAAC;SACvC;QAED,IAAI,MAAA,sBAAsB,CAAC,WAAW,0CAAE,aAAa,EAAE;YACrD,MAAM,mBAAmB,GAAG,IAAI,GAAG,CACjC,sBAAsB,CAAC,WAAW,CAAC,aAAa,CACjD,CAAC;YACF,mBAAmB,CAAC,GAAG,CACrB,IAAA,0BAAiB,EAAC,iBAAiB,EAAE,eAAe,CAAC,CACtD,CAAC;YACF,sBAAsB,CAAC,WAAW,CAAC,aAAa;gBAC9C,KAAK,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC;SACnC;QAED,IAAA,qCAA4B,EAAC,IAAI,EAAE,sBAAsB,CAAC,CAAC;QAE3D,MAAM,IAAA,oBAAW,EAAC,IAAI,CAAC,CAAC;;CACzB;AA3BD,wCA2BC"}
|