@kengic/uni 0.6.3-beta.68 → 0.6.3-beta.69
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 +1 -1
- package/script/postinstall.mjs +4 -4
package/package.json
CHANGED
package/script/postinstall.mjs
CHANGED
|
@@ -68,7 +68,7 @@ if (json01 && json02) {
|
|
|
68
68
|
//----------------------------------------------------------------------------------------------------
|
|
69
69
|
// vite-plugin-uni 中的编译器版本号不对, 手动修复
|
|
70
70
|
{
|
|
71
|
-
const filepath = `${
|
|
71
|
+
const filepath = `${PROJECT_DIR_02}/node_modules/@dcloudio/vite-plugin-uni/package.json`;
|
|
72
72
|
const json = JSON.parse(fs.readFileSync(filepath, { encoding: 'utf8' }));
|
|
73
73
|
const version = json['version'].split('-')[json['version'].split('-').length - 1].substring(0, 5).replaceAll('0', '.');
|
|
74
74
|
const compilerVersion = json['uni-app']['compilerVersion'];
|
|
@@ -80,7 +80,7 @@ if (json01 && json02) {
|
|
|
80
80
|
|
|
81
81
|
// 移除 uni-cloud 的广告
|
|
82
82
|
{
|
|
83
|
-
const filepath = `${
|
|
83
|
+
const filepath = `${PROJECT_DIR_02}/node_modules/.pnpm/node_modules/@dcloudio/uni-cloud/lib/uni.plugin.js`;
|
|
84
84
|
let text = fs.readFileSync(filepath, { encoding: 'utf8' });
|
|
85
85
|
text = text.replaceAll(/'欢迎(.*)?'/g, '');
|
|
86
86
|
fs.writeFileSync(filepath, text, {});
|
|
@@ -89,7 +89,7 @@ if (json01 && json02) {
|
|
|
89
89
|
// 修改 uni-cli-shared 控制台的消息
|
|
90
90
|
{
|
|
91
91
|
{
|
|
92
|
-
const filepath = `${
|
|
92
|
+
const filepath = `${PROJECT_DIR_02}/node_modules/@dcloudio/uni-cli-shared/dist/messages/en.js`;
|
|
93
93
|
let text = fs.readFileSync(filepath, { encoding: 'utf8' });
|
|
94
94
|
text = text.replaceAll("'DONE Build complete.'", "'打包完成'");
|
|
95
95
|
text = text.replaceAll("'Compiling...'", "'正在编译...'");
|
|
@@ -105,7 +105,7 @@ if (json01 && json02) {
|
|
|
105
105
|
}
|
|
106
106
|
|
|
107
107
|
{
|
|
108
|
-
const filepath = `${
|
|
108
|
+
const filepath = `${PROJECT_DIR_02}/node_modules/@dcloudio/uni-cli-shared/dist/messages/zh_CN.js`;
|
|
109
109
|
let text = fs.readFileSync(filepath, { encoding: 'utf8' });
|
|
110
110
|
text = text.replaceAll("'DONE Build complete.'", "'打包完成'");
|
|
111
111
|
text = text.replaceAll("'Compiling...'", "'正在编译...'");
|