@ovipakla/gm-cli 2.1.0 → 2.1.1

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/app.js +3 -13
  2. package/package.json +1 -1
package/app.js CHANGED
@@ -1,4 +1,4 @@
1
- #! /usr/bin/env node
1
+ #! /usr/bin/env node
2
2
 
3
3
  import { watch, sync } from './GMFileWatcher.js';
4
4
  import path from 'node:path';
@@ -337,17 +337,6 @@ program
337
337
  console.log(`📝 Backup yyp:`, yypOldPath);
338
338
  fs.copyFileSync(yypPath, yypOldPath);
339
339
 
340
-
341
- const vsDevCmdPath = envMap.get("GM_CLI_VS_DEV_CMD_PATH")
342
- if (vsDevCmdPath !== undefined) {
343
- const localSettings = path.join(path.normalize(path.dirname(yypPath)), "local_settings.json").replaceAll("\\", "/")
344
- const localSettingsJson = {
345
- "machine.Platform Settings.Windows.visual_studio_path": vsDevCmdPath
346
- }
347
- fs.writeFileSync(localSettings, JSON.stringify(localSettingsJson, null, 2), "utf8");
348
- }
349
-
350
-
351
340
  const datafilesPath = path.join(projectPath, "datafiles").replaceAll("\\", "/")
352
341
  const datafiles = getFilesRecursively(datafilesPath, datafilesPath)
353
342
  const replaced = yyp.replace(/"IncludedFiles"\s*:\s*\[(.*?)\]/s, `"IncludedFiles":[
@@ -503,12 +492,13 @@ program
503
492
  log_info "Clean '$project_path/tmp/igor'"
504
493
  rm -rf $project_path/tmp/igor
505
494
 
506
- log_info "Execute shell command:\n\\\e[33m$igor_path \\ \n --runtimePath="$runtime_path" \\ \n --runtime=$runtime \\ \n --project="$\{project_path\}/$\{project_yyp\}" \\ \n --projectool="$\{project_tool\}" \\ \n -- $target Clean\n\\\e[0m"
495
+ log_info "Execute shell command:\n\\\e[33m$igor_path \\ \n --runtimePath="$runtime_path" \\ \n --runtime=$runtime \\ \n --project="$\{project_path\}/$\{project_yyp\}" \\ \n --projectool="$\{project_tool\}" \\ \n --uf="$user_path" \\ \n -- $target Clean\n\\\e[0m"
507
496
  $igor_path \
508
497
  --runtimePath="$runtime_path" \
509
498
  --runtime=$runtime \
510
499
  --project="$\{project_path\}/$\{project_yyp\}" \
511
500
  --projectool="$\{project_tool\}" \
501
+ --uf="$user_path" \
512
502
  -- $target Clean | GREP_COLORS='mt=01;31' grep --color=always -E 'Error : |$'
513
503
  fi
514
504
 
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "2.1.0",
6
+ "version": "2.1.1",
7
7
  "description": "Gamemaker CLI toolkit. Watch & sync gml sources with yyp project.",
8
8
  "main": "app.js",
9
9
  "scripts": {},