@celljs/cli 3.7.3 → 3.7.4

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 +1 @@
1
- {"version":3,"file":"serve.d.ts","sourceRoot":"","sources":["../../src/serve/serve.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAgB,MAAM,iDAAiD,CAAC;AAE3F,MAAM,WAAW,YAAY;IACzB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;CACpB;yBAEqB,KAAK,UAAU,EAAE,SAAS,YAAY;AAA5D,wBAkBE"}
1
+ {"version":3,"file":"serve.d.ts","sourceRoot":"","sources":["../../src/serve/serve.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAgB,MAAM,iDAAiD,CAAC;AAE3F,MAAM,WAAW,YAAY;IACzB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;CACpB;yBAEqB,KAAK,UAAU,EAAE,SAAS,YAAY;AAA5D,wBAmBE"}
@@ -4,13 +4,14 @@ const serve_manager_1 = require("./serve-manager");
4
4
  const context_protocol_1 = require("@celljs/cli-common/lib/context/context-protocol");
5
5
  exports.default = async (ctx, options) => {
6
6
  try {
7
+ process.argv = [process.argv[0], process.argv[1]];
7
8
  if (options.command) {
8
9
  // Replace process.argv with custom command arguments, keeping original first two items
9
10
  const args = options.command.split(' ').filter(Boolean);
10
11
  if (args[0] === '@') {
11
12
  args.shift();
12
13
  }
13
- process.argv = [process.argv[0], process.argv[1], ...args];
14
+ process.argv = process.argv.concat(args);
14
15
  }
15
16
  ctx.options = options;
16
17
  ctx = context_protocol_1.ContextUtils.mergeContext(ctx, { dev: true, ...options });
@@ -1 +1 @@
1
- {"version":3,"file":"serve.js","sourceRoot":"","sources":["../../src/serve/serve.ts"],"names":[],"mappings":";;AACA,mDAA+C;AAC/C,sFAA2F;AAO3F,kBAAe,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C;YAClB,uFAAuF;YACvF,MAAM,IAAI,GAAG,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;YACxD,IAAI,IAAI,CAAC,CAAC,CAAC,KAAK,GAAG,EAAE,CAAC;gBAClB,IAAI,CAAC,KAAK,EAAE,CAAC;YACjB,CAAC;YACD,OAAO,CAAC,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QAC7C,CAAC;QACD,GAAG,CAAC,OAAO,GAAG,OAAO,CAAC;QACtB,GAAG,GAAG,+BAAY,CAAC,YAAY,CAAC,GAAG,EAAE,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;QAChE,MAAM,IAAI,4BAAY,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,CAAC;IACxC,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACb,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QACrB,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;IACrB,CAAC;AAEL,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@celljs/cli",
3
- "version": "3.7.3",
3
+ "version": "3.7.4",
4
4
  "description": "Cell CLI.",
5
5
  "homepage": "https://github.com/cellbang/cell",
6
6
  "bugs": {
@@ -33,9 +33,9 @@
33
33
  "templates"
34
34
  ],
35
35
  "dependencies": {
36
- "@celljs/cli-common": "3.7.3",
37
- "@celljs/cli-runtime": "3.7.3",
38
- "@celljs/frameworks": "3.7.3",
36
+ "@celljs/cli-common": "3.7.4",
37
+ "@celljs/cli-runtime": "3.7.4",
38
+ "@celljs/frameworks": "3.7.4",
39
39
  "chalk": "^4.1.0",
40
40
  "commander": "^11.0.0",
41
41
  "dotenv": "^16.3.1",
@@ -53,12 +53,12 @@
53
53
  "watchpack": "^2.2.0"
54
54
  },
55
55
  "devDependencies": {
56
- "@celljs/component": "3.7.3",
56
+ "@celljs/component": "3.7.4",
57
57
  "@types/js-yaml": "^3.12.1",
58
58
  "@types/prompts": "^2.4.4"
59
59
  },
60
60
  "publishConfig": {
61
61
  "access": "public"
62
62
  },
63
- "gitHead": "0c2ace1d91877e393d075de3eeab366fe98f9950"
63
+ "gitHead": "2e48eba8b8a76312238fcaef4287e5ce64779996"
64
64
  }
@@ -9,13 +9,14 @@ export interface ServeOptions {
9
9
 
10
10
  export default async (ctx: CliContext, options: ServeOptions) => {
11
11
  try {
12
+ process.argv = [process.argv[0], process.argv[1]];
12
13
  if (options.command) {
13
14
  // Replace process.argv with custom command arguments, keeping original first two items
14
15
  const args = options.command.split(' ').filter(Boolean);
15
16
  if (args[0] === '@') {
16
17
  args.shift();
17
18
  }
18
- process.argv = [process.argv[0], process.argv[1], ...args];
19
+ process.argv = process.argv.concat(args);
19
20
  }
20
21
  ctx.options = options;
21
22
  ctx = ContextUtils.mergeContext(ctx, { dev: true, ...options });