@tarojs/helper 3.5.0-beta.4 → 3.5.0-beta.5
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/dist/babelRegister.d.ts +11 -0
- package/dist/babelRegister.js +24 -1
- package/{types → dist}/constants.d.ts +41 -26
- package/dist/constants.js +38 -15
- package/dist/index.d.ts +9 -0
- package/dist/index.js +43 -17
- package/{types → dist}/npm.d.ts +1 -1
- package/dist/npm.js +27 -4
- package/dist/swcRegister.d.ts +12 -0
- package/dist/terminal.d.ts +12 -0
- package/dist/terminal.js +22 -0
- package/{types → dist}/utils.d.ts +11 -11
- package/dist/utils.js +31 -8
- package/index.js +2 -1
- package/package.json +14 -15
- package/types/babelRegister.d.ts +0 -6
- package/types/index.d.ts +0 -154
- package/types/swcRegister.d.ts +0 -3
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { PluginItem } from '@babel/core';
|
|
2
|
+
/**
|
|
3
|
+
* Inject `defineAppConfig` and `definePageConfig`
|
|
4
|
+
* require header at the top of a config file,
|
|
5
|
+
* without the need to specifically require them
|
|
6
|
+
* if they are used
|
|
7
|
+
*/
|
|
8
|
+
export declare function injectDefineConfigHeader(babel: any): PluginItem;
|
|
9
|
+
export default function createBabelRegister({ only }: {
|
|
10
|
+
only: any;
|
|
11
|
+
}): void;
|
package/dist/babelRegister.js
CHANGED
|
@@ -1,7 +1,30 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
2
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
26
|
exports.injectDefineConfigHeader = void 0;
|
|
4
|
-
const path = require("path");
|
|
27
|
+
const path = __importStar(require("path"));
|
|
5
28
|
/**
|
|
6
29
|
* Inject `defineAppConfig` and `definePageConfig`
|
|
7
30
|
* require header at the top of a config file,
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import
|
|
2
|
-
export declare const PLATFORMS:
|
|
1
|
+
import { chalk } from './terminal';
|
|
2
|
+
export declare const PLATFORMS: any;
|
|
3
3
|
export declare const enum processTypeEnum {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
4
|
+
START = "start",
|
|
5
|
+
CREATE = "create",
|
|
6
|
+
COMPILE = "compile",
|
|
7
|
+
CONVERT = "convert",
|
|
8
|
+
COPY = "copy",
|
|
9
|
+
GENERATE = "generate",
|
|
10
|
+
MODIFY = "modify",
|
|
11
|
+
ERROR = "error",
|
|
12
|
+
WARNING = "warning",
|
|
13
|
+
UNLINK = "unlink",
|
|
14
|
+
REFERENCE = "reference",
|
|
15
|
+
REMIND = "remind"
|
|
16
16
|
}
|
|
17
17
|
export interface IProcessTypeMap {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
18
|
+
[key: string]: {
|
|
19
|
+
name: string;
|
|
20
|
+
color: string | chalk.Chalk;
|
|
21
|
+
};
|
|
22
22
|
}
|
|
23
23
|
export declare const processTypeMap: IProcessTypeMap;
|
|
24
24
|
export declare const CSS_EXT: string[];
|
|
@@ -53,18 +53,27 @@ export declare const NODE_MODULES = "node_modules";
|
|
|
53
53
|
export declare const NODE_MODULES_REG: RegExp;
|
|
54
54
|
export declare const PROJECT_CONFIG = "config/index";
|
|
55
55
|
export declare const DEVICE_RATIO: {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
56
|
+
640: number;
|
|
57
|
+
750: number;
|
|
58
|
+
828: number;
|
|
59
59
|
};
|
|
60
60
|
export declare const FILE_PROCESSOR_MAP: {
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
61
|
+
'.js': string;
|
|
62
|
+
'.scss': string;
|
|
63
|
+
'.sass': string;
|
|
64
|
+
'.less': string;
|
|
65
|
+
'.styl': string;
|
|
66
66
|
};
|
|
67
67
|
export declare const UPDATE_PACKAGE_LIST: string[];
|
|
68
|
+
export declare enum META_TYPE {
|
|
69
|
+
ENTRY = "ENTRY",
|
|
70
|
+
PAGE = "PAGE",
|
|
71
|
+
COMPONENT = "COMPONENT",
|
|
72
|
+
NORMAL = "NORMAL",
|
|
73
|
+
STATIC = "STATIC",
|
|
74
|
+
CONFIG = "CONFIG",
|
|
75
|
+
EXPORTS = "EXPORTS"
|
|
76
|
+
}
|
|
68
77
|
export declare const taroJsComponents = "@tarojs/components";
|
|
69
78
|
export declare const taroJsQuickAppComponents = "@tarojs/components-qa";
|
|
70
79
|
export declare const taroJsFramework = "@tarojs/taro";
|
|
@@ -82,3 +91,9 @@ export declare const SOURCE_DIR = "src";
|
|
|
82
91
|
export declare const TEMP_DIR = ".temp";
|
|
83
92
|
export declare const NPM_DIR = "npm";
|
|
84
93
|
export declare const ENTRY = "app";
|
|
94
|
+
export declare enum FRAMEWORK_MAP {
|
|
95
|
+
VUE = "vue",
|
|
96
|
+
VUE3 = "vue3",
|
|
97
|
+
REACT = "react",
|
|
98
|
+
NERV = "nerv"
|
|
99
|
+
}
|
package/dist/constants.js
CHANGED
|
@@ -1,9 +1,32 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
2
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
26
|
exports.TARO_BASE_CONFIG = exports.TARO_CONFIG_FOLDER = exports.DEFAULT_TEMPLATE_SRC_GITEE = exports.DEFAULT_TEMPLATE_SRC = exports.isWindows = exports.DEVICE_RATIO_NAME = exports.taroJsMobxCommon = exports.taroJsMobx = exports.taroJsRedux = exports.taroJsFramework = exports.taroJsQuickAppComponents = exports.taroJsComponents = exports.META_TYPE = exports.UPDATE_PACKAGE_LIST = exports.FILE_PROCESSOR_MAP = exports.DEVICE_RATIO = exports.PROJECT_CONFIG = exports.NODE_MODULES_REG = exports.NODE_MODULES = exports.CSS_IMPORT_REG = exports.REG_URL = exports.REG_WXML_IMPORT = exports.REG_TEMPLATE = exports.REG_UX = exports.REG_JSON = exports.REG_FONT = exports.REG_IMAGE = exports.REG_MEDIA = exports.REG_CSS = exports.REG_STYLE = exports.REG_STYLUS = exports.REG_LESS = exports.REG_SASS_SCSS = exports.REG_SASS_SASS = exports.REG_SASS = exports.REG_VUE = exports.REG_SCRIPTS = exports.REG_TYPESCRIPT = exports.REG_SCRIPT = exports.REG_JS = exports.VUE_EXT = exports.SCRIPT_EXT = exports.UX_EXT = exports.TS_EXT = exports.JS_EXT = exports.SCSS_EXT = exports.CSS_EXT = exports.processTypeMap = exports.processTypeEnum = exports.PLATFORMS = void 0;
|
|
4
27
|
exports.FRAMEWORK_MAP = exports.ENTRY = exports.NPM_DIR = exports.TEMP_DIR = exports.SOURCE_DIR = exports.OUTPUT_DIR = void 0;
|
|
5
|
-
const
|
|
6
|
-
const
|
|
28
|
+
const os = __importStar(require("os"));
|
|
29
|
+
const terminal_1 = require("./terminal");
|
|
7
30
|
// eslint-disable-next-line dot-notation
|
|
8
31
|
exports.PLATFORMS = global['PLATFORMS'] = global['PLATFORMS'] || {};
|
|
9
32
|
var processTypeEnum;
|
|
@@ -22,51 +45,51 @@ var processTypeEnum;
|
|
|
22
45
|
processTypeEnum["REMIND"] = "remind";
|
|
23
46
|
})(processTypeEnum = exports.processTypeEnum || (exports.processTypeEnum = {}));
|
|
24
47
|
exports.processTypeMap = {
|
|
25
|
-
["create" /* CREATE */]: {
|
|
48
|
+
["create" /* processTypeEnum.CREATE */]: {
|
|
26
49
|
name: '创建',
|
|
27
50
|
color: 'cyan'
|
|
28
51
|
},
|
|
29
|
-
["compile" /* COMPILE */]: {
|
|
52
|
+
["compile" /* processTypeEnum.COMPILE */]: {
|
|
30
53
|
name: '编译',
|
|
31
54
|
color: 'green'
|
|
32
55
|
},
|
|
33
|
-
["convert" /* CONVERT */]: {
|
|
56
|
+
["convert" /* processTypeEnum.CONVERT */]: {
|
|
34
57
|
name: '转换',
|
|
35
|
-
color: chalk.rgb(255, 136, 0)
|
|
58
|
+
color: terminal_1.chalk.rgb(255, 136, 0)
|
|
36
59
|
},
|
|
37
|
-
["copy" /* COPY */]: {
|
|
60
|
+
["copy" /* processTypeEnum.COPY */]: {
|
|
38
61
|
name: '拷贝',
|
|
39
62
|
color: 'magenta'
|
|
40
63
|
},
|
|
41
|
-
["generate" /* GENERATE */]: {
|
|
64
|
+
["generate" /* processTypeEnum.GENERATE */]: {
|
|
42
65
|
name: '生成',
|
|
43
66
|
color: 'blue'
|
|
44
67
|
},
|
|
45
|
-
["modify" /* MODIFY */]: {
|
|
68
|
+
["modify" /* processTypeEnum.MODIFY */]: {
|
|
46
69
|
name: '修改',
|
|
47
70
|
color: 'yellow'
|
|
48
71
|
},
|
|
49
|
-
["error" /* ERROR */]: {
|
|
72
|
+
["error" /* processTypeEnum.ERROR */]: {
|
|
50
73
|
name: '错误',
|
|
51
74
|
color: 'red'
|
|
52
75
|
},
|
|
53
|
-
["warning" /* WARNING */]: {
|
|
76
|
+
["warning" /* processTypeEnum.WARNING */]: {
|
|
54
77
|
name: '警告',
|
|
55
78
|
color: 'yellowBright'
|
|
56
79
|
},
|
|
57
|
-
["unlink" /* UNLINK */]: {
|
|
80
|
+
["unlink" /* processTypeEnum.UNLINK */]: {
|
|
58
81
|
name: '删除',
|
|
59
82
|
color: 'magenta'
|
|
60
83
|
},
|
|
61
|
-
["start" /* START */]: {
|
|
84
|
+
["start" /* processTypeEnum.START */]: {
|
|
62
85
|
name: '启动',
|
|
63
86
|
color: 'green'
|
|
64
87
|
},
|
|
65
|
-
["reference" /* REFERENCE */]: {
|
|
88
|
+
["reference" /* processTypeEnum.REFERENCE */]: {
|
|
66
89
|
name: '引用',
|
|
67
90
|
color: 'blue'
|
|
68
91
|
},
|
|
69
|
-
["remind" /* REMIND */]: {
|
|
92
|
+
["remind" /* processTypeEnum.REMIND */]: {
|
|
70
93
|
name: '提示',
|
|
71
94
|
color: 'green'
|
|
72
95
|
}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * as chokidar from 'chokidar';
|
|
2
|
+
export * as fs from 'fs-extra';
|
|
3
|
+
export declare const createDebug: (id: string) => any;
|
|
4
|
+
export { default as createBabelRegister, injectDefineConfigHeader } from './babelRegister';
|
|
5
|
+
export * from './constants';
|
|
6
|
+
export * as npm from './npm';
|
|
7
|
+
export { default as createSwcRegister } from './swcRegister';
|
|
8
|
+
export * from './terminal';
|
|
9
|
+
export * from './utils';
|
package/dist/index.js
CHANGED
|
@@ -1,19 +1,45 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
26
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
27
|
+
};
|
|
28
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
29
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
30
|
+
};
|
|
2
31
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
exports.
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
chalk,
|
|
18
|
-
chokidar, createDebug: id => require('debug')(id) });
|
|
19
|
-
exports.default = exports.helper;
|
|
32
|
+
exports.createSwcRegister = exports.npm = exports.injectDefineConfigHeader = exports.createBabelRegister = exports.createDebug = exports.fs = exports.chokidar = void 0;
|
|
33
|
+
exports.chokidar = __importStar(require("chokidar"));
|
|
34
|
+
exports.fs = __importStar(require("fs-extra"));
|
|
35
|
+
const createDebug = (id) => require('debug')(id);
|
|
36
|
+
exports.createDebug = createDebug;
|
|
37
|
+
var babelRegister_1 = require("./babelRegister");
|
|
38
|
+
Object.defineProperty(exports, "createBabelRegister", { enumerable: true, get: function () { return __importDefault(babelRegister_1).default; } });
|
|
39
|
+
Object.defineProperty(exports, "injectDefineConfigHeader", { enumerable: true, get: function () { return babelRegister_1.injectDefineConfigHeader; } });
|
|
40
|
+
__exportStar(require("./constants"), exports);
|
|
41
|
+
exports.npm = __importStar(require("./npm"));
|
|
42
|
+
var swcRegister_1 = require("./swcRegister");
|
|
43
|
+
Object.defineProperty(exports, "createSwcRegister", { enumerable: true, get: function () { return __importDefault(swcRegister_1).default; } });
|
|
44
|
+
__exportStar(require("./terminal"), exports);
|
|
45
|
+
__exportStar(require("./utils"), exports);
|
package/{types → dist}/npm.d.ts
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare type pluginFunction = (pluginName: string, content: string | null, file: string, config:
|
|
1
|
+
declare type pluginFunction = (pluginName: string, content: string | null, file: string, config: Record<string, any>, root: string) => any;
|
|
2
2
|
export interface IInstallOptions {
|
|
3
3
|
dev: boolean;
|
|
4
4
|
peerDependencies?: boolean;
|
package/dist/npm.js
CHANGED
|
@@ -1,4 +1,27 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
2
25
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
26
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
27
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -10,8 +33,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
33
|
};
|
|
11
34
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
35
|
exports.getNpmPkg = exports.getNpmPkgSync = exports.callPluginSync = exports.callPlugin = exports.installNpmPkg = exports.resolveNpmSync = exports.resolveNpm = exports.taroPluginPrefix = void 0;
|
|
13
|
-
const
|
|
14
|
-
const Util = require("./utils");
|
|
36
|
+
const terminal_1 = require("./terminal");
|
|
37
|
+
const Util = __importStar(require("./utils"));
|
|
15
38
|
const PEERS = /UNMET PEER DEPENDENCY ([a-z\-0-9.]+)@(.+)/gm;
|
|
16
39
|
const npmCached = {};
|
|
17
40
|
const erroneous = [];
|
|
@@ -47,7 +70,7 @@ function resolveNpmSync(pluginName, root) {
|
|
|
47
70
|
}
|
|
48
71
|
catch (err) {
|
|
49
72
|
if (err.code === 'MODULE_NOT_FOUND') {
|
|
50
|
-
console.log(chalk.cyan(`缺少npm包${pluginName},开始安装...`));
|
|
73
|
+
console.log(terminal_1.chalk.cyan(`缺少npm包${pluginName},开始安装...`));
|
|
51
74
|
const installOptions = {
|
|
52
75
|
dev: false
|
|
53
76
|
};
|
|
@@ -155,7 +178,7 @@ function getNpmPkg(npmName, root) {
|
|
|
155
178
|
}
|
|
156
179
|
catch (err) {
|
|
157
180
|
if (err.code === 'MODULE_NOT_FOUND') {
|
|
158
|
-
console.log(chalk.cyan(`缺少npm包${npmName},开始安装...`));
|
|
181
|
+
console.log(terminal_1.chalk.cyan(`缺少npm包${npmName},开始安装...`));
|
|
159
182
|
const installOptions = {
|
|
160
183
|
dev: false
|
|
161
184
|
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { CallExpression } from '@swc/core';
|
|
2
|
+
import { Visitor } from '@swc/core/Visitor.js';
|
|
3
|
+
export declare class InjectDefineConfigHeader extends Visitor {
|
|
4
|
+
visitTsType(expression: any): any;
|
|
5
|
+
visitCallExpression(expression: CallExpression): import("@swc/core").Expression;
|
|
6
|
+
}
|
|
7
|
+
interface ICreateSwcRegisterParam {
|
|
8
|
+
only: any;
|
|
9
|
+
plugin?: any;
|
|
10
|
+
}
|
|
11
|
+
export default function createSwcRegister({ only, plugin }: ICreateSwcRegisterParam): void;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import chalk from 'chalk';
|
|
2
|
+
interface ITerminalLinkOptions {
|
|
3
|
+
target?: 'stdout' | 'stderr';
|
|
4
|
+
fallback?: boolean | ((text: string, url: string) => string);
|
|
5
|
+
[key: string]: unknown;
|
|
6
|
+
}
|
|
7
|
+
declare function terminalLink(text: string, url: string, { target, fallback }?: ITerminalLinkOptions): string;
|
|
8
|
+
declare namespace terminalLink {
|
|
9
|
+
var isSupported: any;
|
|
10
|
+
var stderr: typeof terminalLink;
|
|
11
|
+
}
|
|
12
|
+
export { chalk, terminalLink };
|
package/dist/terminal.js
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.terminalLink = exports.chalk = void 0;
|
|
7
|
+
const ansi_escapes_1 = __importDefault(require("ansi-escapes"));
|
|
8
|
+
const chalk_1 = __importDefault(require("chalk"));
|
|
9
|
+
exports.chalk = chalk_1.default;
|
|
10
|
+
const supports_hyperlinks_1 = __importDefault(require("supports-hyperlinks"));
|
|
11
|
+
function terminalLink(text, url, { target = 'stdout', fallback } = {}) {
|
|
12
|
+
if (!supports_hyperlinks_1.default[target]) {
|
|
13
|
+
if (fallback === false)
|
|
14
|
+
return text;
|
|
15
|
+
return typeof fallback === 'function' ? fallback(text, url) : `${text} (\u200B${url}\u200B)`;
|
|
16
|
+
}
|
|
17
|
+
return ansi_escapes_1.default.link(text, url);
|
|
18
|
+
}
|
|
19
|
+
exports.terminalLink = terminalLink;
|
|
20
|
+
terminalLink.isSupported = supports_hyperlinks_1.default.stdout;
|
|
21
|
+
terminalLink.stderr = ((text, url, options = {}) => terminalLink(text, url, Object.assign({ target: 'stderr' }, options)));
|
|
22
|
+
terminalLink.stderr.isSupported = supports_hyperlinks_1.default.stderr;
|
|
@@ -3,22 +3,23 @@ export declare function normalizePath(path: string): string;
|
|
|
3
3
|
export declare const isNodeModule: (filename: string) => boolean;
|
|
4
4
|
export declare function isNpmPkg(name: string): boolean;
|
|
5
5
|
export declare function isQuickAppPkg(name: string): boolean;
|
|
6
|
-
export declare function isAliasPath(name: string, pathAlias?:
|
|
7
|
-
export declare function replaceAliasPath(filePath: string, name: string, pathAlias?:
|
|
6
|
+
export declare function isAliasPath(name: string, pathAlias?: Record<string, any>): boolean;
|
|
7
|
+
export declare function replaceAliasPath(filePath: string, name: string, pathAlias?: Record<string, any>): string;
|
|
8
8
|
export declare function promoteRelativePath(fPath: string): string;
|
|
9
9
|
export declare function resolveStylePath(p: string): string;
|
|
10
10
|
export declare function printLog(type: processTypeEnum, tag: string, filePath?: string): void;
|
|
11
|
-
export declare function recursiveFindNodeModules(filePath: string): string;
|
|
11
|
+
export declare function recursiveFindNodeModules(filePath: string, lastFindPath?: string): string;
|
|
12
12
|
export declare function getUserHomeDir(): string;
|
|
13
13
|
export declare function getTaroPath(): string;
|
|
14
|
-
export declare function getConfig():
|
|
14
|
+
export declare function getConfig(): Record<string, any>;
|
|
15
15
|
export declare function getSystemUsername(): string;
|
|
16
16
|
export declare function shouldUseYarn(): boolean;
|
|
17
17
|
export declare function shouldUseCnpm(): boolean;
|
|
18
18
|
export declare function isEmptyObject(obj: any): boolean;
|
|
19
|
+
export declare function resolveMainFilePath(p: string, extArrs?: string[]): string;
|
|
19
20
|
export declare function resolveScriptPath(p: string): string;
|
|
20
|
-
export declare function generateEnvList(env:
|
|
21
|
-
export declare function generateConstantsList(constants:
|
|
21
|
+
export declare function generateEnvList(env: Record<string, any>): Record<string, any>;
|
|
22
|
+
export declare function generateConstantsList(constants: Record<string, any>): Record<string, any>;
|
|
22
23
|
export declare function cssImports(content: string): string[];
|
|
23
24
|
export declare function emptyDirectory(dirPath: string, opts?: {
|
|
24
25
|
excludes: string[];
|
|
@@ -29,8 +30,7 @@ export declare function getInstalledNpmPkgVersion(pkgName: string, basedir: stri
|
|
|
29
30
|
export declare const recursiveMerge: <T = any>(src: Partial<T>, ...args: (Partial<T> | undefined)[]) => any;
|
|
30
31
|
export declare const mergeVisitors: (src: any, ...args: any[]) => any;
|
|
31
32
|
export declare const applyArrayedVisitors: (obj: any) => any;
|
|
32
|
-
export declare function unzip(zipPath: any): Promise<
|
|
33
|
-
export declare function getBabelConfig(babel: any): any;
|
|
33
|
+
export declare function unzip(zipPath: any): Promise<void>;
|
|
34
34
|
export declare const getAllFilesInFolder: (folder: string, filter?: string[]) => Promise<string[]>;
|
|
35
35
|
export interface FileStat {
|
|
36
36
|
name: string;
|
|
@@ -41,6 +41,6 @@ export declare function readDirWithFileTypes(folder: string): FileStat[];
|
|
|
41
41
|
export declare function extnameExpRegOf(filePath: string): RegExp;
|
|
42
42
|
export declare function addPlatforms(platform: string): void;
|
|
43
43
|
export declare const getModuleDefaultExport: (exports: any) => any;
|
|
44
|
-
export declare
|
|
45
|
-
export declare
|
|
46
|
-
export declare
|
|
44
|
+
export declare function removeHeadSlash(str: string): string;
|
|
45
|
+
export declare function readPageConfig(configPath: string): any;
|
|
46
|
+
export declare function readConfig(configPath: string): any;
|
package/dist/utils.js
CHANGED
|
@@ -1,4 +1,27 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
2
25
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
26
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
27
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -10,14 +33,14 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
33
|
};
|
|
11
34
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
35
|
exports.readConfig = exports.readPageConfig = exports.removeHeadSlash = exports.getModuleDefaultExport = exports.addPlatforms = exports.extnameExpRegOf = exports.readDirWithFileTypes = exports.getAllFilesInFolder = exports.unzip = exports.applyArrayedVisitors = exports.mergeVisitors = exports.recursiveMerge = exports.getInstalledNpmPkgVersion = exports.getInstalledNpmPkgPath = exports.pascalCase = exports.emptyDirectory = exports.cssImports = exports.generateConstantsList = exports.generateEnvList = exports.resolveScriptPath = exports.resolveMainFilePath = exports.isEmptyObject = exports.shouldUseCnpm = exports.shouldUseYarn = exports.getSystemUsername = exports.getConfig = exports.getTaroPath = exports.getUserHomeDir = exports.recursiveFindNodeModules = exports.printLog = exports.resolveStylePath = exports.promoteRelativePath = exports.replaceAliasPath = exports.isAliasPath = exports.isQuickAppPkg = exports.isNpmPkg = exports.isNodeModule = exports.normalizePath = void 0;
|
|
13
|
-
const
|
|
14
|
-
const
|
|
15
|
-
const fs = require("fs-extra");
|
|
36
|
+
const child_process = __importStar(require("child_process"));
|
|
37
|
+
const fs = __importStar(require("fs-extra"));
|
|
16
38
|
const lodash_1 = require("lodash");
|
|
17
|
-
const os = require("os");
|
|
18
|
-
const path = require("path");
|
|
39
|
+
const os = __importStar(require("os"));
|
|
40
|
+
const path = __importStar(require("path"));
|
|
19
41
|
const constants_1 = require("./constants");
|
|
20
|
-
const swcRegister_1 = require("./swcRegister");
|
|
42
|
+
const swcRegister_1 = __importStar(require("./swcRegister"));
|
|
43
|
+
const terminal_1 = require("./terminal");
|
|
21
44
|
const execSync = child_process.execSync;
|
|
22
45
|
function normalizePath(path) {
|
|
23
46
|
return path.replace(/\\/g, '/').replace(/\/{2,}/g, '/');
|
|
@@ -108,7 +131,7 @@ function printLog(type, tag, filePath) {
|
|
|
108
131
|
const padding = '';
|
|
109
132
|
filePath = filePath || '';
|
|
110
133
|
if (typeof typeShow.color === 'string') {
|
|
111
|
-
console.log(chalk[typeShow.color](typeShow.name), padding, tag, padding, filePath);
|
|
134
|
+
console.log(terminal_1.chalk[typeShow.color](typeShow.name), padding, tag, padding, filePath);
|
|
112
135
|
}
|
|
113
136
|
else {
|
|
114
137
|
console.log(typeShow.color(typeShow.name), padding, tag, padding, filePath);
|
|
@@ -127,7 +150,7 @@ function recursiveFindNodeModules(filePath, lastFindPath) {
|
|
|
127
150
|
return nodeModules;
|
|
128
151
|
}
|
|
129
152
|
if (dirname.split(path.sep).length <= 1) {
|
|
130
|
-
printLog("error" /* ERROR */, `在${dirname}目录下`, '未找到node_modules文件夹,请先安装相关依赖库!');
|
|
153
|
+
printLog("error" /* processTypeEnum.ERROR */, `在${dirname}目录下`, '未找到node_modules文件夹,请先安装相关依赖库!');
|
|
131
154
|
return nodeModules;
|
|
132
155
|
}
|
|
133
156
|
return recursiveFindNodeModules(dirname, filePath);
|
package/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,18 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tarojs/helper",
|
|
3
|
-
"version": "3.5.0-beta.
|
|
3
|
+
"version": "3.5.0-beta.5",
|
|
4
4
|
"description": "Taro Helper",
|
|
5
5
|
"main": "index.js",
|
|
6
|
-
"types": "
|
|
7
|
-
"scripts": {
|
|
8
|
-
"build": "run-s clean prod",
|
|
9
|
-
"dev": "tsc -w",
|
|
10
|
-
"prod": "tsc",
|
|
11
|
-
"clean": "rimraf dist",
|
|
12
|
-
"prepack": "npm run build",
|
|
13
|
-
"test": "jest",
|
|
14
|
-
"test:dev": "jest --watch"
|
|
15
|
-
},
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
16
7
|
"repository": {
|
|
17
8
|
"type": "git",
|
|
18
9
|
"url": "git+https://github.com/NervJS/taro.git"
|
|
@@ -42,7 +33,7 @@
|
|
|
42
33
|
"@babel/runtime": "^7.14.5",
|
|
43
34
|
"@swc/core": "^1.2.204",
|
|
44
35
|
"@swc/register": "^0.1.10",
|
|
45
|
-
"
|
|
36
|
+
"ansi-escapes": "^4.3.2",
|
|
46
37
|
"chalk": "3.0.0",
|
|
47
38
|
"chokidar": "^3.3.1",
|
|
48
39
|
"cross-spawn": "^7.0.3",
|
|
@@ -50,8 +41,16 @@
|
|
|
50
41
|
"find-yarn-workspace-root": "2.0.0",
|
|
51
42
|
"fs-extra": "^8.0.1",
|
|
52
43
|
"lodash": "^4.17.21",
|
|
53
|
-
"resolve": "^1.
|
|
44
|
+
"resolve": "^1.22.0",
|
|
45
|
+
"supports-hyperlinks": "^2.2.0",
|
|
54
46
|
"yauzl": "2.10.0"
|
|
55
47
|
},
|
|
56
|
-
"
|
|
57
|
-
|
|
48
|
+
"scripts": {
|
|
49
|
+
"build": "run-s clean prod",
|
|
50
|
+
"dev": "tsc -w",
|
|
51
|
+
"prod": "tsc",
|
|
52
|
+
"clean": "rimraf dist",
|
|
53
|
+
"test": "jest",
|
|
54
|
+
"test:dev": "jest --watch"
|
|
55
|
+
}
|
|
56
|
+
}
|
package/types/babelRegister.d.ts
DELETED
package/types/index.d.ts
DELETED
|
@@ -1,154 +0,0 @@
|
|
|
1
|
-
import fs from 'fs-extra'
|
|
2
|
-
import * as chokidar from 'chokidar'
|
|
3
|
-
import createDebug from 'debug'
|
|
4
|
-
import chalk from 'chalk'
|
|
5
|
-
|
|
6
|
-
import { processTypeEnum, IProcessTypeMap } from './constants'
|
|
7
|
-
import * as utils from './utils'
|
|
8
|
-
import * as npm from './npm'
|
|
9
|
-
import createBabelRegister, { injectDefineConfigHeader } from './babelRegister'
|
|
10
|
-
import createSwcRegister from './swcRegister'
|
|
11
|
-
|
|
12
|
-
export declare enum META_TYPE {
|
|
13
|
-
ENTRY = 'ENTRY',
|
|
14
|
-
PAGE = 'PAGE',
|
|
15
|
-
COMPONENT = 'COMPONENT',
|
|
16
|
-
NORMAL = 'NORMAL',
|
|
17
|
-
STATIC = 'STATIC',
|
|
18
|
-
CONFIG = 'CONFIG',
|
|
19
|
-
EXPORTS = 'EXPORTS'
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export declare enum FRAMEWORK_MAP {
|
|
23
|
-
VUE = 'vue',
|
|
24
|
-
VUE3 = 'vue3',
|
|
25
|
-
REACT = 'react',
|
|
26
|
-
NERV = 'nerv'
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
declare interface helper {
|
|
30
|
-
npm: typeof npm
|
|
31
|
-
createSwcRegister: typeof createSwcRegister
|
|
32
|
-
createBabelRegister: typeof createBabelRegister
|
|
33
|
-
injectDefineConfigHeader: typeof injectDefineConfigHeader
|
|
34
|
-
fs: typeof fs
|
|
35
|
-
chokidar: typeof chokidar
|
|
36
|
-
chalk: typeof chalk
|
|
37
|
-
createDebug: createDebug.Debug & {
|
|
38
|
-
debug: createDebug.Debug
|
|
39
|
-
default: createDebug.Debug
|
|
40
|
-
}
|
|
41
|
-
normalizePath(path: string): string
|
|
42
|
-
isNpmPkg(name: string): boolean
|
|
43
|
-
isQuickAppPkg(name: string): boolean
|
|
44
|
-
isAliasPath(name: string, pathAlias?: object): boolean
|
|
45
|
-
replaceAliasPath(filePath: string, name: string, pathAlias?: object): string
|
|
46
|
-
promoteRelativePath(fPath: string): string
|
|
47
|
-
resolveStylePath(p: string): string
|
|
48
|
-
printLog(type: processTypeEnum, tag: string, filePath?: string | undefined): void
|
|
49
|
-
recursiveFindNodeModules(filePath: string): string
|
|
50
|
-
getUserHomeDir(): string
|
|
51
|
-
getTaroPath(): string
|
|
52
|
-
getConfig(): object
|
|
53
|
-
getSystemUsername(): string
|
|
54
|
-
shouldUseYarn(): boolean
|
|
55
|
-
shouldUseCnpm(): boolean
|
|
56
|
-
isEmptyObject(obj: any): boolean
|
|
57
|
-
resolveScriptPath(p: string): string
|
|
58
|
-
resolveMainFilePath(p: string, extArrs?: string[]): string
|
|
59
|
-
generateEnvList(env: object): object
|
|
60
|
-
generateConstantsList(constants: object): object
|
|
61
|
-
cssImports(content: string): string[]
|
|
62
|
-
emptyDirectory(
|
|
63
|
-
dirPath: string,
|
|
64
|
-
opts?: {
|
|
65
|
-
excludes: string[]
|
|
66
|
-
}
|
|
67
|
-
): void
|
|
68
|
-
getInstalledNpmPkgPath(pkgName: string, basedir: string): string | null
|
|
69
|
-
getInstalledNpmPkgVersion(pkgName: string, basedir: string): string | null
|
|
70
|
-
unzip(zipPath: any): Promise<unknown>
|
|
71
|
-
getBabelConfig(babel: any): any
|
|
72
|
-
readDirWithFileTypes(folder: string): utils.FileStat[]
|
|
73
|
-
extnameExpRegOf(filePath: string): RegExp
|
|
74
|
-
addPlatforms(platform: string): void
|
|
75
|
-
isNodeModule: (filename: string) => boolean
|
|
76
|
-
pascalCase: (str: string) => string
|
|
77
|
-
recursiveMerge: <T = any>(src: Partial<T>, ...args: (Partial<T> | undefined)[]) => any
|
|
78
|
-
mergeVisitors: (src: any, ...args: any[]) => any
|
|
79
|
-
applyArrayedVisitors: (obj: any) => any
|
|
80
|
-
getAllFilesInFolder: (folder: string, filter?: string[]) => Promise<string[]>
|
|
81
|
-
getModuleDefaultExport: (exports: any) => any
|
|
82
|
-
removeHeadSlash: (str: string) => string
|
|
83
|
-
readConfig: (configPath: string) => any
|
|
84
|
-
readPageConfig: (configPath: string) => any
|
|
85
|
-
PLATFORMS: any
|
|
86
|
-
processTypeEnum: typeof processTypeEnum
|
|
87
|
-
processTypeMap: IProcessTypeMap
|
|
88
|
-
CSS_EXT: string[]
|
|
89
|
-
SCSS_EXT: string[]
|
|
90
|
-
JS_EXT: string[]
|
|
91
|
-
TS_EXT: string[]
|
|
92
|
-
UX_EXT: string[]
|
|
93
|
-
SCRIPT_EXT: string[]
|
|
94
|
-
VUE_EXT: string[]
|
|
95
|
-
REG_JS: RegExp
|
|
96
|
-
REG_SCRIPT: RegExp
|
|
97
|
-
REG_TYPESCRIPT: RegExp
|
|
98
|
-
REG_SCRIPTS: RegExp
|
|
99
|
-
REG_VUE: RegExp
|
|
100
|
-
REG_SASS: RegExp
|
|
101
|
-
REG_SASS_SASS: RegExp
|
|
102
|
-
REG_SASS_SCSS: RegExp
|
|
103
|
-
REG_LESS: RegExp
|
|
104
|
-
REG_STYLUS: RegExp
|
|
105
|
-
REG_STYLE: RegExp
|
|
106
|
-
REG_CSS: RegExp
|
|
107
|
-
REG_MEDIA: RegExp
|
|
108
|
-
REG_IMAGE: RegExp
|
|
109
|
-
REG_FONT: RegExp
|
|
110
|
-
REG_JSON: RegExp
|
|
111
|
-
REG_UX: RegExp
|
|
112
|
-
REG_TEMPLATE: RegExp
|
|
113
|
-
REG_WXML_IMPORT: RegExp
|
|
114
|
-
REG_URL: RegExp
|
|
115
|
-
CSS_IMPORT_REG: RegExp
|
|
116
|
-
NODE_MODULES: 'node_modules'
|
|
117
|
-
NODE_MODULES_REG: RegExp
|
|
118
|
-
PROJECT_CONFIG: 'config/index'
|
|
119
|
-
DEVICE_RATIO: {
|
|
120
|
-
640: number
|
|
121
|
-
750: number
|
|
122
|
-
828: number
|
|
123
|
-
}
|
|
124
|
-
FILE_PROCESSOR_MAP: {
|
|
125
|
-
'.js': string
|
|
126
|
-
'.scss': string
|
|
127
|
-
'.sass': string
|
|
128
|
-
'.less': string
|
|
129
|
-
'.styl': string
|
|
130
|
-
}
|
|
131
|
-
META_TYPE: typeof META_TYPE
|
|
132
|
-
FRAMEWORK_MAP: typeof FRAMEWORK_MAP
|
|
133
|
-
UPDATE_PACKAGE_LIST: string[]
|
|
134
|
-
taroJsComponents: '@tarojs/components'
|
|
135
|
-
taroJsQuickAppComponents: '@tarojs/components-qa'
|
|
136
|
-
taroJsFramework: '@tarojs/taro'
|
|
137
|
-
taroJsRedux: '@tarojs/redux'
|
|
138
|
-
taroJsMobx: '@tarojs/mobx'
|
|
139
|
-
taroJsMobxCommon: '@tarojs/mobx-common'
|
|
140
|
-
DEVICE_RATIO_NAME: 'deviceRatio'
|
|
141
|
-
isWindows: boolean
|
|
142
|
-
DEFAULT_TEMPLATE_SRC: 'github:NervJS/taro-project-templates#v3.5'
|
|
143
|
-
DEFAULT_TEMPLATE_SRC_GITEE: 'direct:https://gitee.com/o2team/taro-project-templates.git#v3.5'
|
|
144
|
-
TARO_CONFIG_FOLDER: '.taro3.5'
|
|
145
|
-
TARO_BASE_CONFIG: 'index.json'
|
|
146
|
-
OUTPUT_DIR: 'dist'
|
|
147
|
-
SOURCE_DIR: 'src'
|
|
148
|
-
TEMP_DIR: '.temp'
|
|
149
|
-
NPM_DIR: 'npm'
|
|
150
|
-
ENTRY: 'app'
|
|
151
|
-
}
|
|
152
|
-
declare const helper: helper
|
|
153
|
-
// @ts-ignore
|
|
154
|
-
export = helper
|
package/types/swcRegister.d.ts
DELETED