@vamship/build-utils 2.2.0 → 2.2.2
Sign up to get free protection for your applications and to get access to all the features.
package/package.json
CHANGED
package/src/project.js
CHANGED
@@ -36,7 +36,7 @@ export class CopyFilesTaskBuilder extends TaskBuilder {
|
|
36
36
|
}
|
37
37
|
|
38
38
|
const { rootDir } = project;
|
39
|
-
const dirs = ['src', 'test'];
|
39
|
+
const dirs = ['src', 'test', 'scripts'];
|
40
40
|
const extensions = ['json'].concat(project.getStaticFilePatterns());
|
41
41
|
const containerBuildFiles = project
|
42
42
|
.getContainerTargets()
|
@@ -56,7 +56,6 @@ export class CopyFilesTaskBuilder extends TaskBuilder {
|
|
56
56
|
'package.json',
|
57
57
|
'LICENSE',
|
58
58
|
'README.md',
|
59
|
-
'_scripts/*',
|
60
59
|
'nginx.conf',
|
61
60
|
'.env',
|
62
61
|
'.npmignore',
|
@@ -65,6 +64,7 @@ export class CopyFilesTaskBuilder extends TaskBuilder {
|
|
65
64
|
|
66
65
|
const paths = dirs
|
67
66
|
.map((dir) => rootDir.getChild(dir))
|
67
|
+
.filter((dir) => dir.exists())
|
68
68
|
.map((dir) => extensions.map((ext) => dir.getAllFilesGlob(ext)))
|
69
69
|
.reduce((result, arr) => result.concat(arr), [])
|
70
70
|
.concat(extras.map((item) => rootDir.getFileGlob(item)));
|