fast-cocos 1.0.5 → 1.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.
@@ -578,7 +578,7 @@ class XlsxParser {
578
578
  json[sheetName] = require(filePath);
579
579
  });
580
580
  this.writeFileSync(this.options["xlsx.json"], json);
581
- const tmpJsonPath = path_1.default.join(this.options.tmpDir, "config", "xlsx.json");
581
+ const tmpJsonPath = path_1.default.join(this.options.xlsxDir, "config", "xlsx.json");
582
582
  this.writeFileSync(tmpJsonPath, json);
583
583
  }
584
584
  /**
@@ -625,7 +625,7 @@ class XlsxParser {
625
625
  });
626
626
  declareStr += `\n}\n`;
627
627
  this.writeFileSync(this.options["xlsx.sheet.d.ts"], declareStr);
628
- const tmpSheetDtsPath = path_1.default.join(this.options.tmpDir, "config", "xlsx.sheet.d.ts");
628
+ const tmpSheetDtsPath = path_1.default.join(this.options.xlsxDir, "config", "xlsx.sheet.d.ts");
629
629
  this.writeFileSync(tmpSheetDtsPath, declareStr);
630
630
  // xlsx.ts
631
631
  const jsonDir = path_1.default.join(this.options.tmpDir);
@@ -653,7 +653,7 @@ class XlsxParser {
653
653
  scriptStr = scriptStr.replace("{0}", propertyStr);
654
654
  scriptStr = scriptStr.replace("{1}", assignStr);
655
655
  this.writeFileSync(this.options["xlsx.ts"], scriptStr);
656
- const tmpTsPath = path_1.default.join(this.options.tmpDir, "config", "xlsx.ts");
656
+ const tmpTsPath = path_1.default.join(this.options.xlsxDir, "config", "xlsx.ts");
657
657
  this.writeFileSync(tmpTsPath, scriptStr);
658
658
  }
659
659
  }
@@ -14,7 +14,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
15
  const commander_1 = require("commander");
16
16
  const path_1 = __importDefault(require("path"));
17
- const logger_1 = __importDefault(require("../../logger"));
18
17
  const XlsxParser_1 = __importDefault(require("./XlsxParser"));
19
18
  function main() {
20
19
  return __awaiter(this, void 0, void 0, function* () {
@@ -32,7 +31,7 @@ function main() {
32
31
  if (/\/snapshot\//.test(scriptPath)) {
33
32
  execDir = path_1.default.dirname(process.execPath);
34
33
  }
35
- logger_1.default.info(`执行目录: ${execDir}`);
34
+ console.info("\x1b[32m%s\x1b[0m", "执行目录: " + execDir);
36
35
  const xlsxParser = new XlsxParser_1.default({
37
36
  execDir,
38
37
  tmpDir: path_1.default.join(options.source, "json"),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fast-cocos",
3
- "version": "1.0.5",
3
+ "version": "1.0.7",
4
4
  "scripts": {
5
5
  "clean": "rm -rf dist",
6
6
  "start": "node ./dist/index.js",