@polytoria-ts/pojo 1.0.0 → 1.0.2

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.
Files changed (2) hide show
  1. package/index.mjs +3 -1
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -104,7 +104,9 @@ function handleAdd(filePath) {
104
104
  const gameScriptPath = path.join(GAME_DIR, "scripts", hierarchy.join(path.sep) + ".luau");
105
105
  const editorScriptPath = path.join("scripts", hierarchy.join(path.sep) + ".luau");
106
106
  console.log(`cp ${filePath} ${gameScriptPath}`)
107
- fs.cpSync(filePath, gameScriptPath);
107
+
108
+ fs.mkdirSync(path.dirname(gameScriptPath), { recursive: true });
109
+ fs.copyFileSync(filePath, gameScriptPath);
108
110
 
109
111
  const existingWorkItem = work.find(workItem => workItem.hierarchy.join("/") === hierarchy.join("/"));
110
112
  if (existingWorkItem) return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@polytoria-ts/pojo",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "Synchronization server for Polytoria's Pojo extension.",
5
5
  "type": "commonjs",
6
6
  "main": "index.js",