weapp-vite 1.3.2 → 1.3.3

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.
@@ -3,7 +3,7 @@ import logger from "@weapp-core/logger";
3
3
  var logger_default = logger;
4
4
 
5
5
  // package.json
6
- var version = "1.3.2";
6
+ var version = "1.3.3";
7
7
 
8
8
  // src/constants.ts
9
9
  var VERSION = version;
@@ -327,7 +327,6 @@ var CompilerContext = class {
327
327
  projectConfig: {},
328
328
  type: "app",
329
329
  inlineConfig: {},
330
- mode: "",
331
330
  packageJson: {}
332
331
  });
333
332
  this.cwd = cwd;
@@ -556,7 +555,7 @@ var CompilerContext = class {
556
555
  for (const dep of dependencies) {
557
556
  const id = `${dep}/package.json`;
558
557
  const targetJson = require2(id);
559
- if ("miniprogram" in targetJson && targetJson.miniprogram) {
558
+ if (Reflect.has(targetJson, "miniprogram") && targetJson.miniprogram) {
560
559
  const targetJsonPath = require2.resolve(id);
561
560
  await fs6.copy(
562
561
  path5.resolve(
package/dist/cli.cjs CHANGED
@@ -32,7 +32,7 @@ var import_cac = require("cac");
32
32
  var import_weapp_ide_cli = require("weapp-ide-cli");
33
33
 
34
34
  // package.json
35
- var version = "1.3.2";
35
+ var version = "1.3.3";
36
36
 
37
37
  // src/constants.ts
38
38
  var VERSION = version;
@@ -360,7 +360,6 @@ var CompilerContext = class {
360
360
  projectConfig: {},
361
361
  type: "app",
362
362
  inlineConfig: {},
363
- mode: "",
364
363
  packageJson: {}
365
364
  });
366
365
  this.cwd = cwd;
@@ -589,7 +588,7 @@ var CompilerContext = class {
589
588
  for (const dep of dependencies) {
590
589
  const id = `${dep}/package.json`;
591
590
  const targetJson = require2(id);
592
- if ("miniprogram" in targetJson && targetJson.miniprogram) {
591
+ if (Reflect.has(targetJson, "miniprogram") && targetJson.miniprogram) {
593
592
  const targetJsonPath = require2.resolve(id);
594
593
  await import_fs_extra6.default.copy(
595
594
  import_pathe5.default.resolve(
package/dist/cli.mjs CHANGED
@@ -2,7 +2,7 @@ import {
2
2
  VERSION,
3
3
  createCompilerContext,
4
4
  logger_default
5
- } from "./chunk-455ARQ2V.mjs";
5
+ } from "./chunk-EA52OCYF.mjs";
6
6
  import "./chunk-444MQSSG.mjs";
7
7
 
8
8
  // src/cli.ts
package/dist/index.cjs CHANGED
@@ -364,7 +364,6 @@ var CompilerContext = class {
364
364
  projectConfig: {},
365
365
  type: "app",
366
366
  inlineConfig: {},
367
- mode: "",
368
367
  packageJson: {}
369
368
  });
370
369
  this.cwd = cwd;
@@ -593,7 +592,7 @@ var CompilerContext = class {
593
592
  for (const dep of dependencies) {
594
593
  const id = `${dep}/package.json`;
595
594
  const targetJson = require2(id);
596
- if ("miniprogram" in targetJson && targetJson.miniprogram) {
595
+ if (Reflect.has(targetJson, "miniprogram") && targetJson.miniprogram) {
597
596
  const targetJsonPath = require2.resolve(id);
598
597
  await import_fs_extra6.default.copy(
599
598
  import_pathe5.default.resolve(
package/dist/index.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  CompilerContext,
3
3
  createCompilerContext
4
- } from "./chunk-455ARQ2V.mjs";
4
+ } from "./chunk-EA52OCYF.mjs";
5
5
  import "./chunk-444MQSSG.mjs";
6
6
  export {
7
7
  CompilerContext,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "weapp-vite",
3
3
  "type": "module",
4
- "version": "1.3.2",
4
+ "version": "1.3.3",
5
5
  "description": "weapp-vite 一个现代化的小程序打包工具",
6
6
  "author": "ice breaker <1324318532@qq.com>",
7
7
  "license": "MIT",
@@ -63,8 +63,8 @@
63
63
  "vite-tsconfig-paths": "^5.0.1",
64
64
  "@weapp-core/init": "^1.0.5",
65
65
  "@weapp-core/logger": "^1.0.1",
66
- "@weapp-core/shared": "^1.0.1",
67
- "weapp-ide-cli": "^2.0.6"
66
+ "weapp-ide-cli": "^2.0.6",
67
+ "@weapp-core/shared": "^1.0.1"
68
68
  },
69
69
  "publishConfig": {
70
70
  "access": "public",