@tarojs/helper 3.5.0-beta.4 → 3.5.0-theta.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.
package/dist/constants.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  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
- exports.FRAMEWORK_MAP = exports.ENTRY = exports.NPM_DIR = exports.TEMP_DIR = exports.SOURCE_DIR = exports.OUTPUT_DIR = void 0;
4
+ exports.FRAMEWORK_EXT_MAP = exports.FRAMEWORK_MAP = exports.ENTRY = exports.NPM_DIR = exports.TEMP_DIR = exports.SOURCE_DIR = exports.OUTPUT_DIR = void 0;
5
5
  const chalk = require("chalk");
6
6
  const os = require("os");
7
7
  // eslint-disable-next-line dot-notation
@@ -184,3 +184,9 @@ var FRAMEWORK_MAP;
184
184
  FRAMEWORK_MAP["REACT"] = "react";
185
185
  FRAMEWORK_MAP["NERV"] = "nerv";
186
186
  })(FRAMEWORK_MAP = exports.FRAMEWORK_MAP || (exports.FRAMEWORK_MAP = {}));
187
+ exports.FRAMEWORK_EXT_MAP = {
188
+ vue: exports.VUE_EXT,
189
+ vue3: exports.VUE_EXT,
190
+ react: exports.SCRIPT_EXT,
191
+ nerv: exports.SCRIPT_EXT
192
+ };
package/index.js CHANGED
@@ -1,2 +1,3 @@
1
1
  module.exports = require('./dist/index.js').default
2
+
2
3
  module.exports.default = module.exports
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tarojs/helper",
3
- "version": "3.5.0-beta.4",
3
+ "version": "3.5.0-theta.0",
4
4
  "description": "Taro Helper",
5
5
  "main": "index.js",
6
6
  "types": "types/index.d.ts",
@@ -9,7 +9,7 @@
9
9
  "dev": "tsc -w",
10
10
  "prod": "tsc",
11
11
  "clean": "rimraf dist",
12
- "prepack": "npm run build",
12
+ "prepack": "pnpm run build",
13
13
  "test": "jest",
14
14
  "test:dev": "jest --watch"
15
15
  },
@@ -42,7 +42,6 @@
42
42
  "@babel/runtime": "^7.14.5",
43
43
  "@swc/core": "^1.2.204",
44
44
  "@swc/register": "^0.1.10",
45
- "@tarojs/taro": "3.5.0-beta.4",
46
45
  "chalk": "3.0.0",
47
46
  "chokidar": "^3.3.1",
48
47
  "cross-spawn": "^7.0.3",
@@ -50,8 +49,7 @@
50
49
  "find-yarn-workspace-root": "2.0.0",
51
50
  "fs-extra": "^8.0.1",
52
51
  "lodash": "^4.17.21",
53
- "resolve": "^1.6.0",
52
+ "resolve": "^1.22.0",
54
53
  "yauzl": "2.10.0"
55
- },
56
- "gitHead": "7aca7841ed7e2af1b182ff5d24e91f44730ce783"
54
+ }
57
55
  }
package/types/index.d.ts CHANGED
@@ -148,6 +148,7 @@ declare interface helper {
148
148
  TEMP_DIR: '.temp'
149
149
  NPM_DIR: 'npm'
150
150
  ENTRY: 'app'
151
+ FRAMEWORK_EXT_MAP: Record<FRAMEWORK_MAP, string[]>
151
152
  }
152
153
  declare const helper: helper
153
154
  // @ts-ignore
package/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2018
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.