@catladder/pipeline 0.0.0-inventory-2f61feef → 0.0.0-jdbc-e0855190

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 (99) hide show
  1. package/dist/build/base/createBuildJob.d.ts +0 -1
  2. package/dist/build/base/createBuildJob.js +3 -6
  3. package/dist/build/custom/buildJob.d.ts +3 -0
  4. package/dist/build/custom/buildJob.js +101 -0
  5. package/dist/build/custom/index.d.ts +3 -0
  6. package/dist/build/custom/index.js +47 -0
  7. package/dist/build/index.d.ts +2 -1
  8. package/dist/build/index.js +8 -0
  9. package/dist/build/node/buildJob.js +6 -11
  10. package/dist/build/node/cache.js +8 -1
  11. package/dist/build/node/yarn.js +1 -1
  12. package/dist/build/types.d.ts +23 -2
  13. package/dist/bundles/catladder-gitlab/index.js +1100 -353
  14. package/dist/constants.js +1 -1
  15. package/dist/context/getEnvConfig.d.ts +2 -0
  16. package/dist/context/getEnvConfig.js +26 -0
  17. package/dist/context/getEnvType.d.ts +4 -0
  18. package/dist/context/getEnvType.js +18 -0
  19. package/dist/context/getEnvironment.d.ts +2 -4
  20. package/dist/context/getEnvironment.js +14 -201
  21. package/dist/context/getEnvironmentContext.d.ts +4 -0
  22. package/dist/context/getEnvironmentContext.js +36 -0
  23. package/dist/context/getEnvironmentVariables.d.ts +10 -0
  24. package/dist/context/getEnvironmentVariables.js +322 -0
  25. package/dist/context/index.d.ts +1 -0
  26. package/dist/context/index.js +12 -16
  27. package/dist/deploy/cloudRun/deployJob.d.ts +1 -1
  28. package/dist/deploy/cloudRun/deployJob.js +91 -9
  29. package/dist/deploy/cloudRun/index.js +110 -4
  30. package/dist/deploy/cloudRun/utils/database.d.ts +4 -0
  31. package/dist/deploy/cloudRun/utils/database.js +82 -0
  32. package/dist/deploy/custom/index.js +3 -0
  33. package/dist/deploy/dockerTag/index.js +3 -0
  34. package/dist/deploy/index.d.ts +6 -4
  35. package/dist/deploy/index.js +4 -6
  36. package/dist/deploy/kubernetes/additionalSecretKeys.d.ts +4 -2
  37. package/dist/deploy/kubernetes/additionalSecretKeys.js +11 -5
  38. package/dist/deploy/kubernetes/cloudSql/index.d.ts +13 -0
  39. package/dist/deploy/kubernetes/cloudSql/index.js +42 -0
  40. package/dist/deploy/kubernetes/index.d.ts +1 -0
  41. package/dist/deploy/kubernetes/index.js +55 -1
  42. package/dist/deploy/kubernetes/kubeValues.js +2 -4
  43. package/dist/deploy/types/googleCloudRun.d.ts +50 -0
  44. package/dist/pipeline/createJobs.js +1 -4
  45. package/dist/tsconfig.tsbuildinfo +1 -1
  46. package/dist/types/config.d.ts +14 -7
  47. package/dist/types/context.d.ts +8 -4
  48. package/dist/types/environmentContext.d.ts +22 -0
  49. package/dist/types/environmentContext.js +3 -0
  50. package/dist/types/jobs.d.ts +1 -1
  51. package/dist/types/jobs.js +1 -1
  52. package/dist/types/utils.d.ts +1 -0
  53. package/dist/types/utils.js +3 -0
  54. package/dist/utils/gitlab.d.ts +5 -0
  55. package/dist/utils/gitlab.js +58 -0
  56. package/examples/cloud-sql.ts +42 -0
  57. package/examples/custom-build-job.ts +25 -0
  58. package/package.json +2 -3
  59. package/src/build/base/createBuildJob.ts +2 -7
  60. package/src/build/custom/buildJob.ts +63 -0
  61. package/src/build/custom/index.ts +7 -0
  62. package/src/build/index.ts +9 -1
  63. package/src/build/node/buildJob.ts +1 -20
  64. package/src/build/node/cache.ts +13 -5
  65. package/src/build/node/yarn.ts +1 -1
  66. package/src/build/types.ts +30 -1
  67. package/src/context/getEnvConfig.ts +21 -0
  68. package/src/context/getEnvType.ts +17 -0
  69. package/src/context/getEnvironment.ts +17 -185
  70. package/src/context/getEnvironmentContext.ts +57 -0
  71. package/src/context/getEnvironmentVariables.ts +152 -0
  72. package/src/context/index.ts +20 -16
  73. package/src/deploy/cloudRun/deployJob.ts +102 -14
  74. package/src/deploy/cloudRun/index.ts +75 -4
  75. package/src/deploy/cloudRun/utils/database.ts +55 -0
  76. package/src/deploy/custom/index.ts +1 -0
  77. package/src/deploy/dockerTag/index.ts +1 -0
  78. package/src/deploy/index.ts +11 -5
  79. package/src/deploy/kubernetes/additionalSecretKeys.ts +10 -7
  80. package/src/deploy/kubernetes/cloudSql/index.ts +28 -0
  81. package/src/deploy/kubernetes/index.ts +34 -1
  82. package/src/deploy/kubernetes/kubeValues.ts +3 -3
  83. package/src/deploy/types/googleCloudRun.ts +51 -0
  84. package/src/pipeline/createJobs.ts +1 -4
  85. package/src/types/config.ts +21 -8
  86. package/src/types/context.ts +10 -5
  87. package/src/types/environmentContext.ts +26 -0
  88. package/src/types/jobs.ts +0 -1
  89. package/src/types/utils.ts +7 -0
  90. package/src/utils/gitlab.ts +23 -0
  91. package/dist/deploy/cloudSql/index.d.ts +0 -8
  92. package/dist/deploy/cloudSql/index.js +0 -30
  93. package/dist/deploy/kubernetes/cloudsql.d.ts +0 -6
  94. package/dist/deploy/kubernetes/cloudsql.js +0 -16
  95. package/dist/inventory/reportingJob.d.ts +0 -5
  96. package/dist/inventory/reportingJob.js +0 -44
  97. package/src/deploy/cloudSql/index.ts +0 -16
  98. package/src/deploy/kubernetes/cloudsql.ts +0 -13
  99. package/src/inventory/reportingJob.ts +0 -73
@@ -3,6 +3,5 @@ import type { CatladderJob } from "../../types/jobs";
3
3
  export declare const createBuildJob: (context: Context, {
4
4
  script,
5
5
  variables,
6
- artifacts,
7
6
  ...def
8
7
  }: Partial<CatladderJob>) => CatladderJob;
@@ -67,8 +67,6 @@ var lodash_1 = require("lodash");
67
67
 
68
68
  var __1 = require("../..");
69
69
 
70
- var reportingJob_1 = require("../../inventory/reportingJob");
71
-
72
70
  var utils_1 = require("../../utils");
73
71
 
74
72
  var yarn_1 = require("../node/yarn");
@@ -78,12 +76,11 @@ var constants_1 = require("./constants");
78
76
  var getBuildInfo_1 = require("./getBuildInfo");
79
77
 
80
78
  var createBuildJob = function (context, _a) {
81
- var _b, _c, _d;
79
+ var _b, _c;
82
80
 
83
81
  var script = _a.script,
84
82
  variables = _a.variables,
85
- artifacts = _a.artifacts,
86
- def = __rest(_a, ["script", "variables", "artifacts"]);
83
+ def = __rest(_a, ["script", "variables"]);
87
84
 
88
85
  return (0, lodash_1.merge)({
89
86
  name: constants_1.APP_BUILD_JOB_NAME,
@@ -95,7 +92,7 @@ var createBuildJob = function (context, _a) {
95
92
  variables: __assign(__assign(__assign(__assign({}, constants_1.RUNNER_BUILD_RESOURCE_VARIABLES), variables !== null && variables !== void 0 ? variables : {}), context.environment.envVars), (_b = context.componentConfig.build.extraVars) !== null && _b !== void 0 ? _b : {}),
96
93
  script: __spreadArray(__spreadArray(__spreadArray(__spreadArray([], __read((0, getBuildInfo_1.getBuildInfo)(context)), false), __read((0, yarn_1.ensureNodeVersion)(context)), false), ["cd ".concat(context.componentConfig.dir)], false), __read((_c = (0, utils_1.ensureArray)(script)) !== null && _c !== void 0 ? _c : []), false),
97
94
  artifacts: {
98
- paths: __spreadArray([context.componentConfig.dir + "/__build_info.json", context.componentConfig.dir + "/" + reportingJob_1.INVENTORY_ARTIFACTS_DIR], __read((_d = artifacts === null || artifacts === void 0 ? void 0 : artifacts.paths) !== null && _d !== void 0 ? _d : []), false)
95
+ paths: [context.componentConfig.dir + "/__build_info.json"]
99
96
  }
100
97
  }, def);
101
98
  };
@@ -0,0 +1,3 @@
1
+ import type { Context } from "../../types/context";
2
+ import type { CatladderJob } from "../../types/jobs";
3
+ export declare const createCustomBuildJobs: (context: Context) => CatladderJob[];
@@ -0,0 +1,101 @@
1
+ "use strict";
2
+
3
+ var __assign = this && this.__assign || function () {
4
+ __assign = Object.assign || function (t) {
5
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
6
+ s = arguments[i];
7
+
8
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
9
+ }
10
+
11
+ return t;
12
+ };
13
+
14
+ return __assign.apply(this, arguments);
15
+ };
16
+
17
+ var __read = this && this.__read || function (o, n) {
18
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
19
+ if (!m) return o;
20
+ var i = m.call(o),
21
+ r,
22
+ ar = [],
23
+ e;
24
+
25
+ try {
26
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
27
+ } catch (error) {
28
+ e = {
29
+ error: error
30
+ };
31
+ } finally {
32
+ try {
33
+ if (r && !r.done && (m = i["return"])) m.call(i);
34
+ } finally {
35
+ if (e) throw e.error;
36
+ }
37
+ }
38
+
39
+ return ar;
40
+ };
41
+
42
+ var __spreadArray = this && this.__spreadArray || function (to, from, pack) {
43
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
44
+ if (ar || !(i in from)) {
45
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
46
+ ar[i] = from[i];
47
+ }
48
+ }
49
+ return to.concat(ar || Array.prototype.slice.call(from));
50
+ };
51
+
52
+ exports.__esModule = true;
53
+ exports.createCustomBuildJobs = void 0;
54
+
55
+ var path_1 = require("path");
56
+
57
+ var utils_1 = require("../../utils");
58
+
59
+ var constants_1 = require("../base/constants");
60
+
61
+ var createBuildJob_1 = require("../base/createBuildJob");
62
+
63
+ var docker_1 = require("../docker");
64
+
65
+ var types_1 = require("../types");
66
+
67
+ var RUNNER_BUILD_VARIABLES = {
68
+ KUBERNETES_CPU_REQUEST: "0.5",
69
+ KUBERNETES_CPU_LIMIT: "2",
70
+ KUBERNETES_MEMORY_REQUEST: "2Gi",
71
+ KUBERNETES_MEMORY_LIMIT: "4Gi"
72
+ };
73
+
74
+ var createCustomBuildJobs = function (context) {
75
+ var _a, _b, _c, _d;
76
+
77
+ var buildConfig = context.componentConfig.build;
78
+
79
+ if (!(0, types_1.isOfBuildType)(buildConfig, "custom")) {
80
+ throw new Error("deploy config is not custom");
81
+ }
82
+
83
+ var appBuildJob = buildConfig.buildCommand !== null ? (0, createBuildJob_1.createBuildJob)(context, {
84
+ image: buildConfig.jobImage,
85
+ variables: __assign({}, RUNNER_BUILD_VARIABLES),
86
+ script: __spreadArray([], __read((_a = (0, utils_1.ensureArray)(buildConfig.buildCommand)) !== null && _a !== void 0 ? _a : []), false),
87
+ artifacts: {
88
+ paths: __spreadArray([(0, path_1.join)(context.componentConfig.dir, "__build_info.json"), (0, path_1.join)(context.componentConfig.dir, "dist")], __read((_c = (_b = buildConfig.artifactsPaths) === null || _b === void 0 ? void 0 : _b.map(function (path) {
89
+ return (0, path_1.join)(context.componentConfig.dir, path);
90
+ })) !== null && _c !== void 0 ? _c : []), false)
91
+ }
92
+ }) : null;
93
+ return __spreadArray(__spreadArray([], __read(appBuildJob ? [appBuildJob] : []), false), __read((0, docker_1.requiresDockerBuild)(context) ? [(0, docker_1.createDockerBuildJobDefault)(context, {
94
+ script: [((_d = buildConfig.docker) === null || _d === void 0 ? void 0 : _d.type) === "nginx" ? "ensureNginxDockerfile" : "" // e.g. custom,
95
+ ].filter(Boolean),
96
+ variables: {},
97
+ needs: appBuildJob ? [constants_1.APP_BUILD_JOB_NAME] : []
98
+ })] : []), false);
99
+ };
100
+
101
+ exports.createCustomBuildJobs = createCustomBuildJobs;
@@ -0,0 +1,3 @@
1
+ import type { Context } from "../../types/context";
2
+ import type { CatladderJob } from "../../types/jobs";
3
+ export declare const createCustomJobs: (context: Context) => CatladderJob[];
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+
3
+ var __read = this && this.__read || function (o, n) {
4
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
5
+ if (!m) return o;
6
+ var i = m.call(o),
7
+ r,
8
+ ar = [],
9
+ e;
10
+
11
+ try {
12
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
13
+ } catch (error) {
14
+ e = {
15
+ error: error
16
+ };
17
+ } finally {
18
+ try {
19
+ if (r && !r.done && (m = i["return"])) m.call(i);
20
+ } finally {
21
+ if (e) throw e.error;
22
+ }
23
+ }
24
+
25
+ return ar;
26
+ };
27
+
28
+ var __spreadArray = this && this.__spreadArray || function (to, from, pack) {
29
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
30
+ if (ar || !(i in from)) {
31
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
32
+ ar[i] = from[i];
33
+ }
34
+ }
35
+ return to.concat(ar || Array.prototype.slice.call(from));
36
+ };
37
+
38
+ exports.__esModule = true;
39
+ exports.createCustomJobs = void 0;
40
+
41
+ var buildJob_1 = require("./buildJob");
42
+
43
+ var createCustomJobs = function (context) {
44
+ return __spreadArray([], __read((0, buildJob_1.createCustomBuildJobs)(context)), false);
45
+ };
46
+
47
+ exports.createCustomJobs = createCustomJobs;
@@ -1,11 +1,12 @@
1
1
  import type { Context } from "../types/context";
2
+ import type { EnvironmentContext } from "../types/environmentContext";
2
3
  import type { CatladderJob } from "../types/jobs";
3
4
  import type { BuildConfig, BuildConfigType } from "./types";
4
5
  export * from "./types";
5
6
  export * from "./node";
6
7
  export declare type BuildTypes = { [type in BuildConfigType]: {
7
8
  jobs: (context: Context) => CatladderJob[];
8
- defaults: () => Partial<Extract<BuildConfig, {
9
+ defaults: (envContext: EnvironmentContext<BuildConfigType, any>) => Partial<Extract<BuildConfig, {
9
10
  type: type;
10
11
  }>>;
11
12
  } };
@@ -20,6 +20,8 @@ var __exportStar = this && this.__exportStar || function (m, exports) {
20
20
  exports.__esModule = true;
21
21
  exports.BUILD_TYPES = void 0;
22
22
 
23
+ var custom_1 = require("./custom");
24
+
23
25
  var node_1 = require("./node");
24
26
 
25
27
  __exportStar(require("./types"), exports);
@@ -59,5 +61,11 @@ exports.BUILD_TYPES = {
59
61
  startCommand: "node main.js"
60
62
  };
61
63
  }
64
+ },
65
+ custom: {
66
+ jobs: custom_1.createCustomJobs,
67
+ defaults: function () {
68
+ return {};
69
+ }
62
70
  }
63
71
  };
@@ -70,10 +70,8 @@ var constants_2 = require("./constants");
70
70
 
71
71
  var yarn_1 = require("./yarn");
72
72
 
73
- var reportingJob_1 = require("../../inventory/reportingJob");
74
-
75
73
  var createNodeBuildJobs = function (context) {
76
- var _a, _b, _c, _d, _e, _f, _g;
74
+ var _a, _b, _c, _d, _e;
77
75
 
78
76
  var buildConfig = context.componentConfig.build;
79
77
 
@@ -82,17 +80,14 @@ var createNodeBuildJobs = function (context) {
82
80
  }
83
81
 
84
82
  var yarnInstall = (0, yarn_1.getYarnInstall)(context);
85
- var yarnReportDependenciesListCommand = ((_a = context.packageManagerInfo) === null || _a === void 0 ? void 0 : _a.isClassic) ? "npm ls --depth 0 --json -prod | jq '.dependencies | to_entries | .[] | {artifact: .key, version: .value.version, type: \"npm\"}'" : "yarn info --json -A| jq '{version: .children.Version, artifact: .value, type: \"npm\" }'";
86
- var debugcom = ((_b = context.packageManagerInfo) === null || _b === void 0 ? void 0 : _b.isClassic) ? "npm ls --depth 0 --json -prod" : "yarn info --json -A";
87
- var yarnReportDependenciesCommand = ["mkdir -p ".concat(reportingJob_1.INVENTORY_ARTIFACTS_DIR_DEPENDENCIES), yarnReportDependenciesListCommand + " > " + reportingJob_1.INVENTORY_ARTIFACTS_DIR_DEPENDENCIES + "/app.jsonl"];
88
83
  var appBuildJob = buildConfig.buildCommand !== null ? (0, createBuildJob_1.createBuildJob)(context, {
89
84
  variables: __assign({}, constants_2.NODE_RUNNER_BUILD_VARIABLES),
90
85
  cache: __spreadArray(__spreadArray([], __read((0, cache_1.getNodeCache)(context)), false), __read((0, cache_1.getNextCache)(context)), false),
91
- script: __spreadArray(__spreadArray(__spreadArray(__spreadArray([], __read(yarnInstall), false), __read((_c = (0, utils_1.ensureArray)(buildConfig.buildCommand)) !== null && _c !== void 0 ? _c : []), false), [debugcom], false), __read(yarnReportDependenciesCommand), false),
86
+ script: __spreadArray(__spreadArray([], __read(yarnInstall), false), __read((_a = (0, utils_1.ensureArray)(buildConfig.buildCommand)) !== null && _a !== void 0 ? _a : []), false),
92
87
  artifacts: {
93
- paths: __spreadArray([(0, path_1.join)(context.componentConfig.dir, "dist"), (0, path_1.join)(context.componentConfig.dir, ".next")], __read((_e = (_d = buildConfig.artifactsPaths) === null || _d === void 0 ? void 0 : _d.map(function (path) {
88
+ paths: __spreadArray([(0, path_1.join)(context.componentConfig.dir, "__build_info.json"), (0, path_1.join)(context.componentConfig.dir, "dist"), (0, path_1.join)(context.componentConfig.dir, ".next")], __read((_c = (_b = buildConfig.artifactsPaths) === null || _b === void 0 ? void 0 : _b.map(function (path) {
94
89
  return (0, path_1.join)(context.componentConfig.dir, path);
95
- })) !== null && _e !== void 0 ? _e : []), false)
90
+ })) !== null && _c !== void 0 ? _c : []), false)
96
91
  }
97
92
  }) : null;
98
93
  return __spreadArray(__spreadArray([], __read(appBuildJob ? [appBuildJob] : []), false), __read((0, docker_1.requiresDockerBuild)(context) ? [(0, docker_1.createDockerBuildJobDefault)(context, {
@@ -107,9 +102,9 @@ var createNodeBuildJobs = function (context) {
107
102
  prodOnly: true,
108
103
  noScripts: true
109
104
  }),
110
- DOCKER_COPY_WORKSPACE_FILES: (_g = (_f = context.packageManagerInfo) === null || _f === void 0 ? void 0 : _f.pathsToCopyInDocker.map(function (dir) {
105
+ DOCKER_COPY_WORKSPACE_FILES: (_e = (_d = context.packageManagerInfo) === null || _d === void 0 ? void 0 : _d.pathsToCopyInDocker.map(function (dir) {
111
106
  return "COPY --chown=node:node ".concat(dir, " /app/").concat(dir);
112
- })) === null || _g === void 0 ? void 0 : _g.join("\n")
107
+ })) === null || _e === void 0 ? void 0 : _e.join("\n")
113
108
  },
114
109
  needs: appBuildJob ? [constants_1.APP_BUILD_JOB_NAME] : []
115
110
  })] : []), false);
@@ -41,14 +41,21 @@ exports.getNextCache = exports.getNodeCache = exports.getNodeModulesCache = expo
41
41
  var path_1 = require("path");
42
42
 
43
43
  var getYarnCache = function (context, policy) {
44
+ var _a;
45
+
44
46
  if (policy === void 0) {
45
47
  policy = "pull-push";
46
48
  }
47
49
 
48
- return [{
50
+ var componentIsInWorkspace = (_a = context.packageManagerInfo) === null || _a === void 0 ? void 0 : _a.componentIsInWorkspace;
51
+ return [componentIsInWorkspace ? {
49
52
  key: "yarn",
50
53
  policy: policy,
51
54
  paths: [".yarn"]
55
+ } : {
56
+ key: context.componentConfig.dir + "-yarn",
57
+ policy: policy,
58
+ paths: [(0, path_1.join)(context.componentConfig.dir, ".yarn")]
52
59
  }];
53
60
  };
54
61
 
@@ -53,7 +53,7 @@ var getYarnInstallCommand = function (context, options) {
53
53
 
54
54
  return (_a = context.packageManagerInfo) === null || _a === void 0 ? void 0 : _a.version.startsWith(v);
55
55
  });
56
- return (options === null || options === void 0 ? void 0 : options.prodOnly) ? "".concat((options === null || options === void 0 ? void 0 : options.noScripts) ? "YARN_ENABLE_SCRIPTS=false " : "").concat(doesNotShipWithBuiltInPlugins ? "yarn plugin import workspace-tools && " : " ", "yarn workspaces focus --production") // needs yarn plugin import workspace-tools
56
+ return (options === null || options === void 0 ? void 0 : options.prodOnly) ? "".concat((options === null || options === void 0 ? void 0 : options.noScripts) ? "YARN_ENABLE_SCRIPTS=false " : "").concat(doesNotShipWithBuiltInPlugins ? "yarn plugin import workspace-tools && " : " ", "yarn workspaces focus --production && yarn rebuild") // needs yarn plugin import workspace-tools
57
57
  : "".concat((options === null || options === void 0 ? void 0 : options.noScripts) ? "YARN_ENABLE_SCRIPTS=false " : "", "yarn install --immutable");
58
58
  };
59
59
 
@@ -66,18 +66,39 @@ export declare type BuildConfigMeteor = BuildConfigNodeBase & {
66
66
 
67
67
  installScripts?: boolean;
68
68
  };
69
+ export declare type BuildConfigCustomDocker = BuildConfigBase["docker"] & ({
70
+ /**
71
+ * use the built-in nginx image for simple static apps
72
+ */
73
+ type: "nginx";
74
+ } | {
75
+ /**
76
+ * custom docker build, expect that a Dockerfile in your directory
77
+ */
78
+ type: "custom";
79
+ });
80
+ export declare type BuildConfigCustom = BuildConfigBase & {
81
+ type: "custom";
82
+ jobImage: string;
83
+ docker: BuildConfigCustomDocker;
84
+ };
69
85
  export declare type BuildConfigStorybook = BuildConfigNodeBase & {
70
86
  type: "storybook";
71
87
  startCommand?: never;
72
88
  };
73
- export declare type BuildConfig = BuildConfigNode | BuildConfigNodeStatic | BuildConfigStorybook | BuildConfigMeteor;
89
+ export declare type BuildConfig = BuildConfigNode | BuildConfigNodeStatic | BuildConfigStorybook | BuildConfigMeteor | BuildConfigCustom;
74
90
  export declare type BuildConfigType = BuildConfig["type"];
75
- export declare const isOfBuildType: <T extends ("node" | "node-static" | "meteor" | "storybook")[]>(t: BuildConfig, ...types: T) => t is Extract<BuildConfigNode, {
91
+ export declare type BuildConfigGeneric<T extends BuildConfigType> = Extract<BuildConfig, {
92
+ type: T;
93
+ }>;
94
+ export declare const isOfBuildType: <T extends ("node" | "node-static" | "meteor" | "custom" | "storybook")[]>(t: BuildConfig, ...types: T) => t is Extract<BuildConfigNode, {
76
95
  type: T[number];
77
96
  }> | Extract<BuildConfigNodeStatic, {
78
97
  type: T[number];
79
98
  }> | Extract<BuildConfigMeteor, {
80
99
  type: T[number];
100
+ }> | Extract<BuildConfigCustom, {
101
+ type: T[number];
81
102
  }> | Extract<BuildConfigStorybook, {
82
103
  type: T[number];
83
104
  }>;