@pnp/cli-microsoft365 11.3.0-beta.c16a3a7 → 11.3.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/allCommandsFull.json +1 -1
- package/dist/m365/spfx/commands/project/project-doctor/{doctor-1.22.0-rc.0.js → doctor-1.22.0.js} +1 -1
- package/dist/m365/spfx/commands/project/project-doctor/doctor-1.22.1.js +21 -0
- package/dist/m365/spfx/commands/project/project-doctor.js +2 -1
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN014003_CODE_launch.js +7 -44
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN021005_PKG_scripts_test.js +18 -9
- package/dist/m365/spfx/commands/project/project-upgrade/rules/{FN021008_PKG_scripts_start.js → FN021007_PKG_scripts_start.js} +3 -3
- package/dist/m365/spfx/commands/project/project-upgrade/rules/{FN021012_PKG_scripts_eject_webpack.js → FN021008_PKG_scripts_eject_webpack.js} +3 -3
- package/dist/m365/spfx/commands/project/project-upgrade/rules/{FN021013_PKG_overrides_rushstack_heft.js → FN021009_PKG_overrides_rushstack_heft.js} +3 -3
- package/dist/m365/spfx/commands/project/project-upgrade/{upgrade-1.22.0-rc.0.js → upgrade-1.22.0.js} +60 -50
- package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.22.1.js +55 -0
- package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.3.4.js +42 -1
- package/dist/m365/spfx/commands/project/project-upgrade.js +12 -11
- package/dist/m365/spfx/commands/spfx-doctor.js +41 -1
- package/dist/utils/stringUtil.js +4 -0
- package/package.json +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN021007_PKG_scripts_deploy.js +0 -45
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN021009_PKG_scripts_build_watch.js +0 -45
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN021010_PKG_scripts_package_solution.js +0 -45
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN021011_PKG_scripts_deploy_azure_storage.js +0 -45
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN021014_PKG_scripts_test_only.js +0 -45
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN021015_PKG_scripts_trust_dev_cert.js +0 -45
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN021016_PKG_scripts_untrust_dev_cert.js +0 -45
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { FN002021_DEVDEP_rushstack_eslint_config } from '../project-upgrade/rules/FN002021_DEVDEP_rushstack_eslint_config.js';
|
|
2
|
+
import { FN001008_DEP_react } from './rules/FN001008_DEP_react.js';
|
|
3
|
+
import { FN001009_DEP_react_dom } from './rules/FN001009_DEP_react_dom.js';
|
|
4
|
+
import { FN001035_DEP_fluentui_react } from './rules/FN001035_DEP_fluentui_react.js';
|
|
5
|
+
import { FN002013_DEVDEP_types_webpack_env } from './rules/FN002013_DEVDEP_types_webpack_env.js';
|
|
6
|
+
import { FN002015_DEVDEP_types_react } from './rules/FN002015_DEVDEP_types_react.js';
|
|
7
|
+
import { FN002016_DEVDEP_types_react_dom } from './rules/FN002016_DEVDEP_types_react_dom.js';
|
|
8
|
+
import { FN002022_DEVDEP_typescript } from './rules/FN002022_DEVDEP_typescript.js';
|
|
9
|
+
import { FN021001_PKG_spfx_deps_versions_match_project_version } from './rules/FN021001_PKG_spfx_deps_versions_match_project_version.js';
|
|
10
|
+
export default [
|
|
11
|
+
new FN001008_DEP_react('17'),
|
|
12
|
+
new FN001009_DEP_react_dom('17'),
|
|
13
|
+
new FN001035_DEP_fluentui_react('^8.106.4'),
|
|
14
|
+
new FN002013_DEVDEP_types_webpack_env('~1.15.2'),
|
|
15
|
+
new FN002015_DEVDEP_types_react('17'),
|
|
16
|
+
new FN002016_DEVDEP_types_react_dom('17'),
|
|
17
|
+
new FN002021_DEVDEP_rushstack_eslint_config('4.5.2'),
|
|
18
|
+
new FN002022_DEVDEP_typescript('~5.8.0'),
|
|
19
|
+
new FN021001_PKG_spfx_deps_versions_match_project_version(true)
|
|
20
|
+
];
|
|
21
|
+
//# sourceMappingURL=doctor-1.22.1.js.map
|
|
@@ -74,7 +74,8 @@ class SpfxProjectDoctorCommand extends BaseProjectCommand {
|
|
|
74
74
|
'1.20.0',
|
|
75
75
|
'1.21.0',
|
|
76
76
|
'1.21.1',
|
|
77
|
-
'1.22.0
|
|
77
|
+
'1.22.0',
|
|
78
|
+
'1.22.1'
|
|
78
79
|
];
|
|
79
80
|
__classPrivateFieldGet(this, _SpfxProjectDoctorCommand_instances, "m", _SpfxProjectDoctorCommand_initTelemetry).call(this);
|
|
80
81
|
__classPrivateFieldGet(this, _SpfxProjectDoctorCommand_instances, "m", _SpfxProjectDoctorCommand_initOptions).call(this);
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { Rule } from '../../Rule.js';
|
|
2
|
+
import { stringUtil } from '../../../../../../utils/stringUtil.js';
|
|
2
3
|
export class FN014003_CODE_launch extends Rule {
|
|
3
|
-
constructor() {
|
|
4
|
+
constructor(contents) {
|
|
4
5
|
super();
|
|
6
|
+
this.contents = contents;
|
|
5
7
|
}
|
|
6
8
|
get id() {
|
|
7
9
|
return 'FN014003';
|
|
@@ -13,48 +15,7 @@ export class FN014003_CODE_launch extends Rule {
|
|
|
13
15
|
return `In the .vscode folder, add the launch.json file`;
|
|
14
16
|
}
|
|
15
17
|
get resolution() {
|
|
16
|
-
return
|
|
17
|
-
/**
|
|
18
|
-
Install Chrome Debugger Extension for Visual Studio Code
|
|
19
|
-
to debug your components with the Chrome browser:
|
|
20
|
-
https://aka.ms/spfx-debugger-extensions
|
|
21
|
-
*/
|
|
22
|
-
"version": "0.2.0",
|
|
23
|
-
"configurations": [{
|
|
24
|
-
"name": "Local workbench",
|
|
25
|
-
"type": "chrome",
|
|
26
|
-
"request": "launch",
|
|
27
|
-
"url": "https://localhost:4321/temp/workbench.html",
|
|
28
|
-
"webRoot": "\${workspaceRoot}",
|
|
29
|
-
"sourceMaps": true,
|
|
30
|
-
"sourceMapPathOverrides": {
|
|
31
|
-
"webpack:///../../../src/*": "\${webRoot}/src/*",
|
|
32
|
-
"webpack:///../../../../src/*": "\${webRoot}/src/*",
|
|
33
|
-
"webpack:///../../../../../src/*": "\${webRoot}/src/*"
|
|
34
|
-
},
|
|
35
|
-
"runtimeArgs": [
|
|
36
|
-
"--remote-debugging-port=9222"
|
|
37
|
-
]
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
"name": "Hosted workbench",
|
|
41
|
-
"type": "chrome",
|
|
42
|
-
"request": "launch",
|
|
43
|
-
"url": "https://enter-your-SharePoint-site/_layouts/workbench.aspx",
|
|
44
|
-
"webRoot": "\${workspaceRoot}",
|
|
45
|
-
"sourceMaps": true,
|
|
46
|
-
"sourceMapPathOverrides": {
|
|
47
|
-
"webpack:///../../../src/*": "\${webRoot}/src/*",
|
|
48
|
-
"webpack:///../../../../src/*": "\${webRoot}/src/*",
|
|
49
|
-
"webpack:///../../../../../src/*": "\${webRoot}/src/*"
|
|
50
|
-
},
|
|
51
|
-
"runtimeArgs": [
|
|
52
|
-
"--remote-debugging-port=9222",
|
|
53
|
-
"-incognito"
|
|
54
|
-
]
|
|
55
|
-
}
|
|
56
|
-
]
|
|
57
|
-
}`;
|
|
18
|
+
return this.contents;
|
|
58
19
|
}
|
|
59
20
|
get resolutionType() {
|
|
60
21
|
return 'json';
|
|
@@ -66,7 +27,9 @@ export class FN014003_CODE_launch extends Rule {
|
|
|
66
27
|
return '.vscode/launch.json';
|
|
67
28
|
}
|
|
68
29
|
visit(project, findings) {
|
|
69
|
-
if (!project.vsCode ||
|
|
30
|
+
if (!project.vsCode ||
|
|
31
|
+
!project.vsCode.launchJson ||
|
|
32
|
+
stringUtil.normalizeLineEndings(project.vsCode.launchJson.source) !== stringUtil.normalizeLineEndings(this.contents)) {
|
|
70
33
|
this.addFinding(findings);
|
|
71
34
|
}
|
|
72
35
|
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { JsonRule } from "../../JsonRule.js";
|
|
2
2
|
export class FN021005_PKG_scripts_test extends JsonRule {
|
|
3
|
-
constructor(script) {
|
|
3
|
+
constructor(script, add = true) {
|
|
4
4
|
super();
|
|
5
5
|
this.script = script;
|
|
6
|
+
this.add = add;
|
|
6
7
|
}
|
|
7
8
|
get id() {
|
|
8
9
|
return 'FN021005';
|
|
@@ -11,12 +12,12 @@ export class FN021005_PKG_scripts_test extends JsonRule {
|
|
|
11
12
|
return 'package.json scripts.test';
|
|
12
13
|
}
|
|
13
14
|
get description() {
|
|
14
|
-
return 'Update package.json scripts.test property
|
|
15
|
+
return `${this.add ? 'Update' : 'Remove'} package.json scripts.test property`;
|
|
15
16
|
}
|
|
16
17
|
get resolution() {
|
|
17
18
|
return `{
|
|
18
19
|
"scripts": {
|
|
19
|
-
"test": "${this.script}"
|
|
20
|
+
"test": ${this.add ? `"${this.script}"` : '""'}
|
|
20
21
|
}
|
|
21
22
|
}`;
|
|
22
23
|
}
|
|
@@ -33,12 +34,20 @@ export class FN021005_PKG_scripts_test extends JsonRule {
|
|
|
33
34
|
if (!project.packageJson) {
|
|
34
35
|
return;
|
|
35
36
|
}
|
|
36
|
-
if (
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
37
|
+
if (this.add) {
|
|
38
|
+
if (!project.packageJson.scripts ||
|
|
39
|
+
typeof project.packageJson.scripts !== 'object' ||
|
|
40
|
+
!project.packageJson.scripts.test ||
|
|
41
|
+
project.packageJson.scripts.test !== this.script) {
|
|
42
|
+
const node = this.getAstNodeFromFile(project.packageJson, 'scripts.test');
|
|
43
|
+
this.addFindingWithPosition(findings, node);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
else {
|
|
47
|
+
if (project.packageJson.scripts?.test === this.script) {
|
|
48
|
+
const node = this.getAstNodeFromFile(project.packageJson, 'scripts.test');
|
|
49
|
+
this.addFindingWithPosition(findings, node);
|
|
50
|
+
}
|
|
42
51
|
}
|
|
43
52
|
}
|
|
44
53
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { JsonRule } from "../../JsonRule.js";
|
|
2
|
-
export class
|
|
2
|
+
export class FN021007_PKG_scripts_start extends JsonRule {
|
|
3
3
|
constructor(script) {
|
|
4
4
|
super();
|
|
5
5
|
this.script = script;
|
|
6
6
|
}
|
|
7
7
|
get id() {
|
|
8
|
-
return '
|
|
8
|
+
return 'FN021007';
|
|
9
9
|
}
|
|
10
10
|
get title() {
|
|
11
11
|
return 'package.json scripts.start';
|
|
@@ -42,4 +42,4 @@ export class FN021008_PKG_scripts_start extends JsonRule {
|
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
|
-
//# sourceMappingURL=
|
|
45
|
+
//# sourceMappingURL=FN021007_PKG_scripts_start.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { JsonRule } from "../../JsonRule.js";
|
|
2
|
-
export class
|
|
2
|
+
export class FN021008_PKG_scripts_eject_webpack extends JsonRule {
|
|
3
3
|
constructor(script) {
|
|
4
4
|
super();
|
|
5
5
|
this.script = script;
|
|
6
6
|
}
|
|
7
7
|
get id() {
|
|
8
|
-
return '
|
|
8
|
+
return 'FN021008';
|
|
9
9
|
}
|
|
10
10
|
get title() {
|
|
11
11
|
return 'package.json scripts.eject-webpack';
|
|
@@ -42,4 +42,4 @@ export class FN021012_PKG_scripts_eject_webpack extends JsonRule {
|
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
|
-
//# sourceMappingURL=
|
|
45
|
+
//# sourceMappingURL=FN021008_PKG_scripts_eject_webpack.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { JsonRule } from "../../JsonRule.js";
|
|
2
|
-
export class
|
|
2
|
+
export class FN021009_PKG_overrides_rushstack_heft extends JsonRule {
|
|
3
3
|
constructor(version) {
|
|
4
4
|
super();
|
|
5
5
|
this.version = version;
|
|
6
6
|
}
|
|
7
7
|
get id() {
|
|
8
|
-
return '
|
|
8
|
+
return 'FN021009';
|
|
9
9
|
}
|
|
10
10
|
get title() {
|
|
11
11
|
return 'package.json overrides.@rushstack/heft';
|
|
@@ -42,4 +42,4 @@ export class FN021013_PKG_overrides_rushstack_heft extends JsonRule {
|
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
|
-
//# sourceMappingURL=
|
|
45
|
+
//# sourceMappingURL=FN021009_PKG_overrides_rushstack_heft.js.map
|
package/dist/m365/spfx/commands/project/project-upgrade/{upgrade-1.22.0-rc.0.js → upgrade-1.22.0.js}
RENAMED
|
@@ -35,6 +35,7 @@ import { FN002034_DEVDEP_microsoft_spfx_heft_plugins } from './rules/FN002034_DE
|
|
|
35
35
|
import { FN002035_DEVDEP_types_heft_jest } from './rules/FN002035_DEVDEP_types_heft_jest.js';
|
|
36
36
|
import { FN010001_YORC_version } from './rules/FN010001_YORC_version.js';
|
|
37
37
|
import { FN010011_YORC_useGulp } from './rules/FN010011_YORC_useGulp.js';
|
|
38
|
+
import { FN014003_CODE_launch } from './rules/FN014003_CODE_launch.js';
|
|
38
39
|
import { FN015005_FILE_src_index_ts } from './rules/FN015005_FILE_src_index_ts.js';
|
|
39
40
|
import { FN015010_FILE_gulpfile_js } from './rules/FN015010_FILE_gulpfile_js.js';
|
|
40
41
|
import { FN015011_FILE_tsconfig_json } from './rules/FN015011_FILE_tsconfig_json.js';
|
|
@@ -45,16 +46,9 @@ import { FN021001_PKG_main } from './rules/FN021001_PKG_main.js';
|
|
|
45
46
|
import { FN021004_PKG_scripts_build } from './rules/FN021004_PKG_scripts_build.js';
|
|
46
47
|
import { FN021005_PKG_scripts_test } from './rules/FN021005_PKG_scripts_test.js';
|
|
47
48
|
import { FN021006_PKG_scripts_clean } from './rules/FN021006_PKG_scripts_clean.js';
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import { FN021010_PKG_scripts_package_solution } from './rules/FN021010_PKG_scripts_package_solution.js';
|
|
52
|
-
import { FN021011_PKG_scripts_deploy_azure_storage } from './rules/FN021011_PKG_scripts_deploy_azure_storage.js';
|
|
53
|
-
import { FN021012_PKG_scripts_eject_webpack } from './rules/FN021012_PKG_scripts_eject_webpack.js';
|
|
54
|
-
import { FN021013_PKG_overrides_rushstack_heft } from './rules/FN021013_PKG_overrides_rushstack_heft.js';
|
|
55
|
-
import { FN021014_PKG_scripts_test_only } from './rules/FN021014_PKG_scripts_test_only.js';
|
|
56
|
-
import { FN021015_PKG_scripts_trust_dev_cert } from './rules/FN021015_PKG_scripts_trust_dev_cert.js';
|
|
57
|
-
import { FN021016_PKG_scripts_untrust_dev_cert } from './rules/FN021016_PKG_scripts_untrust_dev_cert.js';
|
|
49
|
+
import { FN021007_PKG_scripts_start } from './rules/FN021007_PKG_scripts_start.js';
|
|
50
|
+
import { FN021008_PKG_scripts_eject_webpack } from './rules/FN021008_PKG_scripts_eject_webpack.js';
|
|
51
|
+
import { FN021009_PKG_overrides_rushstack_heft } from './rules/FN021009_PKG_overrides_rushstack_heft.js';
|
|
58
52
|
import { FN023003_GITIGNORE_libdts } from './rules/FN023003_GITIGNORE_libdts.js';
|
|
59
53
|
import { FN023004_GITIGNORE_libcommonjs } from './rules/FN023004_GITIGNORE_libcommonjs.js';
|
|
60
54
|
import { FN023005_GITIGNORE_libesm } from './rules/FN023005_GITIGNORE_libesm.js';
|
|
@@ -66,43 +60,66 @@ import { FN025005_ESLINTRCJS_microsoft_spfx_pair_react_dom_render_unmount } from
|
|
|
66
60
|
import { FN026001_CFG_SASS_schema } from './rules/FN026001_CFG_SASS_schema.js';
|
|
67
61
|
import { FN026002_CFG_SASS_extends } from './rules/FN026002_CFG_SASS_extends.js';
|
|
68
62
|
export default [
|
|
69
|
-
new FN001001_DEP_microsoft_sp_core_library('1.22.0
|
|
70
|
-
new FN001002_DEP_microsoft_sp_lodash_subset('1.22.0
|
|
71
|
-
new FN001003_DEP_microsoft_sp_office_ui_fabric_core('1.22.0
|
|
72
|
-
new FN001004_DEP_microsoft_sp_webpart_base('1.22.0
|
|
73
|
-
new FN001011_DEP_microsoft_sp_dialog('1.22.0
|
|
74
|
-
new FN001012_DEP_microsoft_sp_application_base('1.22.0
|
|
75
|
-
new FN001014_DEP_microsoft_sp_listview_extensibility('1.22.0
|
|
76
|
-
new FN001021_DEP_microsoft_sp_property_pane('1.22.0
|
|
77
|
-
new FN001023_DEP_microsoft_sp_component_base('1.22.0
|
|
78
|
-
new FN001024_DEP_microsoft_sp_diagnostics('1.22.0
|
|
79
|
-
new FN001025_DEP_microsoft_sp_dynamic_data('1.22.0
|
|
80
|
-
new FN001026_DEP_microsoft_sp_extension_base('1.22.0
|
|
81
|
-
new FN001027_DEP_microsoft_sp_http('1.22.0
|
|
82
|
-
new FN001028_DEP_microsoft_sp_list_subscription('1.22.0
|
|
83
|
-
new FN001029_DEP_microsoft_sp_loader('1.22.0
|
|
84
|
-
new FN001030_DEP_microsoft_sp_module_interfaces('1.22.0
|
|
85
|
-
new FN001031_DEP_microsoft_sp_odata_types('1.22.0
|
|
86
|
-
new FN001032_DEP_microsoft_sp_page_context('1.22.0
|
|
87
|
-
new FN001013_DEP_microsoft_decorators('1.22.0
|
|
88
|
-
new FN001034_DEP_microsoft_sp_adaptive_card_extension_base('1.22.0
|
|
89
|
-
new FN002001_DEVDEP_microsoft_sp_build_web('1.22.0
|
|
90
|
-
new FN002002_DEVDEP_microsoft_sp_module_interfaces('1.22.0
|
|
63
|
+
new FN001001_DEP_microsoft_sp_core_library('1.22.0'),
|
|
64
|
+
new FN001002_DEP_microsoft_sp_lodash_subset('1.22.0'),
|
|
65
|
+
new FN001003_DEP_microsoft_sp_office_ui_fabric_core('1.22.0'),
|
|
66
|
+
new FN001004_DEP_microsoft_sp_webpart_base('1.22.0'),
|
|
67
|
+
new FN001011_DEP_microsoft_sp_dialog('1.22.0'),
|
|
68
|
+
new FN001012_DEP_microsoft_sp_application_base('1.22.0'),
|
|
69
|
+
new FN001014_DEP_microsoft_sp_listview_extensibility('1.22.0'),
|
|
70
|
+
new FN001021_DEP_microsoft_sp_property_pane('1.22.0'),
|
|
71
|
+
new FN001023_DEP_microsoft_sp_component_base('1.22.0'),
|
|
72
|
+
new FN001024_DEP_microsoft_sp_diagnostics('1.22.0'),
|
|
73
|
+
new FN001025_DEP_microsoft_sp_dynamic_data('1.22.0'),
|
|
74
|
+
new FN001026_DEP_microsoft_sp_extension_base('1.22.0'),
|
|
75
|
+
new FN001027_DEP_microsoft_sp_http('1.22.0'),
|
|
76
|
+
new FN001028_DEP_microsoft_sp_list_subscription('1.22.0'),
|
|
77
|
+
new FN001029_DEP_microsoft_sp_loader('1.22.0'),
|
|
78
|
+
new FN001030_DEP_microsoft_sp_module_interfaces('1.22.0'),
|
|
79
|
+
new FN001031_DEP_microsoft_sp_odata_types('1.22.0'),
|
|
80
|
+
new FN001032_DEP_microsoft_sp_page_context('1.22.0'),
|
|
81
|
+
new FN001013_DEP_microsoft_decorators('1.22.0'),
|
|
82
|
+
new FN001034_DEP_microsoft_sp_adaptive_card_extension_base('1.22.0'),
|
|
83
|
+
new FN002001_DEVDEP_microsoft_sp_build_web('1.22.0', false),
|
|
84
|
+
new FN002002_DEVDEP_microsoft_sp_module_interfaces('1.22.0'),
|
|
91
85
|
new FN002004_DEVDEP_gulp('4.0.2', false),
|
|
92
86
|
new FN002007_DEVDEP_ajv('6.12.6', false),
|
|
93
87
|
new FN002021_DEVDEP_rushstack_eslint_config('4.5.2'),
|
|
94
|
-
new FN002022_DEVDEP_microsoft_eslint_plugin_spfx('1.22.0
|
|
95
|
-
new FN002023_DEVDEP_microsoft_eslint_config_spfx('1.22.0
|
|
88
|
+
new FN002022_DEVDEP_microsoft_eslint_plugin_spfx('1.22.0'),
|
|
89
|
+
new FN002023_DEVDEP_microsoft_eslint_config_spfx('1.22.0'),
|
|
96
90
|
new FN002026_DEVDEP_typescript('~5.8.0'),
|
|
97
91
|
new FN002029_DEVDEP_microsoft_rush_stack_compiler_5_3('0.1.0', false),
|
|
98
|
-
new FN002030_DEVDEP_microsoft_spfx_web_build_rig('1.22.0
|
|
92
|
+
new FN002030_DEVDEP_microsoft_spfx_web_build_rig('1.22.0'),
|
|
99
93
|
new FN002031_DEVDEP_rushstack_heft('1.1.2'),
|
|
100
94
|
new FN002032_DEVDEP_typescript_eslint_parser('8.46.2'),
|
|
101
95
|
new FN002033_DEVDEP_css_loader('7.1.2'),
|
|
102
|
-
new FN002034_DEVDEP_microsoft_spfx_heft_plugins('1.22.0
|
|
96
|
+
new FN002034_DEVDEP_microsoft_spfx_heft_plugins('1.22.0'),
|
|
103
97
|
new FN002035_DEVDEP_types_heft_jest('1.0.2'),
|
|
104
|
-
new FN010001_YORC_version('1.22.0
|
|
98
|
+
new FN010001_YORC_version('1.22.0'),
|
|
105
99
|
new FN010011_YORC_useGulp(false),
|
|
100
|
+
new FN014003_CODE_launch(`{
|
|
101
|
+
"version": "0.2.0",
|
|
102
|
+
"configurations": [
|
|
103
|
+
{
|
|
104
|
+
"name": "Hosted workbench",
|
|
105
|
+
"type": "msedge",
|
|
106
|
+
"request": "launch",
|
|
107
|
+
"url": "https://{tenantDomain}/_layouts/workbench.aspx",
|
|
108
|
+
"webRoot": "$\{workspaceRoot}",
|
|
109
|
+
"sourceMaps": true,
|
|
110
|
+
"sourceMapPathOverrides": {
|
|
111
|
+
"webpack:///.././src/*": "$\{webRoot}/src/*",
|
|
112
|
+
"webpack:///../../../src/*": "$\{webRoot}/src/*",
|
|
113
|
+
"webpack:///../../../../src/*": "$\{webRoot}/src/*",
|
|
114
|
+
"webpack:///../../../../../src/*": "$\{webRoot}/src/*"
|
|
115
|
+
},
|
|
116
|
+
"runtimeArgs": [
|
|
117
|
+
"--remote-debugging-port=9222",
|
|
118
|
+
"-incognito"
|
|
119
|
+
]
|
|
120
|
+
}
|
|
121
|
+
]
|
|
122
|
+
}`),
|
|
106
123
|
new FN015005_FILE_src_index_ts(false),
|
|
107
124
|
new FN015010_FILE_gulpfile_js(false),
|
|
108
125
|
new FN015011_FILE_tsconfig_json(true, `{
|
|
@@ -129,19 +146,12 @@ export default [
|
|
|
129
146
|
`),
|
|
130
147
|
new FN020001_RES_types_react('17.0.45'),
|
|
131
148
|
new FN021001_PKG_main(false),
|
|
132
|
-
new FN021004_PKG_scripts_build('heft
|
|
133
|
-
new FN021005_PKG_scripts_test('
|
|
149
|
+
new FN021004_PKG_scripts_build('heft test --clean --production && heft package-solution --production'),
|
|
150
|
+
new FN021005_PKG_scripts_test('gulp test', false),
|
|
134
151
|
new FN021006_PKG_scripts_clean('heft clean'),
|
|
135
|
-
new
|
|
136
|
-
new
|
|
137
|
-
new
|
|
138
|
-
new FN021010_PKG_scripts_package_solution('heft package-solution'),
|
|
139
|
-
new FN021011_PKG_scripts_deploy_azure_storage('heft deploy-azure-storage'),
|
|
140
|
-
new FN021012_PKG_scripts_eject_webpack('heft eject-webpack'),
|
|
141
|
-
new FN021013_PKG_overrides_rushstack_heft('1.1.2'),
|
|
142
|
-
new FN021014_PKG_scripts_test_only('heft run --only test --'),
|
|
143
|
-
new FN021015_PKG_scripts_trust_dev_cert('heft trust-dev-cert'),
|
|
144
|
-
new FN021016_PKG_scripts_untrust_dev_cert('heft untrust-dev-cert'),
|
|
152
|
+
new FN021007_PKG_scripts_start('heft start --clean'),
|
|
153
|
+
new FN021008_PKG_scripts_eject_webpack('heft eject-webpack'),
|
|
154
|
+
new FN021009_PKG_overrides_rushstack_heft('1.1.2'),
|
|
145
155
|
new FN023003_GITIGNORE_libdts(),
|
|
146
156
|
new FN023004_GITIGNORE_libcommonjs(),
|
|
147
157
|
new FN023005_GITIGNORE_libesm(),
|
|
@@ -153,4 +163,4 @@ export default [
|
|
|
153
163
|
new FN026001_CFG_SASS_schema('https://developer.microsoft.com/json-schemas/heft/v0/heft-sass-plugin.schema.json'),
|
|
154
164
|
new FN026002_CFG_SASS_extends('@microsoft/spfx-web-build-rig/profiles/default/config/sass.json')
|
|
155
165
|
];
|
|
156
|
-
//# sourceMappingURL=upgrade-1.22.0
|
|
166
|
+
//# sourceMappingURL=upgrade-1.22.0.js.map
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { FN001001_DEP_microsoft_sp_core_library } from './rules/FN001001_DEP_microsoft_sp_core_library.js';
|
|
2
|
+
import { FN001002_DEP_microsoft_sp_lodash_subset } from './rules/FN001002_DEP_microsoft_sp_lodash_subset.js';
|
|
3
|
+
import { FN001003_DEP_microsoft_sp_office_ui_fabric_core } from './rules/FN001003_DEP_microsoft_sp_office_ui_fabric_core.js';
|
|
4
|
+
import { FN001004_DEP_microsoft_sp_webpart_base } from './rules/FN001004_DEP_microsoft_sp_webpart_base.js';
|
|
5
|
+
import { FN001011_DEP_microsoft_sp_dialog } from './rules/FN001011_DEP_microsoft_sp_dialog.js';
|
|
6
|
+
import { FN001012_DEP_microsoft_sp_application_base } from './rules/FN001012_DEP_microsoft_sp_application_base.js';
|
|
7
|
+
import { FN001013_DEP_microsoft_decorators } from './rules/FN001013_DEP_microsoft_decorators.js';
|
|
8
|
+
import { FN001014_DEP_microsoft_sp_listview_extensibility } from './rules/FN001014_DEP_microsoft_sp_listview_extensibility.js';
|
|
9
|
+
import { FN001021_DEP_microsoft_sp_property_pane } from './rules/FN001021_DEP_microsoft_sp_property_pane.js';
|
|
10
|
+
import { FN001023_DEP_microsoft_sp_component_base } from './rules/FN001023_DEP_microsoft_sp_component_base.js';
|
|
11
|
+
import { FN001024_DEP_microsoft_sp_diagnostics } from './rules/FN001024_DEP_microsoft_sp_diagnostics.js';
|
|
12
|
+
import { FN001025_DEP_microsoft_sp_dynamic_data } from './rules/FN001025_DEP_microsoft_sp_dynamic_data.js';
|
|
13
|
+
import { FN001026_DEP_microsoft_sp_extension_base } from './rules/FN001026_DEP_microsoft_sp_extension_base.js';
|
|
14
|
+
import { FN001027_DEP_microsoft_sp_http } from './rules/FN001027_DEP_microsoft_sp_http.js';
|
|
15
|
+
import { FN001028_DEP_microsoft_sp_list_subscription } from './rules/FN001028_DEP_microsoft_sp_list_subscription.js';
|
|
16
|
+
import { FN001029_DEP_microsoft_sp_loader } from './rules/FN001029_DEP_microsoft_sp_loader.js';
|
|
17
|
+
import { FN001030_DEP_microsoft_sp_module_interfaces } from './rules/FN001030_DEP_microsoft_sp_module_interfaces.js';
|
|
18
|
+
import { FN001031_DEP_microsoft_sp_odata_types } from './rules/FN001031_DEP_microsoft_sp_odata_types.js';
|
|
19
|
+
import { FN001032_DEP_microsoft_sp_page_context } from './rules/FN001032_DEP_microsoft_sp_page_context.js';
|
|
20
|
+
import { FN001034_DEP_microsoft_sp_adaptive_card_extension_base } from './rules/FN001034_DEP_microsoft_sp_adaptive_card_extension_base.js';
|
|
21
|
+
import { FN002002_DEVDEP_microsoft_sp_module_interfaces } from './rules/FN002002_DEVDEP_microsoft_sp_module_interfaces.js';
|
|
22
|
+
import { FN002022_DEVDEP_microsoft_eslint_plugin_spfx } from './rules/FN002022_DEVDEP_microsoft_eslint_plugin_spfx.js';
|
|
23
|
+
import { FN002023_DEVDEP_microsoft_eslint_config_spfx } from './rules/FN002023_DEVDEP_microsoft_eslint_config_spfx.js';
|
|
24
|
+
import { FN002030_DEVDEP_microsoft_spfx_web_build_rig } from './rules/FN002030_DEVDEP_microsoft_spfx_web_build_rig.js';
|
|
25
|
+
import { FN002034_DEVDEP_microsoft_spfx_heft_plugins } from './rules/FN002034_DEVDEP_microsoft_spfx_heft_plugins.js';
|
|
26
|
+
import { FN010001_YORC_version } from './rules/FN010001_YORC_version.js';
|
|
27
|
+
export default [
|
|
28
|
+
new FN001001_DEP_microsoft_sp_core_library('1.22.1'),
|
|
29
|
+
new FN001002_DEP_microsoft_sp_lodash_subset('1.22.1'),
|
|
30
|
+
new FN001003_DEP_microsoft_sp_office_ui_fabric_core('1.22.1'),
|
|
31
|
+
new FN001004_DEP_microsoft_sp_webpart_base('1.22.1'),
|
|
32
|
+
new FN001011_DEP_microsoft_sp_dialog('1.22.1'),
|
|
33
|
+
new FN001012_DEP_microsoft_sp_application_base('1.22.1'),
|
|
34
|
+
new FN001014_DEP_microsoft_sp_listview_extensibility('1.22.1'),
|
|
35
|
+
new FN001021_DEP_microsoft_sp_property_pane('1.22.1'),
|
|
36
|
+
new FN001023_DEP_microsoft_sp_component_base('1.22.1'),
|
|
37
|
+
new FN001024_DEP_microsoft_sp_diagnostics('1.22.1'),
|
|
38
|
+
new FN001025_DEP_microsoft_sp_dynamic_data('1.22.1'),
|
|
39
|
+
new FN001026_DEP_microsoft_sp_extension_base('1.22.1'),
|
|
40
|
+
new FN001027_DEP_microsoft_sp_http('1.22.1'),
|
|
41
|
+
new FN001028_DEP_microsoft_sp_list_subscription('1.22.1'),
|
|
42
|
+
new FN001029_DEP_microsoft_sp_loader('1.22.1'),
|
|
43
|
+
new FN001030_DEP_microsoft_sp_module_interfaces('1.22.1'),
|
|
44
|
+
new FN001031_DEP_microsoft_sp_odata_types('1.22.1'),
|
|
45
|
+
new FN001032_DEP_microsoft_sp_page_context('1.22.1'),
|
|
46
|
+
new FN001013_DEP_microsoft_decorators('1.22.1'),
|
|
47
|
+
new FN001034_DEP_microsoft_sp_adaptive_card_extension_base('1.22.1'),
|
|
48
|
+
new FN002002_DEVDEP_microsoft_sp_module_interfaces('1.22.1'),
|
|
49
|
+
new FN002022_DEVDEP_microsoft_eslint_plugin_spfx('1.22.1'),
|
|
50
|
+
new FN002023_DEVDEP_microsoft_eslint_config_spfx('1.22.1'),
|
|
51
|
+
new FN002030_DEVDEP_microsoft_spfx_web_build_rig('1.22.1'),
|
|
52
|
+
new FN002034_DEVDEP_microsoft_spfx_heft_plugins('1.22.1'),
|
|
53
|
+
new FN010001_YORC_version('1.22.1')
|
|
54
|
+
];
|
|
55
|
+
//# sourceMappingURL=upgrade-1.22.1.js.map
|
|
@@ -42,6 +42,47 @@ export default [
|
|
|
42
42
|
new FN002007_DEVDEP_ajv('5.2.2'),
|
|
43
43
|
new FN010001_YORC_version('1.3.4'),
|
|
44
44
|
new FN014002_CODE_extensions(),
|
|
45
|
-
new FN014003_CODE_launch(
|
|
45
|
+
new FN014003_CODE_launch(`{
|
|
46
|
+
/**
|
|
47
|
+
Install Chrome Debugger Extension for Visual Studio Code
|
|
48
|
+
to debug your components with the Chrome browser:
|
|
49
|
+
https://aka.ms/spfx-debugger-extensions
|
|
50
|
+
*/
|
|
51
|
+
"version": "0.2.0",
|
|
52
|
+
"configurations": [{
|
|
53
|
+
"name": "Local workbench",
|
|
54
|
+
"type": "chrome",
|
|
55
|
+
"request": "launch",
|
|
56
|
+
"url": "https://localhost:4321/temp/workbench.html",
|
|
57
|
+
"webRoot": "\${workspaceRoot}",
|
|
58
|
+
"sourceMaps": true,
|
|
59
|
+
"sourceMapPathOverrides": {
|
|
60
|
+
"webpack:///../../../src/*": "\${webRoot}/src/*",
|
|
61
|
+
"webpack:///../../../../src/*": "\${webRoot}/src/*",
|
|
62
|
+
"webpack:///../../../../../src/*": "\${webRoot}/src/*"
|
|
63
|
+
},
|
|
64
|
+
"runtimeArgs": [
|
|
65
|
+
"--remote-debugging-port=9222"
|
|
66
|
+
]
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"name": "Hosted workbench",
|
|
70
|
+
"type": "chrome",
|
|
71
|
+
"request": "launch",
|
|
72
|
+
"url": "https://enter-your-SharePoint-site/_layouts/workbench.aspx",
|
|
73
|
+
"webRoot": "\${workspaceRoot}",
|
|
74
|
+
"sourceMaps": true,
|
|
75
|
+
"sourceMapPathOverrides": {
|
|
76
|
+
"webpack:///../../../src/*": "\${webRoot}/src/*",
|
|
77
|
+
"webpack:///../../../../src/*": "\${webRoot}/src/*",
|
|
78
|
+
"webpack:///../../../../../src/*": "\${webRoot}/src/*"
|
|
79
|
+
},
|
|
80
|
+
"runtimeArgs": [
|
|
81
|
+
"--remote-debugging-port=9222",
|
|
82
|
+
"-incognito"
|
|
83
|
+
]
|
|
84
|
+
}
|
|
85
|
+
]
|
|
86
|
+
}`)
|
|
46
87
|
];
|
|
47
88
|
//# sourceMappingURL=upgrade-1.3.4.js.map
|
|
@@ -2,7 +2,7 @@ import fs from 'fs';
|
|
|
2
2
|
import os from 'os';
|
|
3
3
|
import path from 'path';
|
|
4
4
|
// uncomment to support upgrading to preview releases
|
|
5
|
-
import { prerelease } from 'semver';
|
|
5
|
+
// import { prerelease } from 'semver';
|
|
6
6
|
import { z } from 'zod';
|
|
7
7
|
import { CommandError, globalOptionsZod } from '../../../../Command.js';
|
|
8
8
|
import { fsUtil } from '../../../../utils/fsUtil.js';
|
|
@@ -85,7 +85,8 @@ class SpfxProjectUpgradeCommand extends BaseProjectCommand {
|
|
|
85
85
|
'1.20.0',
|
|
86
86
|
'1.21.0',
|
|
87
87
|
'1.21.1',
|
|
88
|
-
'1.22.0
|
|
88
|
+
'1.22.0',
|
|
89
|
+
'1.22.1'
|
|
89
90
|
];
|
|
90
91
|
}
|
|
91
92
|
async commandAction(logger, args) {
|
|
@@ -95,15 +96,15 @@ class SpfxProjectUpgradeCommand extends BaseProjectCommand {
|
|
|
95
96
|
}
|
|
96
97
|
this.toVersion = args.options.toVersion ? args.options.toVersion : this.supportedVersions[this.supportedVersions.length - 1];
|
|
97
98
|
// uncomment to support upgrading to preview releases
|
|
98
|
-
if (!args.options.toVersion &&
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
}
|
|
99
|
+
// if (!args.options.toVersion &&
|
|
100
|
+
// !args.options.preview &&
|
|
101
|
+
// prerelease(this.toVersion)) {
|
|
102
|
+
// // no version and no preview specified while the current version to
|
|
103
|
+
// // upgrade to is a prerelease so let's grab the first non-preview version
|
|
104
|
+
// // since we're supporting only one preview version, it's sufficient for
|
|
105
|
+
// // us to take second to last version
|
|
106
|
+
// this.toVersion = this.supportedVersions[this.supportedVersions.length - 2];
|
|
107
|
+
// }
|
|
107
108
|
this.packageManager = args.options.packageManager || 'npm';
|
|
108
109
|
this.shell = args.options.shell || 'powershell';
|
|
109
110
|
if (this.supportedVersions.indexOf(this.toVersion) < 0) {
|
|
@@ -621,7 +621,26 @@ class SpfxDoctorCommand extends BaseProjectCommand {
|
|
|
621
621
|
fix: 'npm i -g yo@5'
|
|
622
622
|
}
|
|
623
623
|
},
|
|
624
|
-
'1.22.0
|
|
624
|
+
'1.22.0': {
|
|
625
|
+
heft: {
|
|
626
|
+
range: '^1',
|
|
627
|
+
fix: 'npm i -g @rushstack/heft@1'
|
|
628
|
+
},
|
|
629
|
+
node: {
|
|
630
|
+
range: '>=22.14.0 < 23.0.0',
|
|
631
|
+
fix: 'Install Node.js >=22.14.0 < 23.0.0'
|
|
632
|
+
},
|
|
633
|
+
sp: SharePointVersion.SPO,
|
|
634
|
+
yo: {
|
|
635
|
+
range: '^4 || ^5 || ^6',
|
|
636
|
+
fix: 'npm i -g yo@6'
|
|
637
|
+
}
|
|
638
|
+
},
|
|
639
|
+
'1.22.1': {
|
|
640
|
+
heft: {
|
|
641
|
+
range: '^1',
|
|
642
|
+
fix: 'npm i -g @rushstack/heft@1'
|
|
643
|
+
},
|
|
625
644
|
node: {
|
|
626
645
|
range: '>=22.14.0 < 23.0.0',
|
|
627
646
|
fix: 'Install Node.js >=22.14.0 < 23.0.0'
|
|
@@ -702,6 +721,7 @@ class SpfxDoctorCommand extends BaseProjectCommand {
|
|
|
702
721
|
await this.checkYo(prerequisites);
|
|
703
722
|
await this.checkGulp();
|
|
704
723
|
await this.checkGulpCli(prerequisites);
|
|
724
|
+
await this.checkHeft(prerequisites);
|
|
705
725
|
await this.checkTypeScript();
|
|
706
726
|
if (this.resultsObject.some(y => y.fix !== undefined)) {
|
|
707
727
|
await this.logMessage('Recommended fixes:');
|
|
@@ -831,6 +851,26 @@ class SpfxDoctorCommand extends BaseProjectCommand {
|
|
|
831
851
|
await this.logMessage(formatting.getStatus(CheckStatus.Failure, message));
|
|
832
852
|
}
|
|
833
853
|
}
|
|
854
|
+
async checkHeft(prerequisites) {
|
|
855
|
+
if (!prerequisites.heft) {
|
|
856
|
+
// heft is not required for this version of SPFx
|
|
857
|
+
return;
|
|
858
|
+
}
|
|
859
|
+
const heftVersion = await this.getPackageVersion('@rushstack/heft', PackageSearchMode.GlobalOnly, HandlePromise.Continue);
|
|
860
|
+
if (heftVersion) {
|
|
861
|
+
await this.checkStatus('@rushstack/heft', heftVersion, prerequisites.heft);
|
|
862
|
+
}
|
|
863
|
+
else {
|
|
864
|
+
const message = '@rushstack/heft not found';
|
|
865
|
+
this.resultsObject.push({
|
|
866
|
+
check: '@rushstack/heft',
|
|
867
|
+
passed: false,
|
|
868
|
+
message: message,
|
|
869
|
+
fix: prerequisites.heft.fix
|
|
870
|
+
});
|
|
871
|
+
await this.logMessage(formatting.getStatus(CheckStatus.Failure, message));
|
|
872
|
+
}
|
|
873
|
+
}
|
|
834
874
|
async checkGulp() {
|
|
835
875
|
const gulpVersion = await this.getPackageVersion('gulp', PackageSearchMode.GlobalOnly, HandlePromise.Continue);
|
|
836
876
|
if (gulpVersion) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pnp/cli-microsoft365",
|
|
3
|
-
"version": "11.3.0
|
|
3
|
+
"version": "11.3.0",
|
|
4
4
|
"description": "Manage Microsoft 365 and SharePoint Framework projects on any platform",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "./dist/api.js",
|
|
@@ -323,4 +323,4 @@
|
|
|
323
323
|
"source-map-support": "^0.5.21",
|
|
324
324
|
"tsc-watch": "^7.2.0"
|
|
325
325
|
}
|
|
326
|
-
}
|
|
326
|
+
}
|