@microsoft/sp-build-web 1.20.2 → 1.21.0-beta.0
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/lib/SPBuildRig.d.ts.map +1 -1
- package/lib/SPBuildRig.js +12 -4
- package/package.json +6 -7
package/lib/SPBuildRig.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SPBuildRig.d.ts","sourceRoot":"","sources":["../src/SPBuildRig.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SPBuildRig.d.ts","sourceRoot":"","sources":["../src/SPBuildRig.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,IAAI,MAAM,MAAM,CAAC;AAClC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,SAAS,MAAM,4BAA4B,CAAC;AAMxD,eAAO,MAAM,OAAO,EAAE,SAAS,CAAC,QAAmC,CAAC;AACpE,eAAO,MAAM,QAAQ,EAAE,SAAS,CAAC,QAAmC,CAAC;AAErE;;GAEG;AACH,MAAM,WAAW,eAAe;IAE9B,UAAU,EAAE,OAAO,CAAC;IACpB,IAAI,EAAE,OAAO,CAAC;IAEd,KAAK,EAAE,OAAO,CAAC;IACf,OAAO,EAAE,OAAO,CAAC;IACjB,iBAAiB,EAAE,OAAO,CAAC;IAE3B;;;OAGG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;;;OAIG;IACH,IAAI,EAAE,OAAO,CAAC;CACf;AAED;;;;GAIG;AACH,MAAM,WAAW,eAAe;IAC9B,UAAU,EAAE,SAAS,CAAC,WAAW,CAAC;IAClC,SAAS,CAAC,EAAE,CAAC,IAAI,EAAE,KAAK,CAAC,IAAI,KAAK,IAAI,CAAC;CACxC;AAED;;;GAGG;AACH,qBAAa,UAAU;IACrB,SAAS,CAAC,cAAc,EAAE,SAAS,CAAC,WAAW,EAAE,CAAM;IACvD,SAAS,CAAC,oBAAoB,E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,SAAS,CAAC,gBAAgB,IAAI,SAAS,CAAC,WAAW;IAOnD;;OAEG;IACH,SAAS,CAAC,iBAAiB,IAAI,IAAI;IAOnC;;;;;OAKG;IACH,SAAS,CAAC,oBAAoB,IAAI,IAAI;IAMtC,SAAS,CAAC,oBAAoB,CAC5B,KAAK,EAAE,SAAS,CAAC,WAAW,GAAG,SAAS,CAAC,WAAW,EAAE,EACtD,KAAK,EAAE,SAAS,CAAC,WAAW,EAAE,GAC7B,IAAI;IAQP,SAAS,CAAC,aAAa,CAAC,GAAG,KAAK,EAAE,SAAS,CAAC,WAAW,EAAE,GAAG,IAAI;CAMjE"}
|
package/lib/SPBuildRig.js
CHANGED
|
@@ -24,9 +24,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.SPBuildRig = exports.postCopy = exports.preCopy = void 0;
|
|
27
|
+
const fs = __importStar(require("fs"));
|
|
27
28
|
const yargs = __importStar(require("yargs"));
|
|
28
29
|
const semver = __importStar(require("semver"));
|
|
29
|
-
const true_case_path_1 = require("true-case-path");
|
|
30
30
|
const coreBuild = __importStar(require("@microsoft/gulp-core-build"));
|
|
31
31
|
const gulp_core_build_typescript_1 = require("@microsoft/gulp-core-build-typescript");
|
|
32
32
|
const BuildRigConstants_1 = require("./BuildRigConstants");
|
|
@@ -47,9 +47,17 @@ class SPBuildRig {
|
|
|
47
47
|
}
|
|
48
48
|
initialize(gulp) {
|
|
49
49
|
if (!semver.satisfies(process.version, this.nodeSupportedVersionRange)) {
|
|
50
|
-
|
|
50
|
+
const nodeVersionMessage = `Your dev environment is running NodeJS version ${process.version} which does` +
|
|
51
51
|
' not meet the requirements for running this tool. This tool requires a version of NodeJS' +
|
|
52
|
-
` that matches ${this.nodeSupportedVersionRange}
|
|
52
|
+
` that matches "${this.nodeSupportedVersionRange}".`;
|
|
53
|
+
if (process.env.SPFX_OVERRIDE_NODE_VERSION_CHECK === 'true') {
|
|
54
|
+
// This environment variable is when testing new versions of NodeJS for compatibility.
|
|
55
|
+
// eslint-disable-next-line no-console
|
|
56
|
+
console.warn(nodeVersionMessage + ' Proceeding with execution due to override.');
|
|
57
|
+
}
|
|
58
|
+
else {
|
|
59
|
+
throw new Error(nodeVersionMessage);
|
|
60
|
+
}
|
|
53
61
|
}
|
|
54
62
|
// Initialize yargs & figure out which command we are running
|
|
55
63
|
const yargsArgs = this.getYargs();
|
|
@@ -90,7 +98,7 @@ class SPBuildRig {
|
|
|
90
98
|
// Try to ensure the casing of the rootPath is correct
|
|
91
99
|
try {
|
|
92
100
|
const originalRootPath = coreBuild.getConfig().rootPath;
|
|
93
|
-
const normalizedRootPath =
|
|
101
|
+
const normalizedRootPath = fs.realpathSync.native(originalRootPath);
|
|
94
102
|
if (normalizedRootPath !== originalRootPath) {
|
|
95
103
|
coreBuild.mergeConfig({
|
|
96
104
|
rootPath: normalizedRootPath
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@microsoft/sp-build-web",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.21.0-beta.0",
|
|
4
4
|
"description": "SharePoint Framework build rig for web projects",
|
|
5
5
|
"license": "https://aka.ms/spfx/license",
|
|
6
6
|
"homepage": "http://aka.ms/spfx",
|
|
@@ -17,13 +17,12 @@
|
|
|
17
17
|
"@microsoft/gulp-core-build-webpack": "6.0.3",
|
|
18
18
|
"gulp": "4.0.2",
|
|
19
19
|
"semver": "~7.3.2",
|
|
20
|
-
"
|
|
21
|
-
"webpack": "~5.88.1",
|
|
20
|
+
"webpack": "~5.95.0",
|
|
22
21
|
"yargs": "~4.6.0",
|
|
23
|
-
"@microsoft/sp-build-core-tasks": "1.
|
|
22
|
+
"@microsoft/sp-build-core-tasks": "1.21.0-beta.0"
|
|
24
23
|
},
|
|
25
24
|
"devDependencies": {
|
|
26
|
-
"@rushstack/heft": "0.
|
|
25
|
+
"@rushstack/heft": "0.68.13",
|
|
27
26
|
"@types/semver": "7.3.8",
|
|
28
27
|
"eslint": "8.57.1",
|
|
29
28
|
"@odsp-web-tools/internal-node-rig": "0.1.0"
|
|
@@ -32,8 +31,8 @@
|
|
|
32
31
|
"build": "heft test --clean",
|
|
33
32
|
"clean": "heft clean",
|
|
34
33
|
"start": "heft build-watch",
|
|
34
|
+
"_phase:depscan": "heft depscan",
|
|
35
35
|
"_phase:tool-build": "heft run --only build -- --clean",
|
|
36
|
-
"_phase:build
|
|
37
|
-
"_phase:depscan": "heft depscan"
|
|
36
|
+
"_phase:tool-build:incremental": "heft run --only build --"
|
|
38
37
|
}
|
|
39
38
|
}
|