@kengic/uni 0.6.3-beta.61 → 0.6.3-beta.62

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kengic/uni",
3
- "version": "0.6.3-beta.61",
3
+ "version": "0.6.3-beta.62",
4
4
  "scripts": {
5
5
  "postinstall": "node ./script/postinstall.mjs"
6
6
  },
@@ -8,18 +8,18 @@ function now() {
8
8
  }
9
9
 
10
10
  /**
11
- * 项目目录.
11
+ * 项目的根目录.
12
12
  */
13
13
  const PROJECT_DIR = '../../../../../../..';
14
14
 
15
15
  console.log(`${now()}`);
16
- console.log(`${now()}${process.cwd()}`);
16
+ console.log(`${now()}当前目录 | ${process.cwd()}`);
17
17
 
18
18
  let json01 = null;
19
19
 
20
20
  try {
21
21
  console.log(`${now()}开始读取组件的 package.json`);
22
- json01 = (await import(`../package.json`)).default;
22
+ json01 = (await import(`../package.json`, { with: { type: 'json' } })).default;
23
23
  console.log(`${now()}成功读取组件的 package.json`);
24
24
  } catch (e) {
25
25
  console.log(`${now()}失败读取组件的 package.json`);
@@ -30,7 +30,7 @@ let json02 = null;
30
30
 
31
31
  try {
32
32
  console.log(`${now()}开始读取项目的 package.json`);
33
- json02 = (await import(`${PROJECT_DIR}/package.json`)).default;
33
+ json02 = (await import(`${PROJECT_DIR}/package.json`, { with: { type: 'json' } })).default;
34
34
  console.log(`${now()}成功读取项目的 package.json`);
35
35
  } catch (e) {
36
36
  console.log(`${now()}失败读取项目的 package.json`);