xhs-mp-compiler-cli 1.1.6 → 1.2.0-beta.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,6 +1,5 @@
1
- /// <reference types="node" />
2
- /// <reference types="node" />
3
- /// <reference types="node" />
1
+ /// <reference types="node/child_process" />
2
+ /// <reference types="node/stream" />
4
3
  /**
5
4
  * 在子进程执行编译
6
5
  */
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- /// <reference types="node" />
1
+ /// <reference types="node/events" />
2
2
  import { COMPILE_ENTRY } from './config/constant.config';
3
3
  import { Project } from 'xhs-mp-project';
4
4
  import EventEmitter from 'events';
package/dist/index.js CHANGED
@@ -95,6 +95,7 @@ class Compiler extends events_1.default {
95
95
  compileDirPath = dir_config_1.mpCompileDirPath;
96
96
  compileCachePath = dir_config_1.mpCompileCachePath;
97
97
  }
98
+ // this.logger.log('compileDirPath:', compileDirPath)
98
99
  return {
99
100
  mpCompileDirPath: compileDirPath,
100
101
  mpCompileCachePath: compileCachePath
@@ -185,7 +186,6 @@ class Compiler extends events_1.default {
185
186
  }
186
187
  createCompilerImpl(entryType = constant_config_1.COMPILE_ENTRY.simulator) {
187
188
  const { nodeJsPath, mpDevJsonPath } = this.compilerProps;
188
- const { mpCompileDirPath } = this.getCompilerDir();
189
189
  const distDir = this.getDistDir(entryType);
190
190
  const cacheDir = this.getCacheDir(entryType);
191
191
  const compilerType = this.getCompilerType(entryType);
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  export interface IZipFactory {
3
2
  outputDir: string;
4
3
  ignore: string[];
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import type { Archiver } from 'archiver';
3
2
  import * as fse from 'fs-extra';
4
3
  interface IOptions {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xhs-mp-compiler-cli",
3
- "version": "1.1.6",
3
+ "version": "1.2.0-beta.1",
4
4
  "description": "xhs mp command tool.",
5
5
  "preferGlobal": true,
6
6
  "category": "esm",
@@ -82,11 +82,11 @@
82
82
  "webpack-bundle-analyzer": "^4.4.0",
83
83
  "webpack-chain": "^6.5.1",
84
84
  "webpack-sources": "^3.2.2",
85
- "xhs-mp-compiler-ml-loader": "1.1.5",
86
- "xhs-mp-compiler-utils": "1.1.3",
87
- "xhs-mp-pack": "^1.1.4",
88
- "xhs-mp-project": "^1.1.4",
89
- "xhs-mp-utils": "^1.1.3"
85
+ "xhs-mp-compiler-ml-loader": "1.2.0-beta.1",
86
+ "xhs-mp-compiler-utils": "1.2.0-beta.1",
87
+ "xhs-mp-pack": "^1.2.0-beta.1",
88
+ "xhs-mp-project": "^1.2.0-beta.1",
89
+ "xhs-mp-utils": "^1.2.0-beta.1"
90
90
  },
91
91
  "devDependencies": {
92
92
  "@types/babel__generator": "7.6.3",