codeplay-common 1.0.51 → 1.0.53
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 -2
- package/scripts/uninstall.js +14 -2
package/package.json
CHANGED
package/scripts/uninstall.js
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
// Define file prefixes to delete
|
|
2
|
+
const filePrefixes = [
|
|
3
|
+
"add-splash-screen",
|
|
4
|
+
"setSplashAnimation",
|
|
5
|
+
"codeplayBeforeBuild",
|
|
6
|
+
"finalrelease"
|
|
7
|
+
];
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
1
13
|
const fs = require("fs");
|
|
2
14
|
const path = require("path");
|
|
3
15
|
|
|
@@ -6,6 +18,7 @@ const commonBuildPath = path.join(__dirname, "../files"); // Path where files we
|
|
|
6
18
|
|
|
7
19
|
process.stdout.write("🚀 Uninstalling: Removing old and copied files...");
|
|
8
20
|
|
|
21
|
+
|
|
9
22
|
// Helper function to extract version from filename
|
|
10
23
|
const extractVersion = (filename) => {
|
|
11
24
|
const match = filename.match(/-(\d+\.\d+)\.js$/);
|
|
@@ -34,8 +47,7 @@ filesInProject.forEach(file => {
|
|
|
34
47
|
});
|
|
35
48
|
|
|
36
49
|
|
|
37
|
-
|
|
38
|
-
const filePrefixes = ["add-splash-screen", "setSplashAnimation", "codeplayBeforeBuild"];
|
|
50
|
+
|
|
39
51
|
|
|
40
52
|
// Step 1: Find all matching files in the project directory
|
|
41
53
|
const filesInProject1 = fs.readdirSync(projectRoot)
|