@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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vamship/build-utils",
3
- "version": "2.2.0",
3
+ "version": "2.2.2",
4
4
  "description": "Utility library for build tooling",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
package/src/project.js CHANGED
@@ -107,6 +107,7 @@ export class Project {
107
107
  api: null,
108
108
  },
109
109
  infra: null,
110
+ scripts: null,
110
111
  working: {
111
112
  src: null,
112
113
  test: {
@@ -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)));