@kengic/uni 0.6.3-beta.54 → 0.6.3-beta.56

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.54",
3
+ "version": "0.6.3-beta.56",
4
4
  "scripts": {
5
5
  "postinstall": "node ./script/postinstall.js"
6
6
  },
@@ -1,9 +1,16 @@
1
- // 时间
1
+ import fs from 'fs';
2
+
3
+ /**
4
+ * 获取当前时间.
5
+ */
2
6
  function now() {
3
7
  return new Date(Date.now() + 1000 * 60 * 60 * 8).toISOString().substring(0, 23).replace('T', ' ');
4
8
  }
5
9
 
6
- console.error(`[${now()}] [@kengic/uni] POST INSTALL 111`);
7
- console.log(`[${now()}] [@kengic/uni] POST INSTALL 222`);
10
+ console.log(`[${now()}] [@kengic/uni] POST INSTALL`);
8
11
  console.log(`[${now()}] [@kengic/uni] POST INSTALL ${process.cwd()}`);
9
- process.stdout.write(`[${now()}] [@kengic/uni] POST INSTALL 333`);
12
+
13
+ const { default: json01 } = await import('../../../package.json');
14
+ console.log('333', json01.name);
15
+
16
+ fs.writeFileSync('../../../package.json', `${JSON.stringify(json01, null, 4)}\n`, {});