fscr 7.3.0 → 7.3.1
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.
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import promptQuestion from "../../utils/prompt.js";
|
|
2
|
-
import fcFilepicker1 from "fc-filepick";
|
|
3
2
|
import { spawn } from "child_process";
|
|
4
3
|
|
|
5
|
-
const fcFilepicker = fcFilepicker1.default;
|
|
6
|
-
|
|
7
4
|
/**
|
|
8
5
|
* Deploy
|
|
9
6
|
* @param files
|
|
@@ -106,6 +103,8 @@ export default {
|
|
|
106
103
|
context.logger.success("Deployment plugin initialized");
|
|
107
104
|
},
|
|
108
105
|
async run(ctx) {
|
|
106
|
+
const { default: fcFilepickerMod } = await import("fc-filepick");
|
|
107
|
+
const fcFilepicker = fcFilepickerMod.default ?? fcFilepickerMod;
|
|
109
108
|
const r = await promptQuestion({}, "Subdomain?");
|
|
110
109
|
const folder = await fcFilepicker({ type: "folder" });
|
|
111
110
|
await deployExec(folder, r, ctx);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fscr",
|
|
3
|
-
"version": "7.3.
|
|
3
|
+
"version": "7.3.1",
|
|
4
4
|
"description": "Runs the fscripts.md file",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -25,9 +25,7 @@
|
|
|
25
25
|
"encryptedFiles": [
|
|
26
26
|
"config.json"
|
|
27
27
|
],
|
|
28
|
-
"ignore-upgrade": [
|
|
29
|
-
"micromatch"
|
|
30
|
-
],
|
|
28
|
+
"ignore-upgrade": [],
|
|
31
29
|
"config": "test.json"
|
|
32
30
|
},
|
|
33
31
|
"staticPath": {
|
|
@@ -46,65 +44,38 @@
|
|
|
46
44
|
"fsr": "./bin"
|
|
47
45
|
},
|
|
48
46
|
"dependencies": {
|
|
49
|
-
"better-md-2-json": "^1.0.6",
|
|
50
47
|
"boxen": "^8.0.1",
|
|
51
48
|
"chalk": "^4.1.2",
|
|
52
49
|
"conf": "^15.0.2",
|
|
53
50
|
"cross-spawn": "^7.0.1",
|
|
54
51
|
"detect-indent": "^7.0.2",
|
|
55
52
|
"enquirer": "^2.3.4",
|
|
53
|
+
"fc-filepick": "^1.3.0",
|
|
56
54
|
"fs-extra": "^11.3.2",
|
|
57
55
|
"git-changed-files": "^1.0.0",
|
|
58
56
|
"git-release-notes": "^5.0.0",
|
|
59
57
|
"git-state": "^4.1.0",
|
|
60
|
-
"github-basic": "^6.0.0",
|
|
61
|
-
"ink": "^5.2.1",
|
|
62
|
-
"ink-select-input": "^4.2.2",
|
|
63
58
|
"inquirer": "^12.9.6",
|
|
64
|
-
"is-builtin-module": "^5.0.0",
|
|
65
59
|
"json-colorz": "^0.2.7",
|
|
66
60
|
"markdown-toc": "^1.2.0",
|
|
67
61
|
"marked": "^16.3.0",
|
|
68
|
-
"md-2-json": "^2.0.0",
|
|
69
|
-
"micromatch": "^4.0.2",
|
|
70
62
|
"moment-mini": "^2.24.0",
|
|
71
63
|
"open": "^10.2.0",
|
|
72
64
|
"pretty-ms": "^9.3.0",
|
|
73
|
-
"react": "^18.3.1",
|
|
74
65
|
"require-from-string": "^2.0.2",
|
|
75
66
|
"server-destroy": "^1.0.1",
|
|
76
|
-
"set-value": "^4.1.0",
|
|
77
|
-
"shell-quote": "^1.7.2",
|
|
78
67
|
"simple-git": "^3.28.0",
|
|
79
68
|
"sort-object-keys": "^2.0.0",
|
|
80
69
|
"staged-git-files": "^1.2.0",
|
|
81
|
-
"term-size": "^4.0.0"
|
|
70
|
+
"term-size": "^4.0.0",
|
|
71
|
+
"yargs": "^18.0.0"
|
|
82
72
|
},
|
|
83
73
|
"devDependencies": {
|
|
84
74
|
"@vitest/coverage-v8": "^3.2.4",
|
|
85
|
-
"execa": "8.0.1",
|
|
86
|
-
"fancy-log": "^2.0.0",
|
|
87
|
-
"fc-filepick": "^1.3.0",
|
|
88
|
-
"fkill-cli": "^8.0.0",
|
|
89
|
-
"ink-tab": "^5.2.0",
|
|
90
|
-
"ink-table": "^3.1.0",
|
|
91
|
-
"lodash": "^4.17.15",
|
|
92
|
-
"markdown-it": "^14.1.0",
|
|
93
|
-
"mixin-deep": "^2.0.1",
|
|
94
|
-
"node-run-cmd": "^1.0.1",
|
|
95
75
|
"nodemon": "^3.1.10",
|
|
96
76
|
"npm-run-all": "^4.1.5",
|
|
97
|
-
"prepend-file": "^2.0.1",
|
|
98
|
-
"pretty-console-colors": "^2.0.0",
|
|
99
|
-
"pull-request": "^3.0.0",
|
|
100
|
-
"remarkable": "^2.0.0",
|
|
101
|
-
"rexrex": "^1.3.0",
|
|
102
77
|
"rimraf": "^6.0.1",
|
|
103
|
-
"
|
|
104
|
-
"terminal-tree": "^0.0.3",
|
|
105
|
-
"underscore.string": "^3.3.5",
|
|
106
|
-
"vitest": "^3.2.4",
|
|
107
|
-
"yargs": "^18.0.0"
|
|
78
|
+
"vitest": "^3.2.4"
|
|
108
79
|
},
|
|
109
80
|
"peerDependencies": {
|
|
110
81
|
"chalk": "^4.1.2"
|