uxos 1.0.3 โ 1.0.5
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/cli.js +4 -8
- package/package.json +1 -1
package/cli.js
CHANGED
|
@@ -4,8 +4,8 @@ const fs = require('fs');
|
|
|
4
4
|
const path = require('path');
|
|
5
5
|
|
|
6
6
|
const targetDir = process.cwd();
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
const packageJson = require(path.join(__dirname, 'package.json'));
|
|
8
|
+
const version = packageJson.version;
|
|
9
9
|
|
|
10
10
|
// ๆท่ดๆๆๆไปถๅฐ้กน็ฎ็ฎๅฝ
|
|
11
11
|
const copyFiles = [
|
|
@@ -28,11 +28,7 @@ copyFiles.forEach(([src, dest]) => {
|
|
|
28
28
|
|
|
29
29
|
const content = fs.readFileSync(srcPath, 'utf8');
|
|
30
30
|
fs.writeFileSync(destPath, content, 'utf8');
|
|
31
|
-
console.log(`โ
ๅทฒๅๅปบ: ${dest}`);
|
|
32
31
|
});
|
|
33
32
|
|
|
34
|
-
|
|
35
|
-
console.log(
|
|
36
|
-
console.log('โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ');
|
|
37
|
-
console.log('๐ workflows/init.md');
|
|
38
|
-
console.log('โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ\n');
|
|
33
|
+
// ็บฏๆง่กๆไปค๏ผๆ ้ขๅค่ฏดๆ
|
|
34
|
+
console.log(`\n[UXOS v${version}] Read workflows/init.md`);
|