@868618/fup-cli 0.1.0 → 1.2.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.
Files changed (3) hide show
  1. package/README.md +17 -3
  2. package/dist/cli.js +128 -87
  3. package/package.json +2 -1
package/README.md CHANGED
@@ -1,11 +1,12 @@
1
1
  # fup
2
2
 
3
- `fup` 是一个 Node.js 全局命令:从当前 Git 项目收集变更文件,经确认后,上传到项目根目录 `automanage.php` 配置的 FTP。项目使用 TypeScript 编写,由 Vite 库模式构建。npm 包名为 `@868618/fup-cli`,终端命令名为 `fup`。
3
+ `fup` 是一个 Node.js 全局命令:从当前 Git 项目收集变更文件,或选择指定文件、目录,经确认后,上传到项目根目录 `automanage.php` 配置的 FTP。项目使用 TypeScript 编写,由 Vite 库模式构建。npm 包名为 `@868618/fup-cli`,终端命令名为 `fup`。
4
4
 
5
5
  ## 功能
6
6
 
7
- - 不指定 commit:收集暂存区、工作区和未跟踪文件。
8
- - 指定 commit:额外收集该提交(含)至 `HEAD` 的变更。
7
+ - 不指定 commit 和 `--path`:收集暂存区、工作区和未跟踪文件。
8
+ - 指定 commit:收集该提交(含)至当前工作区的最终差异,以及未跟踪文件;已完全改回起点版本的文件不列入。
9
+ - 使用 `-p, --path`:只上传指定文件或目录中的全部普通文件(递归),无论是否有 Git 变更;可重复选择,重叠路径自动去重,不能与 commit 同用。
9
10
  - 默认忽略**项目根目录**的 `.php` 文件,扩展名不区分大小写;子目录中的 PHP 文件仍可上传。
10
11
  - 支持重复使用 `--ignore` 排除指定文件或目录,目录路径以 `/` 结尾。
11
12
  - 上传前展示文件清单,只有输入 `y` 或 `yes` 才会读取 FTP 配置并开始上传。已删除文件不会上传。
@@ -36,6 +37,9 @@ npm install -g .
36
37
  ```powershell
37
38
  fup
38
39
  fup <commit>
40
+ fup --path assets/logo.png
41
+ fup --path assets/ --path "Html/产品 介绍.html"
42
+ fup -p assets/ --ignore assets/cache/
39
43
  fup --ignore cache/ --ignore config/local.php
40
44
  fup <commit> --ignore cache/
41
45
  fup --help
@@ -43,6 +47,12 @@ fup --help
43
47
 
44
48
  `--ignore` 路径相对于 Git 项目根目录。命令在当前目录向上查找 Git 根目录;运行前请确认当前所在项目。取消上传只需在提示处输入 `n` 或直接回车。
45
49
 
50
+ `--path` 的相对路径同样以 Git 项目根目录为基准,也支持项目内的绝对路径;`/`、`\` 均可作为分隔符,含空格的路径需加引号。目录无需以 `/` 结尾,`--path .` 选择整个项目。远端仍保留相对项目根目录的结构,例如 `--path assets/logo.png` 上传到 FTP 根目录下的 `assets/logo.png`。
51
+
52
+ 指定路径模式包含被 `.gitignore` 忽略的文件,但仍应用默认的根目录 PHP 忽略规则及 `--ignore`。Git 元数据(`.git` 文件或目录)始终排除;递归时跳过符号链接和目录联接,直接指定链接、项目外路径或不存在的路径会报错。空目录不会上传。
53
+
54
+ 指定 commit 必须属于当前 `HEAD` 的历史。为包含该提交本身,比较起点取该提交的第一父提交,再与当前磁盘上的文件比较,包含已提交、暂存区和工作区改动;起点为首次提交时,收集当前全部受跟踪文件。历史中改过但已完全还原的文件不会因提交日志而被重新加入,未跟踪文件仍遵循 Git 忽略规则。
55
+
46
56
  ## 项目文件
47
57
 
48
58
  | 文件 | 用途 |
@@ -54,6 +64,9 @@ fup --help
54
64
  | `src/cli.ts` | 命令行参数、帮助信息及错误出口 |
55
65
  | `src/commands/upload.ts` | 文件筛选、展示、确认及并发上传流程 |
56
66
  | `src/git/changes.ts` | 调用 Git 并收集变更路径 |
67
+ | `src/files/selection.ts` | 递归收集指定文件或目录,校验路径并去重 |
68
+ | `test/git-changes.test.mjs` | 通过临时 Git 仓库验证范围、还原、合并及特殊路径 |
69
+ | `test/selected-files.test.mjs` | 验证指定路径、目录递归、去重、越界及链接处理 |
57
70
  | `src/ftp/config.ts` | 读取并校验目标项目的 FTP 配置 |
58
71
  | `.gitignore` | 排除依赖、构建产物、本地配置和打包文件 |
59
72
 
@@ -62,6 +75,7 @@ fup --help
62
75
  ## 开发检查
63
76
 
64
77
  ```powershell
78
+ npm test
65
79
  npm run typecheck
66
80
  npm run build
67
81
  node dist/cli.js --help
package/dist/cli.js CHANGED
@@ -6,112 +6,151 @@ import { spawn as r, spawnSync as i } from "node:child_process";
6
6
  import * as a from "node:readline/promises";
7
7
  import { stdin as o, stdout as s } from "node:process";
8
8
  // src/git/changes.ts
9
- function c(e, t) {
10
- let n = i("git", e, {
9
+ function c(e, t, n = [0]) {
10
+ let r = i("git", e, {
11
11
  cwd: t,
12
12
  encoding: null,
13
13
  windowsHide: !0
14
14
  });
15
- if (n.error) throw n.error;
16
- if (n.status !== 0) {
17
- let t = (n.stderr || Buffer.alloc(0)).toString("utf8").trim();
15
+ if (r.error) throw r.error;
16
+ if (r.status === null || !n.includes(r.status)) {
17
+ let t = (r.stderr || Buffer.alloc(0)).toString("utf8").trim();
18
18
  throw Error(t || `git ${e[0]} 执行失败`);
19
19
  }
20
- return n.stdout;
20
+ return r;
21
21
  }
22
22
  function l(e, t) {
23
- for (let n of t.toString("utf8").split("\0").filter(Boolean)) e.add(n.replace(/\\/g, "/"));
23
+ return c(e, t).stdout;
24
24
  }
25
25
  function u(e, t) {
26
+ for (let n of t.toString("utf8").split("\0").filter(Boolean)) e.add(n);
27
+ }
28
+ function d(e, t) {
26
29
  let n = /* @__PURE__ */ new Set();
27
30
  if (t) {
28
- c([
29
- "cat-file",
30
- "-e",
31
+ let r = l([
32
+ "rev-parse",
33
+ "--verify",
34
+ "--end-of-options",
31
35
  `${t}^{commit}`
32
- ], e);
33
- let r = c([
36
+ ], e).toString("utf8").trim();
37
+ if (c([
38
+ "merge-base",
39
+ "--is-ancestor",
40
+ r,
41
+ "HEAD"
42
+ ], e, [0, 1]).status === 1) throw Error(`提交 ${t} 不在当前 HEAD 的历史中,无法统计从该提交开始的变更`);
43
+ let i = l([
34
44
  "rev-list",
35
45
  "--parents",
36
46
  "-n",
37
47
  "1",
38
- t
48
+ r,
49
+ "--"
39
50
  ], e).toString("utf8").trim().split(/\s+/)[1];
40
- r ? (l(n, c([
51
+ i ? u(n, l([
41
52
  "diff",
42
53
  "--name-only",
43
54
  "-z",
44
- r,
45
- "HEAD"
46
- ], e)), l(n, c([
47
- "log",
48
- "--name-only",
49
- "--pretty=format:",
50
- "-z",
51
- `${t}..HEAD`
52
- ], e))) : (l(n, c([
53
- "diff-tree",
54
- "--root",
55
- "--no-commit-id",
56
- "--name-only",
57
- "-r",
55
+ i,
56
+ "--"
57
+ ], e)) : u(n, l([
58
+ "ls-files",
59
+ "--cached",
58
60
  "-z",
59
- t
60
- ], e)), l(n, c([
61
- "log",
62
- "--name-only",
63
- "--pretty=format:",
64
- "-z",
65
- `${t}..HEAD`
66
- ], e)));
67
- }
68
- return l(n, c([
61
+ "--"
62
+ ], e));
63
+ } else u(n, l([
69
64
  "diff",
70
65
  "--name-only",
71
66
  "-z",
72
- "--cached"
73
- ], e)), l(n, c([
67
+ "--cached",
68
+ "--"
69
+ ], e)), u(n, l([
74
70
  "diff",
75
71
  "--name-only",
76
- "-z"
77
- ], e)), l(n, c([
72
+ "-z",
73
+ "--"
74
+ ], e));
75
+ return u(n, l([
78
76
  "ls-files",
79
77
  "--others",
80
78
  "--exclude-standard",
81
- "-z"
79
+ "-z",
80
+ "--"
82
81
  ], e)), Array.from(n).sort((e, t) => e.localeCompare(t));
83
82
  }
83
+ // src/files/selection.ts
84
+ function f(e, t) {
85
+ let r = n.relative(e, t);
86
+ return r !== ".." && !r.startsWith(".." + n.sep) && !n.isAbsolute(r);
87
+ }
88
+ function p(e, r) {
89
+ let i = n.resolve(e), a = t.realpathSync.native(i), o = /* @__PURE__ */ new Set(), s = /* @__PURE__ */ new Set();
90
+ function c(e) {
91
+ let r = t.lstatSync(e);
92
+ if (!r.isSymbolicLink()) {
93
+ if (r.isFile()) o.add(n.relative(a, e).split(n.sep).join("/"));
94
+ else if (r.isDirectory() && !s.has(e)) {
95
+ s.add(e);
96
+ for (let r of t.readdirSync(e, { withFileTypes: !0 })) r.name.toLowerCase() !== ".git" && c(n.join(e, r.name));
97
+ }
98
+ }
99
+ }
100
+ for (let e of r) {
101
+ if (!e.trim()) throw Error("--path 路径不能为空");
102
+ let r = n.resolve(i, e.replace(/\\/g, n.sep)), o = f(i, r) ? i : a;
103
+ if (!f(o, r)) throw Error(`--path 路径必须位于项目根目录内:${e}`);
104
+ let s = n.relative(o, r), l = s ? s.split(n.sep) : [];
105
+ if (l.some((e) => e.toLowerCase() === ".git")) throw Error(`--path 不能选择 Git 元数据:${e}`);
106
+ let u = o;
107
+ for (let r of l) {
108
+ u = n.join(u, r);
109
+ let i;
110
+ try {
111
+ i = t.lstatSync(u);
112
+ } catch (t) {
113
+ throw t.code === "ENOENT" || t.code === "ENOTDIR" ? Error(`--path 路径不存在:${e}`) : t;
114
+ }
115
+ if (i.isSymbolicLink()) throw Error(`--path 不支持符号链接或目录联接:${e}`);
116
+ }
117
+ let d = t.lstatSync(r);
118
+ if (!d.isFile() && !d.isDirectory()) throw Error(`--path 必须指向普通文件或目录:${e}`);
119
+ c(t.realpathSync.native(r));
120
+ }
121
+ return Array.from(o).sort((e, t) => e.localeCompare(t));
122
+ }
84
123
  // src/ftp/config.ts
85
- function d(e, t) {
124
+ function m(e, t) {
86
125
  for (let n of t) {
87
126
  let t = n.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), r = RegExp("\\$" + t + "\\s*=\\s*(['\"])([\\s\\S]*?)\\1\\s*;", "i"), i = e.match(r);
88
127
  if (i) return i[2].replace(/\\([\\"'])/g, "$1");
89
128
  }
90
129
  }
91
- function f(e) {
130
+ function h(e) {
92
131
  let r = n.join(e, "automanage.php");
93
132
  if (!t.existsSync(r)) throw Error(`项目根目录找不到配置文件:${r}`);
94
133
  let i = t.readFileSync(r, "utf8"), a = {
95
- host: d(i, [
134
+ host: m(i, [
96
135
  "ftphost",
97
136
  "ftp_host",
98
137
  "ftpserver",
99
138
  "ftp_server"
100
139
  ]),
101
- port: d(i, ["ftpport", "ftp_port"]),
102
- username: d(i, [
140
+ port: m(i, ["ftpport", "ftp_port"]),
141
+ username: m(i, [
103
142
  "ftpusername",
104
143
  "ftp_user",
105
144
  "ftpuser",
106
145
  "ftp_username"
107
146
  ]),
108
- password: d(i, [
147
+ password: m(i, [
109
148
  "ftppassword",
110
149
  "ftp_pass",
111
150
  "ftppwd",
112
151
  "ftp_password"
113
152
  ]),
114
- root: d(i, [
153
+ root: m(i, [
115
154
  "ftpwww",
116
155
  "ftp_www",
117
156
  "ftppath",
@@ -131,7 +170,7 @@ function f(e) {
131
170
  };
132
171
  }
133
172
  // src/commands/upload.ts
134
- var p = {
173
+ var g = {
135
174
  reset: "\x1B[0m",
136
175
  cyan: "\x1B[36m",
137
176
  green: "\x1B[32m",
@@ -139,7 +178,7 @@ var p = {
139
178
  red: "\x1B[31m",
140
179
  bold: "\x1B[1m"
141
180
  };
142
- function m(e) {
181
+ function _(e) {
143
182
  return e.map((e) => {
144
183
  let t = e.replace(/\\/g, "/"), r = t.endsWith("/"), i = n.posix.normalize(t.replace(/^\.\//, "")).replace(/^\/+|\/+$/g, "");
145
184
  if (!i || i === "." || n.posix.isAbsolute(t) || /^[a-zA-Z]:/.test(t) || i.split("/").includes("..")) throw Error(`无效的 --ignore 路径:${t}`);
@@ -149,21 +188,21 @@ function m(e) {
149
188
  };
150
189
  });
151
190
  }
152
- function h(e) {
191
+ function v(e) {
153
192
  return /^[^/]+\.php$/i.test(e);
154
193
  }
155
- function g(e, t) {
156
- return h(e) || t.some((t) => t.isDirectory ? e === t.path || e.startsWith(t.path + "/") : e === t.path);
194
+ function y(e, t) {
195
+ return v(e) || t.some((t) => t.isDirectory ? e === t.path || e.startsWith(t.path + "/") : e === t.path);
157
196
  }
158
- function _(e) {
197
+ function b(e) {
159
198
  return e.split("/").filter(Boolean).map((e) => encodeURIComponent(e)).join("/");
160
199
  }
161
- function v(e) {
200
+ function x(e) {
162
201
  return String(e).replace(/\\/g, "\\\\").replace(/"/g, "\\\"").replace(/\r?\n/g, "");
163
202
  }
164
- function y(e, t, n, i) {
203
+ function S(e, t, n, i) {
165
204
  return new Promise((a, o) => {
166
- let s = [i.root, t].filter(Boolean).join("/"), c = `ftp://${i.host}:${i.port}/${_(s)}`, l = `user = "${v(i.username)}:${v(i.password)}"\n`, u = r("curl", [
205
+ let s = [i.root, t].filter(Boolean).join("/"), c = `ftp://${i.host}:${i.port}/${b(s)}`, l = `user = "${x(i.username)}:${x(i.password)}"\n`, u = r("curl", [
167
206
  "--silent",
168
207
  "--show-error",
169
208
  "--fail",
@@ -189,67 +228,69 @@ function y(e, t, n, i) {
189
228
  }), u.stdin.end(l);
190
229
  });
191
230
  }
192
- async function b(e, t, n) {
231
+ async function C(e, t, n) {
193
232
  let r = 0, i = Array.from({ length: Math.min(t, e.length) }, async () => {
194
233
  for (; r < e.length;) await n(e[r++]);
195
234
  });
196
235
  await Promise.all(i);
197
236
  }
198
- async function x(e, r = []) {
199
- let i = n.resolve(c(["rev-parse", "--show-toplevel"], process.cwd()).toString("utf8").trim()), l = m(r), d = u(i, e), _ = d.filter(h).length, v = d.filter((e) => g(e, l)).length, x = d.filter((e) => !g(e, l));
200
- if (console.log(`${p.bold}${p.cyan}项目:${i}${p.reset}`), console.log(e ? `${p.cyan}变更范围:提交 ${e}(含)至 HEAD,并包含暂存区和工作区改动${p.reset}` : `${p.cyan}变更范围:暂存区、工作区及未跟踪文件${p.reset}`), console.log(`${p.cyan}默认忽略:项目根目录的 *.php(命中 ${_} 个路径)${p.reset}`), l.length && console.log(`${p.cyan}附加忽略规则:${l.map((e) => e.path + (e.isDirectory ? "/" : "")).join(", ")}${p.reset}`), console.log(""), !d.length) {
201
- console.log(`${p.green}没有发现文件变更。${p.reset}`);
237
+ async function w(e, r = [], i = []) {
238
+ let c = i.length > 0;
239
+ if (e && c) throw Error("--path 不能与 commit 同时使用");
240
+ let u = n.resolve(l(["rev-parse", "--show-toplevel"], process.cwd()).toString("utf8").trim()), f = _(r), m = c ? p(u, i) : d(u, e), b = m.filter(v).length, x = m.filter((e) => y(e, f)).length, w = m.filter((e) => !y(e, f));
241
+ if (console.log(`${g.bold}${g.cyan}项目:${u}${g.reset}`), console.log(c ? `${g.cyan}上传范围:指定路径(目录递归,包含未变更及被 Git 忽略的文件):${i.join(", ")}${g.reset}` : e ? `${g.cyan}变更范围:提交 ${e}(含)至当前工作区的最终差异,包含暂存区和未跟踪文件${g.reset}` : `${g.cyan}变更范围:暂存区、工作区及未跟踪文件${g.reset}`), console.log(`${g.cyan}默认忽略:项目根目录的 *.php(命中 ${b} 个路径)${g.reset}`), f.length && console.log(`${g.cyan}附加忽略规则:${f.map((e) => e.path + (e.isDirectory ? "/" : "")).join(", ")}${g.reset}`), console.log(""), !m.length) {
242
+ console.log(`${g.green}${c ? "指定路径中没有普通文件。" : "没有发现文件变更。"}${g.reset}`);
202
243
  return;
203
244
  }
204
- if (!x.length) {
205
- console.log(`${p.green}变更文件均已忽略,没有可展示或上传的文件。${p.reset}`);
245
+ if (!w.length) {
246
+ console.log(`${g.green}${c ? "指定文件" : "变更文件"}均已忽略,没有可展示或上传的文件。${g.reset}`);
206
247
  return;
207
248
  }
208
- let S = [];
209
- for (let e of x) {
210
- let r = n.resolve(i, ...e.split("/")), a = n.relative(i, r);
211
- a !== "" && (a === ".." || a.startsWith(".." + n.sep) || n.isAbsolute(a)) ? console.log(`${p.red}[跳过路径越界] ${e}${p.reset}`) : !t.existsSync(r) || !t.statSync(r).isFile() ? console.log(`${p.red}[删除或非普通文件,不上传] ${e}${p.reset}`) : (console.log(`${p.yellow}● ${e}${p.reset}`), S.push({
249
+ let T = [];
250
+ for (let e of w) {
251
+ let r = n.resolve(u, ...e.split("/")), i = n.relative(u, r);
252
+ i !== "" && (i === ".." || i.startsWith(".." + n.sep) || n.isAbsolute(i)) ? console.log(`${g.red}[跳过路径越界] ${e}${g.reset}`) : !t.existsSync(r) || !t.statSync(r).isFile() ? console.log(`${g.red}[删除或非普通文件,不上传] ${e}${g.reset}`) : (console.log(`${g.yellow}● ${e}${g.reset}`), T.push({
212
253
  absolutePath: r,
213
254
  relativePath: e
214
255
  }));
215
256
  }
216
- if (console.log(`\n共 ${x.length} 个未忽略变更路径,其中 ${S.length} 个可上传文件;忽略 ${v} 个路径。`), !S.length) {
257
+ if (console.log(`\n共 ${w.length} 个未忽略${c ? "" : "变更"}路径,其中 ${T.length} 个可上传文件;忽略 ${x} 个路径。`), !T.length) {
217
258
  console.log("没有可上传的普通文件。");
218
259
  return;
219
260
  }
220
- let C = a.createInterface({
261
+ let E = a.createInterface({
221
262
  input: o,
222
263
  output: s
223
- }), w;
264
+ }), D;
224
265
  try {
225
- w = (await C.question("确认并行上传到 automanage.php 配置的 FTP?(y/N) ")).trim().toLowerCase();
266
+ D = (await E.question("确认并行上传到 automanage.php 配置的 FTP?(y/N) ")).trim().toLowerCase();
226
267
  } finally {
227
- C.close();
268
+ E.close();
228
269
  }
229
- if (w !== "y" && w !== "yes") {
270
+ if (D !== "y" && D !== "yes") {
230
271
  console.log("已取消上传。");
231
272
  return;
232
273
  }
233
- let T = f(i);
234
- console.log(`开始上传到 ${T.host}:${T.port}/${T.root}(并发 4)。`);
235
- let E = [];
236
- await b(S, 4, async (e) => {
274
+ let O = h(u);
275
+ console.log(`开始上传到 ${O.host}:${O.port}/${O.root}(并发 4)。`);
276
+ let k = [];
277
+ await C(T, 4, async (e) => {
237
278
  try {
238
- await y(e.absolutePath, e.relativePath, i, T), console.log(`${p.green}[上传成功] ${e.relativePath}${p.reset}`);
279
+ await S(e.absolutePath, e.relativePath, u, O), console.log(`${g.green}[上传成功] ${e.relativePath}${g.reset}`);
239
280
  } catch (t) {
240
- E.push(e.relativePath);
281
+ k.push(e.relativePath);
241
282
  let n = t instanceof Error ? t.message : String(t);
242
- console.error(`${p.red}[上传失败] ${e.relativePath}: ${n}${p.reset}`);
283
+ console.error(`${g.red}[上传失败] ${e.relativePath}: ${n}${g.reset}`);
243
284
  }
244
- }), console.log(E.length ? `${p.red}上传结束:成功 ${S.length - E.length},失败 ${E.length}。${p.reset}` : `${p.green}上传完成:${S.length} 个文件全部成功。${p.reset}`), E.length && (process.exitCode = 1);
285
+ }), console.log(k.length ? `${g.red}上传结束:成功 ${T.length - k.length},失败 ${k.length}。${g.reset}` : `${g.green}上传完成:${T.length} 个文件全部成功。${g.reset}`), k.length && (process.exitCode = 1);
245
286
  }
246
287
  // src/cli.ts
247
- function S(e, t) {
288
+ function T(e, t) {
248
289
  return t.push(e), t;
249
290
  }
250
- await new e().name("fup").description("上传当前 Git 项目的变更文件到 automanage.php 配置的 FTP").version("0.1.0").argument("[commit]", "从指定提交(含)开始统计至 HEAD 的变更").option("--ignore <path>", "忽略相对项目根目录的文件或目录;目录路径以 / 结尾,可重复使用", S, []).action(async (e, t) => {
291
+ await new e().name("fup").description("上传当前 Git 项目的变更文件或指定文件、目录到 automanage.php 配置的 FTP").version("0.1.0").argument("[commit]", "统计指定提交(含)至当前工作区的最终差异,并包含未跟踪文件").option("-p, --path <path>", "只上传指定文件或目录(递归);路径相对项目根目录,可重复使用,不能与 commit 同用", T, []).option("--ignore <path>", "忽略相对项目根目录的文件或目录;目录路径以 / 结尾,可重复使用", T, []).action(async (e, t) => {
251
292
  try {
252
- await x(e, t.ignore);
293
+ await w(e, t.ignore, t.path);
253
294
  } catch (e) {
254
295
  let t = e instanceof Error ? e.message : String(e);
255
296
  console.error(`\u001b[31m错误:${t}\u001b[0m`), process.exitCode = 1;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@868618/fup-cli",
3
- "version": "0.1.0",
3
+ "version": "1.2.0",
4
4
  "description": "Upload changed Git files to the FTP server configured in automanage.php",
5
5
  "keywords": ["ftp", "git", "upload", "cli"],
6
6
  "type": "module",
@@ -15,6 +15,7 @@
15
15
  },
16
16
  "scripts": {
17
17
  "dev": "vite build --watch",
18
+ "test": "node --experimental-strip-types --test",
18
19
  "typecheck": "tsc --noEmit",
19
20
  "build": "npm run typecheck && vite build",
20
21
  "prepack": "npm run build"