sg-frontend-starter 1.0.16 → 1.0.17

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/package.json +1 -1
  2. package/postinstall.js +11 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sg-frontend-starter",
3
- "version": "1.0.16",
3
+ "version": "1.0.17",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "dev": "vite",
package/postinstall.js CHANGED
@@ -59,6 +59,17 @@ if (fs.existsSync(source)) {
59
59
  console.log('✓ sg-frontend-starter tartalma sikeresen áthelyezve');
60
60
  }
61
61
 
62
+ // Cseréljük le a package.json-t a package.json.dev tartalmával
63
+ if (fs.existsSync(devPackageJson)) {
64
+ try {
65
+ fs.copyFileSync(devPackageJson, targetPackageJson);
66
+ fs.unlinkSync(devPackageJson); // Töröljük a .dev fájlt
67
+ console.log('✓ package.json frissítve a template verzióval');
68
+ } catch (error) {
69
+ console.error('Hiba a package.json cseréje során:', error);
70
+ }
71
+ }
72
+
62
73
  // Segédfunkció a mappák rekurzív másolásához
63
74
  function copyDir(src, dest) {
64
75
  fs.mkdirSync(dest, { recursive: true });