@sprucelabs/spruce-deploy-plugin 62.0.1 → 62.0.3
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/build/.spruce/errors/deploy/herokuError.schema.js +1 -1
- package/build/.spruce/errors/options.types.d.ts +2 -2
- package/build/.spruce/schemas/fields/fields.types.d.ts +1 -1
- package/build/errors/SpruceError.js +1 -1
- package/build/esm/.spruce/errors/options.types.d.ts +2 -2
- package/build/plugins/deploy.plugin.js +5 -6
- package/build/tests/AbstractDeployTest.js +1 -1
- package/package.json +13 -15
- package/tsconfig.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { SpruceErrors } from "./errors.types";
|
|
2
|
+
import { ErrorOptions as ISpruceErrorOptions } from "@sprucelabs/error";
|
|
3
3
|
export interface HerokuErrorErrorOptions extends SpruceErrors.Deploy.HerokuError, ISpruceErrorOptions {
|
|
4
4
|
code: 'HEROKU_ERROR';
|
|
5
5
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { FieldDefinitions, FieldDefinitionMap, FieldValueTypeGeneratorMap, FieldMap
|
|
1
|
+
export { FieldDefinitions, FieldDefinitionMap, FieldValueTypeGeneratorMap, FieldMap } from '@sprucelabs/schema';
|
|
@@ -9,7 +9,7 @@ class SpruceError extends error_1.default {
|
|
|
9
9
|
friendlyMessage() {
|
|
10
10
|
const { options } = this;
|
|
11
11
|
let message;
|
|
12
|
-
switch (options
|
|
12
|
+
switch (options === null || options === void 0 ? void 0 : options.code) {
|
|
13
13
|
case 'HEROKU_ERROR':
|
|
14
14
|
message = 'A Heroku Error just happened!';
|
|
15
15
|
break;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { SpruceErrors } from "./errors.types";
|
|
2
|
+
import { ErrorOptions as ISpruceErrorOptions } from "@sprucelabs/error";
|
|
3
3
|
export interface HerokuErrorErrorOptions extends SpruceErrors.Deploy.HerokuError, ISpruceErrorOptions {
|
|
4
4
|
code: 'HEROKU_ERROR';
|
|
5
5
|
}
|
|
@@ -8,16 +8,15 @@ exports.DeployFeature = void 0;
|
|
|
8
8
|
const heroku_client_1 = __importDefault(require("heroku-client"));
|
|
9
9
|
const SpruceError_1 = __importDefault(require("../errors/SpruceError"));
|
|
10
10
|
class DeployFeature {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
bootHandler;
|
|
15
|
-
constructor() { }
|
|
11
|
+
constructor() {
|
|
12
|
+
this._isBooted = false;
|
|
13
|
+
}
|
|
16
14
|
onBoot(cb) {
|
|
17
15
|
this.bootHandler = cb;
|
|
18
16
|
}
|
|
19
17
|
async execute() {
|
|
20
|
-
|
|
18
|
+
var _a;
|
|
19
|
+
await ((_a = this.bootHandler) === null || _a === void 0 ? void 0 : _a.call(this));
|
|
21
20
|
}
|
|
22
21
|
async checkHealth() {
|
|
23
22
|
const token = process.env.HEROKU_API_TOKEN;
|
|
@@ -12,7 +12,7 @@ class AbstractDeployTest extends spruce_skill_booter_1.AbstractSkillTest {
|
|
|
12
12
|
delete process.env.HEROKU_TEAM_NAME;
|
|
13
13
|
}
|
|
14
14
|
static Skill(options) {
|
|
15
|
-
const { plugins = [deploy_plugin_1.default] } = options
|
|
15
|
+
const { plugins = [deploy_plugin_1.default] } = options !== null && options !== void 0 ? options : {};
|
|
16
16
|
return super.Skill({
|
|
17
17
|
plugins,
|
|
18
18
|
...options,
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "62.0.
|
|
6
|
+
"version": "62.0.3",
|
|
7
7
|
"files": [
|
|
8
8
|
"build/**/*",
|
|
9
9
|
"!build/__tests__",
|
|
@@ -57,29 +57,27 @@
|
|
|
57
57
|
"post.watch.build": "yarn run build.copy-files && yarn run build.resolve-paths",
|
|
58
58
|
"spruce.upgrade": "spruce upgrade",
|
|
59
59
|
"watch.build.dev": "tsc-watch --sourceMap --onCompilationComplete 'yarn run post.watch.build'",
|
|
60
|
-
"watch.lint": "concurrently 'yarn run lint' \"chokidar 'src/**/*' -c 'yarn run lint.tsc'\"",
|
|
61
60
|
"watch.rebuild": "yarn run clean.all && yarn install && yarn run watch.build.dev",
|
|
62
61
|
"watch.tsc": "tsc -w",
|
|
63
62
|
"lint.tsc": "tsc -p . --noEmit"
|
|
64
63
|
},
|
|
65
64
|
"dependencies": {
|
|
66
|
-
"@sprucelabs/error": "^6.0.
|
|
67
|
-
"@sprucelabs/schema": "^30.0.
|
|
68
|
-
"@sprucelabs/spruce-skill-booter": "^62.0.
|
|
69
|
-
"@sprucelabs/spruce-skill-utils": "^31.0.
|
|
65
|
+
"@sprucelabs/error": "^6.0.13",
|
|
66
|
+
"@sprucelabs/schema": "^30.0.17",
|
|
67
|
+
"@sprucelabs/spruce-skill-booter": "^62.0.3",
|
|
68
|
+
"@sprucelabs/spruce-skill-utils": "^31.0.17",
|
|
70
69
|
"heroku-client": "^3.1.0"
|
|
71
70
|
},
|
|
72
71
|
"devDependencies": {
|
|
73
|
-
"@sprucelabs/esm-postbuild": "^6.0.
|
|
74
|
-
"@sprucelabs/jest-json-reporter": "^8.0.
|
|
75
|
-
"@sprucelabs/resolve-path-aliases": "^2.0.
|
|
72
|
+
"@sprucelabs/esm-postbuild": "^6.0.12",
|
|
73
|
+
"@sprucelabs/jest-json-reporter": "^8.0.15",
|
|
74
|
+
"@sprucelabs/resolve-path-aliases": "^2.0.14",
|
|
76
75
|
"@sprucelabs/semantic-release": "^5.0.1",
|
|
77
|
-
"@sprucelabs/test": "^9.0.
|
|
78
|
-
"@sprucelabs/test-utils": "^5.0.
|
|
76
|
+
"@sprucelabs/test": "^9.0.10",
|
|
77
|
+
"@sprucelabs/test-utils": "^5.0.12",
|
|
79
78
|
"chokidar-cli": "^3.0.0",
|
|
80
|
-
"
|
|
81
|
-
"eslint": "^
|
|
82
|
-
"eslint-config-spruce": "^11.2.7",
|
|
79
|
+
"eslint": "^9.1.1",
|
|
80
|
+
"eslint-config-spruce": "^11.2.14",
|
|
83
81
|
"jest": "^29.7.0",
|
|
84
82
|
"jest-circus": "^29.7.0",
|
|
85
83
|
"prettier": "^3.2.5",
|
|
@@ -105,5 +103,5 @@
|
|
|
105
103
|
"^#spruce/(.*)$": "<rootDir>/build/.spruce/$1"
|
|
106
104
|
}
|
|
107
105
|
},
|
|
108
|
-
"gitHead": "
|
|
106
|
+
"gitHead": "cd2ddfd22a6c237cb6b20f085967f5df56623e78"
|
|
109
107
|
}
|