sg-frontend-starter 1.0.4 → 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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/postinstall.js +4 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sg-frontend-starter",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "dev": "vite",
package/postinstall.js CHANGED
@@ -6,8 +6,8 @@ const __filename = fileURLToPath(import.meta.url);
6
6
  const __dirname = path.dirname(__filename);
7
7
 
8
8
  // Az sg-frontend-starter modulban belül keresünk
9
- const source = path.join(__dirname, 'node_modules', 'sg-frontend-starter');
10
- // A végső cél: a projekt gyökeréhez képest
9
+ const source = path.join(__dirname);
10
+ // A végső cél: a node_modules/sg-frontend-starter szülőjéhez képest (ahol az npm install fut)
11
11
  const projectRoot = path.join(__dirname, '..', '..');
12
12
 
13
13
  if (fs.existsSync(source)) {
@@ -15,8 +15,8 @@ if (fs.existsSync(source)) {
15
15
  const files = fs.readdirSync(source);
16
16
 
17
17
  files.forEach(file => {
18
- // Kihagyja a node_modules-t és package.json-t ha szükséges
19
- if (file !== 'node_modules' && file !== 'package.json') {
18
+ // Kihagyja a node_modules-t, package.json-t és magát a postinstall.js-t
19
+ if (file !== 'node_modules' && file !== 'package.json' && file !== 'postinstall.js') {
20
20
  const srcPath = path.join(source, file);
21
21
  const destPath = path.join(projectRoot, file);
22
22