@dcloudio/uni-cli-shared 3.0.0-alpha-3060320220919003 → 3.0.0-alpha-3060320220919005

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/fs.js CHANGED
@@ -1,23 +1,18 @@
1
1
  "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
2
5
  Object.defineProperty(exports, "__esModule", { value: true });
3
6
  exports.emptyDir = void 0;
4
- const path_1 = require("path");
5
- const fs_extra_1 = require("fs-extra");
6
- const fs_1 = require("fs");
7
+ const fs_1 = __importDefault(require("fs"));
8
+ const path_1 = __importDefault(require("path"));
7
9
  function emptyDir(dir, skip = []) {
8
- for (const file of (0, fs_extra_1.readdirSync)(dir)) {
10
+ for (const file of fs_1.default.readdirSync(dir)) {
9
11
  if (skip.includes(file)) {
10
12
  continue;
11
13
  }
12
- const abs = (0, path_1.resolve)(dir, file);
13
- // baseline is Node 12 so can't use rmSync :(
14
- if ((0, fs_extra_1.lstatSync)(abs).isDirectory()) {
15
- (0, fs_extra_1.emptyDirSync)(abs);
16
- (0, fs_1.rmdirSync)(abs);
17
- }
18
- else {
19
- (0, fs_extra_1.unlinkSync)(abs);
20
- }
14
+ // node >= 14.14.0
15
+ fs_1.default.rmSync(path_1.default.resolve(dir, file), { recursive: true, force: true });
21
16
  }
22
17
  }
23
18
  exports.emptyDir = emptyDir;
@@ -18,6 +18,7 @@ function parseMiniProgramPagesJson(jsonStr, platform, options = { subpackages: f
18
18
  exports.parseMiniProgramPagesJson = parseMiniProgramPagesJson;
19
19
  const NON_APP_JSON_KEYS = [
20
20
  'unipush',
21
+ 'secureNetwork',
21
22
  'usingComponents',
22
23
  'optimization',
23
24
  'scopedSlotsCompiler',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcloudio/uni-cli-shared",
3
- "version": "3.0.0-alpha-3060320220919003",
3
+ "version": "3.0.0-alpha-3060320220919005",
4
4
  "description": "@dcloudio/uni-cli-shared",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -8,6 +8,9 @@
8
8
  "dist",
9
9
  "lib"
10
10
  ],
11
+ "engines": {
12
+ "node": "^14.18.0 || >=16.0.0"
13
+ },
11
14
  "repository": {
12
15
  "type": "git",
13
16
  "url": "git+https://github.com/dcloudio/uni-app.git",
@@ -22,8 +25,8 @@
22
25
  "@babel/core": "^7.17.9",
23
26
  "@babel/parser": "^7.17.9",
24
27
  "@babel/types": "^7.17.0",
25
- "@dcloudio/uni-i18n": "3.0.0-alpha-3060320220919003",
26
- "@dcloudio/uni-shared": "3.0.0-alpha-3060320220919003",
28
+ "@dcloudio/uni-i18n": "3.0.0-alpha-3060320220919005",
29
+ "@dcloudio/uni-shared": "3.0.0-alpha-3060320220919005",
27
30
  "@intlify/core-base": "9.1.9",
28
31
  "@intlify/shared": "9.1.9",
29
32
  "@intlify/vue-devtools": "9.1.9",
@@ -33,7 +36,7 @@
33
36
  "@vue/compiler-sfc": "3.2.39",
34
37
  "@vue/server-renderer": "3.2.39",
35
38
  "@vue/shared": "3.2.39",
36
- "autoprefixer": "^10.4.11",
39
+ "autoprefixer": "^10.4.12",
37
40
  "base64url": "^3.0.1",
38
41
  "chokidar": "^3.5.3",
39
42
  "compare-versions": "^3.6.0",