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.
- package/package.json +1 -1
- package/postinstall.js +4 -4
package/package.json
CHANGED
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
|
|
10
|
-
// A végső cél: a
|
|
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
|
|
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
|
|