codeplay-common 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/package.json +1 -1
- package/scripts/sync-files.js +4 -0
package/package.json
CHANGED
package/scripts/sync-files.js
CHANGED
|
@@ -5,6 +5,10 @@ const projectRoot = process.cwd(); // Your project's root
|
|
|
5
5
|
const commonBuildPath = path.join(__dirname, "../files"); // Path to common files
|
|
6
6
|
const packageJsonPath = path.join(projectRoot, "package.json");
|
|
7
7
|
|
|
8
|
+
console.log("PROJECT ROOT IS ",projectRoot)
|
|
9
|
+
console.log("PROJECT ROOT IS PACKAGE.JSON",packageJsonPath)
|
|
10
|
+
|
|
11
|
+
|
|
8
12
|
// Function to get the latest versioned file
|
|
9
13
|
function getLatestFile(prefix) {
|
|
10
14
|
const files = fs.readdirSync(commonBuildPath).filter(file => file.startsWith(prefix));
|