oclif 4.17.15 → 4.17.17-dev.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/commands/pack/win.js +3 -3
- package/oclif.manifest.json +83 -83
- package/package.json +2 -2
package/lib/commands/pack/win.js
CHANGED
|
@@ -45,14 +45,14 @@ const upload_util_1 = require("../../upload-util");
|
|
|
45
45
|
const exec = (0, node_util_1.promisify)(node_child_process_1.exec);
|
|
46
46
|
const scripts = {
|
|
47
47
|
/* eslint-disable no-useless-escape */
|
|
48
|
-
cmd: (config, additionalCLI) => `@echo off
|
|
48
|
+
cmd: (config, additionalCLI, nodeOptions) => `@echo off
|
|
49
49
|
setlocal enableextensions
|
|
50
50
|
|
|
51
51
|
set ${additionalCLI ? `${additionalCLI.toUpperCase()}_BINPATH` : config.scopedEnvVarKey('BINPATH')}=%~dp0\\${additionalCLI ?? config.bin}.cmd
|
|
52
52
|
if exist "%LOCALAPPDATA%\\${config.dirname}\\client\\bin\\${additionalCLI ?? config.bin}.cmd" (
|
|
53
53
|
"%LOCALAPPDATA%\\${config.dirname}\\client\\bin\\${additionalCLI ?? config.bin}.cmd" %*
|
|
54
54
|
) else (
|
|
55
|
-
"%~dp0\\..\\client\\bin\\node.exe" "%~dp0\\..\\client\\${additionalCLI ? `${additionalCLI}\\bin\\run` : 'bin\\run'}" %*
|
|
55
|
+
"%~dp0\\..\\client\\bin\\node.exe" ${`${nodeOptions?.join(' ')} `}"%~dp0\\..\\client\\${additionalCLI ? `${additionalCLI}\\bin\\run` : 'bin\\run'}" %*
|
|
56
56
|
)
|
|
57
57
|
`,
|
|
58
58
|
nsis: ({ arch, config, customization, defenderOptional, hideDefenderOption, }) => `!include MUI2.nsh
|
|
@@ -289,7 +289,7 @@ the CLI should already exist in a directory named after the CLI that is the root
|
|
|
289
289
|
await (0, promises_1.rm)(installerBase, { force: true, recursive: true });
|
|
290
290
|
await (0, promises_1.mkdir)(path.join(installerBase, 'bin'), { recursive: true });
|
|
291
291
|
await Promise.all([
|
|
292
|
-
(0, promises_1.writeFile)(path.join(installerBase, 'bin', `${config.bin}.cmd`), scripts.cmd(config)),
|
|
292
|
+
(0, promises_1.writeFile)(path.join(installerBase, 'bin', `${config.bin}.cmd`), scripts.cmd(config, undefined, buildConfig.nodeOptions)),
|
|
293
293
|
(0, promises_1.writeFile)(path.join(installerBase, 'bin', `${config.bin}`), scripts.sh(config)),
|
|
294
294
|
(0, promises_1.writeFile)(path.join(installerBase, `${config.bin}.nsi`), scripts.nsis({
|
|
295
295
|
arch,
|
package/oclif.manifest.json
CHANGED
|
@@ -578,6 +578,88 @@
|
|
|
578
578
|
"readme.js"
|
|
579
579
|
]
|
|
580
580
|
},
|
|
581
|
+
"generate:command": {
|
|
582
|
+
"aliases": [],
|
|
583
|
+
"args": {
|
|
584
|
+
"name": {
|
|
585
|
+
"description": "name of command",
|
|
586
|
+
"name": "name",
|
|
587
|
+
"required": true
|
|
588
|
+
}
|
|
589
|
+
},
|
|
590
|
+
"description": "Add a command to an existing CLI or plugin.",
|
|
591
|
+
"flags": {
|
|
592
|
+
"commands-dir": {
|
|
593
|
+
"description": "The directory to create the command in.",
|
|
594
|
+
"name": "commands-dir",
|
|
595
|
+
"default": "src/commands",
|
|
596
|
+
"hasDynamicHelp": false,
|
|
597
|
+
"multiple": false,
|
|
598
|
+
"type": "option"
|
|
599
|
+
},
|
|
600
|
+
"force": {
|
|
601
|
+
"description": "Overwrite existing files.",
|
|
602
|
+
"name": "force",
|
|
603
|
+
"allowNo": false,
|
|
604
|
+
"type": "boolean"
|
|
605
|
+
}
|
|
606
|
+
},
|
|
607
|
+
"hasDynamicHelp": false,
|
|
608
|
+
"hiddenAliases": [],
|
|
609
|
+
"id": "generate:command",
|
|
610
|
+
"pluginAlias": "oclif",
|
|
611
|
+
"pluginName": "oclif",
|
|
612
|
+
"pluginType": "core",
|
|
613
|
+
"strict": true,
|
|
614
|
+
"isESM": false,
|
|
615
|
+
"relativePath": [
|
|
616
|
+
"lib",
|
|
617
|
+
"commands",
|
|
618
|
+
"generate",
|
|
619
|
+
"command.js"
|
|
620
|
+
]
|
|
621
|
+
},
|
|
622
|
+
"generate:hook": {
|
|
623
|
+
"aliases": [],
|
|
624
|
+
"args": {
|
|
625
|
+
"name": {
|
|
626
|
+
"description": "Name of hook (snake_case).",
|
|
627
|
+
"name": "name",
|
|
628
|
+
"required": true
|
|
629
|
+
}
|
|
630
|
+
},
|
|
631
|
+
"description": "Add a hook to an existing CLI or plugin.",
|
|
632
|
+
"flags": {
|
|
633
|
+
"event": {
|
|
634
|
+
"description": "Event to run hook on.",
|
|
635
|
+
"name": "event",
|
|
636
|
+
"default": "init",
|
|
637
|
+
"hasDynamicHelp": false,
|
|
638
|
+
"multiple": false,
|
|
639
|
+
"type": "option"
|
|
640
|
+
},
|
|
641
|
+
"force": {
|
|
642
|
+
"description": "Overwrite existing files.",
|
|
643
|
+
"name": "force",
|
|
644
|
+
"allowNo": false,
|
|
645
|
+
"type": "boolean"
|
|
646
|
+
}
|
|
647
|
+
},
|
|
648
|
+
"hasDynamicHelp": false,
|
|
649
|
+
"hiddenAliases": [],
|
|
650
|
+
"id": "generate:hook",
|
|
651
|
+
"pluginAlias": "oclif",
|
|
652
|
+
"pluginName": "oclif",
|
|
653
|
+
"pluginType": "core",
|
|
654
|
+
"strict": true,
|
|
655
|
+
"isESM": false,
|
|
656
|
+
"relativePath": [
|
|
657
|
+
"lib",
|
|
658
|
+
"commands",
|
|
659
|
+
"generate",
|
|
660
|
+
"hook.js"
|
|
661
|
+
]
|
|
662
|
+
},
|
|
581
663
|
"pack:deb": {
|
|
582
664
|
"aliases": [],
|
|
583
665
|
"args": {},
|
|
@@ -867,88 +949,6 @@
|
|
|
867
949
|
"win.js"
|
|
868
950
|
]
|
|
869
951
|
},
|
|
870
|
-
"generate:command": {
|
|
871
|
-
"aliases": [],
|
|
872
|
-
"args": {
|
|
873
|
-
"name": {
|
|
874
|
-
"description": "name of command",
|
|
875
|
-
"name": "name",
|
|
876
|
-
"required": true
|
|
877
|
-
}
|
|
878
|
-
},
|
|
879
|
-
"description": "Add a command to an existing CLI or plugin.",
|
|
880
|
-
"flags": {
|
|
881
|
-
"commands-dir": {
|
|
882
|
-
"description": "The directory to create the command in.",
|
|
883
|
-
"name": "commands-dir",
|
|
884
|
-
"default": "src/commands",
|
|
885
|
-
"hasDynamicHelp": false,
|
|
886
|
-
"multiple": false,
|
|
887
|
-
"type": "option"
|
|
888
|
-
},
|
|
889
|
-
"force": {
|
|
890
|
-
"description": "Overwrite existing files.",
|
|
891
|
-
"name": "force",
|
|
892
|
-
"allowNo": false,
|
|
893
|
-
"type": "boolean"
|
|
894
|
-
}
|
|
895
|
-
},
|
|
896
|
-
"hasDynamicHelp": false,
|
|
897
|
-
"hiddenAliases": [],
|
|
898
|
-
"id": "generate:command",
|
|
899
|
-
"pluginAlias": "oclif",
|
|
900
|
-
"pluginName": "oclif",
|
|
901
|
-
"pluginType": "core",
|
|
902
|
-
"strict": true,
|
|
903
|
-
"isESM": false,
|
|
904
|
-
"relativePath": [
|
|
905
|
-
"lib",
|
|
906
|
-
"commands",
|
|
907
|
-
"generate",
|
|
908
|
-
"command.js"
|
|
909
|
-
]
|
|
910
|
-
},
|
|
911
|
-
"generate:hook": {
|
|
912
|
-
"aliases": [],
|
|
913
|
-
"args": {
|
|
914
|
-
"name": {
|
|
915
|
-
"description": "Name of hook (snake_case).",
|
|
916
|
-
"name": "name",
|
|
917
|
-
"required": true
|
|
918
|
-
}
|
|
919
|
-
},
|
|
920
|
-
"description": "Add a hook to an existing CLI or plugin.",
|
|
921
|
-
"flags": {
|
|
922
|
-
"event": {
|
|
923
|
-
"description": "Event to run hook on.",
|
|
924
|
-
"name": "event",
|
|
925
|
-
"default": "init",
|
|
926
|
-
"hasDynamicHelp": false,
|
|
927
|
-
"multiple": false,
|
|
928
|
-
"type": "option"
|
|
929
|
-
},
|
|
930
|
-
"force": {
|
|
931
|
-
"description": "Overwrite existing files.",
|
|
932
|
-
"name": "force",
|
|
933
|
-
"allowNo": false,
|
|
934
|
-
"type": "boolean"
|
|
935
|
-
}
|
|
936
|
-
},
|
|
937
|
-
"hasDynamicHelp": false,
|
|
938
|
-
"hiddenAliases": [],
|
|
939
|
-
"id": "generate:hook",
|
|
940
|
-
"pluginAlias": "oclif",
|
|
941
|
-
"pluginName": "oclif",
|
|
942
|
-
"pluginType": "core",
|
|
943
|
-
"strict": true,
|
|
944
|
-
"isESM": false,
|
|
945
|
-
"relativePath": [
|
|
946
|
-
"lib",
|
|
947
|
-
"commands",
|
|
948
|
-
"generate",
|
|
949
|
-
"hook.js"
|
|
950
|
-
]
|
|
951
|
-
},
|
|
952
952
|
"upload:deb": {
|
|
953
953
|
"aliases": [],
|
|
954
954
|
"args": {},
|
|
@@ -1131,5 +1131,5 @@
|
|
|
1131
1131
|
]
|
|
1132
1132
|
}
|
|
1133
1133
|
},
|
|
1134
|
-
"version": "4.17.
|
|
1134
|
+
"version": "4.17.17-dev.0"
|
|
1135
1135
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oclif",
|
|
3
3
|
"description": "oclif: create your own CLI",
|
|
4
|
-
"version": "4.17.
|
|
4
|
+
"version": "4.17.17-dev.0",
|
|
5
5
|
"author": "Salesforce",
|
|
6
6
|
"bin": {
|
|
7
7
|
"oclif": "bin/run.js"
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"@inquirer/confirm": "^3.1.22",
|
|
14
14
|
"@inquirer/input": "^2.2.4",
|
|
15
15
|
"@inquirer/select": "^2.5.0",
|
|
16
|
-
"@oclif/core": "^4.2.
|
|
16
|
+
"@oclif/core": "^4.2.3",
|
|
17
17
|
"@oclif/plugin-help": "^6.2.21",
|
|
18
18
|
"@oclif/plugin-not-found": "^3.2.32",
|
|
19
19
|
"@oclif/plugin-warn-if-update-available": "^3.1.30",
|