@catladder/pipeline 1.105.0 → 1.105.2

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.
@@ -1,4 +1,6 @@
1
1
  import type { Context } from "../../types";
2
2
  export declare const ensureNodeVersion: (context: Context) => string[];
3
- export declare const getYarnInstall: (context: Context) => string[];
3
+ export declare const getYarnInstall: (context: Context, options?: {
4
+ noCustomPostInstall: boolean;
5
+ } | undefined) => string[];
4
6
  export declare const getDockerAppCopyAndBuildScript: (context: Context) => string;
@@ -48,10 +48,10 @@ var ensureNodeVersion = function (context) {
48
48
  return ["if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi", "if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi"];
49
49
  };
50
50
  exports.ensureNodeVersion = ensureNodeVersion;
51
- var getYarnInstall = function (context) {
51
+ var getYarnInstall = function (context, options) {
52
52
  var _a;
53
- var postInstall = context.componentConfig.build.postInstall;
54
- return __spreadArray(__spreadArray(__spreadArray([], __read((0, exports.ensureNodeVersion)(context)), false), [getYarnInstallCommand(context)], false), __read(postInstall ? (_a = (0, utils_1.ensureArray)(postInstall)) !== null && _a !== void 0 ? _a : [] : []), false);
53
+ var postInstall = "postInstall" in context.componentConfig.build ? context.componentConfig.build.postInstall : null;
54
+ return __spreadArray(__spreadArray(__spreadArray([], __read((0, exports.ensureNodeVersion)(context)), false), [getYarnInstallCommand(context)], false), __read(postInstall && !(options === null || options === void 0 ? void 0 : options.noCustomPostInstall) ? (_a = (0, utils_1.ensureArray)(postInstall)) !== null && _a !== void 0 ? _a : [] : []), false);
55
55
  };
56
56
  exports.getYarnInstall = getYarnInstall;
57
57
  var DOCKER_COPY_FILES = "COPY --chown=node:node $APP_DIR .";
@@ -29,11 +29,6 @@ export declare type BuildConfigBase = {
29
29
  * define the build command
30
30
  */
31
31
  buildCommand?: string | string[] | null;
32
- /**
33
- * runs a command after yarn install. postinstall in package.json won't work for yarn plug and play.
34
- * the command will be invoked in the component dir.
35
- */
36
- postInstall?: string | string[];
37
32
  /**
38
33
  * customize docker build
39
34
  */
@@ -81,7 +76,13 @@ export declare type BuildConfigBase = {
81
76
  */
82
77
  jobTags?: string[];
83
78
  };
84
- export declare type BuildConfigNodeBase = BuildConfigBase;
79
+ export declare type BuildConfigNodeBase = BuildConfigBase & {
80
+ /**
81
+ * runs a command after yarn install. postinstall in package.json won't work for yarn plug and play.
82
+ * the command will be invoked in the component dir.
83
+ */
84
+ postInstall?: string | string[];
85
+ };
85
86
  export declare type BuildConfigNode = {
86
87
  type: "node";
87
88
  } & BuildConfigNodeBase;