@ruan-cat/vercel-deploy-tool 0.0.5 → 0.0.7
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/package.json +6 -8
- package/src/index.ts +6 -4
- package/tsconfig.json +5 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ruan-cat/vercel-deploy-tool",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.7",
|
|
4
4
|
"description": "阮喵喵自用的vercel部署工具,用于实现复杂项目的部署。",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/index.ts",
|
|
@@ -8,12 +8,9 @@
|
|
|
8
8
|
"exports": {
|
|
9
9
|
".": {
|
|
10
10
|
"import": "./src/index.ts",
|
|
11
|
-
"types": "./src/index.ts"
|
|
12
|
-
"__types": "./dist/index.d.ts",
|
|
13
|
-
"__import": "./dist/index.mjs",
|
|
14
|
-
"__require": "./dist/index.cjs"
|
|
11
|
+
"types": "./src/index.ts"
|
|
15
12
|
},
|
|
16
|
-
"
|
|
13
|
+
"./src/*": "./src/*"
|
|
17
14
|
},
|
|
18
15
|
"keywords": [
|
|
19
16
|
"vercel"
|
|
@@ -41,7 +38,7 @@
|
|
|
41
38
|
"rimraf": "^5.0.7",
|
|
42
39
|
"shx": "^0.3.4",
|
|
43
40
|
"vercel": "^34.2.7",
|
|
44
|
-
"@ruan-cat/utils": "^1.0.
|
|
41
|
+
"@ruan-cat/utils": "^1.0.3"
|
|
45
42
|
},
|
|
46
43
|
"devDependencies": {
|
|
47
44
|
"@types/lodash-es": "^4.17.12",
|
|
@@ -54,6 +51,7 @@
|
|
|
54
51
|
"start": "node ./dist/index.js",
|
|
55
52
|
"run": "vite-node ./src/index.ts --files",
|
|
56
53
|
"test:config": "vite-node ./tests/config.test.ts --files",
|
|
57
|
-
"test:vitest": "vitest --ui --watch"
|
|
54
|
+
"test:vitest": "vitest --ui --watch",
|
|
55
|
+
"rm:node_modules": "rimraf node_modules"
|
|
58
56
|
}
|
|
59
57
|
}
|
package/src/index.ts
CHANGED
|
@@ -5,6 +5,8 @@ import { concat, isEmpty, isUndefined } from "lodash-es";
|
|
|
5
5
|
import { consola } from "consola";
|
|
6
6
|
import { isConditionsEvery, isConditionsSome } from "@ruan-cat/utils";
|
|
7
7
|
|
|
8
|
+
// import {} from "@ruan-cat/vercel-deploy-tool";
|
|
9
|
+
|
|
8
10
|
import {
|
|
9
11
|
initVercelConfig,
|
|
10
12
|
config,
|
|
@@ -207,19 +209,19 @@ function generateBuildTask(deployTarget: DeployTarget) {
|
|
|
207
209
|
*/
|
|
208
210
|
function generateCopyDistTasks(deployTarget: WithUserCommands) {
|
|
209
211
|
function delDirectoryCmd() {
|
|
210
|
-
return <const>`rimraf ${vercelOutputStatic}`;
|
|
212
|
+
return <const>`pnpm dlx rimraf ${vercelOutputStatic}`;
|
|
211
213
|
}
|
|
212
214
|
|
|
213
215
|
function createDirectoryCmd() {
|
|
214
|
-
return <const>`mkdirp ${vercelOutputStatic}`;
|
|
216
|
+
return <const>`pnpm dlx mkdirp ${vercelOutputStatic}`;
|
|
215
217
|
}
|
|
216
218
|
|
|
217
219
|
function copyDirectoryFileCmd() {
|
|
218
|
-
return <const>`cpx "${deployTarget.outputDirectory}" ${vercelOutputStatic}`;
|
|
220
|
+
return <const>`pnpm dlx cpx "${deployTarget.outputDirectory}" ${vercelOutputStatic}`;
|
|
219
221
|
}
|
|
220
222
|
|
|
221
223
|
function printDirectoryFileCmd() {
|
|
222
|
-
return <const>`shx ls -R ${vercelOutputStatic}`;
|
|
224
|
+
return <const>`pnpm dlx shx ls -R ${vercelOutputStatic}`;
|
|
223
225
|
}
|
|
224
226
|
|
|
225
227
|
function cmdPrefix() {
|
package/tsconfig.json
CHANGED