@sprucelabs/spruce-deploy-plugin 61.1.34 → 62.0.0
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/errors.types.js +0 -2
- 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.d.ts +1 -1
- package/build/errors/SpruceError.js +1 -1
- package/build/esm/.spruce/errors/errors.types.js +0 -2
- package/build/esm/.spruce/errors/options.types.d.ts +2 -2
- package/build/esm/errors/SpruceError.d.ts +1 -1
- package/build/plugins/deploy.plugin.js +6 -5
- package/build/tests/AbstractDeployTest.js +5 -2
- package/package.json +23 -23
- package/tsconfig.json +3 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { ErrorOptions as ISpruceErrorOptions } from '@sprucelabs/error';
|
|
2
|
+
import { SpruceErrors } from './errors.types';
|
|
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 } from '@sprucelabs/schema';
|
|
1
|
+
export { FieldDefinitions, FieldDefinitionMap, FieldValueTypeGeneratorMap, FieldMap, } from '@sprucelabs/schema';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import BaseSpruceError from '@sprucelabs/error';
|
|
2
|
-
import ErrorOptions from
|
|
2
|
+
import ErrorOptions from './../.spruce/errors/options.types';
|
|
3
3
|
export default class SpruceError extends BaseSpruceError<ErrorOptions> {
|
|
4
4
|
/** An easy to understand version of the errors */
|
|
5
5
|
friendlyMessage(): string;
|
|
@@ -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?.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 { ErrorOptions as ISpruceErrorOptions } from '@sprucelabs/error';
|
|
2
|
+
import { SpruceErrors } from './errors.types';
|
|
3
3
|
export interface HerokuErrorErrorOptions extends SpruceErrors.Deploy.HerokuError, ISpruceErrorOptions {
|
|
4
4
|
code: 'HEROKU_ERROR';
|
|
5
5
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import BaseSpruceError from '@sprucelabs/error';
|
|
2
|
-
import ErrorOptions from
|
|
2
|
+
import ErrorOptions from './../.spruce/errors/options.types';
|
|
3
3
|
export default class SpruceError extends BaseSpruceError<ErrorOptions> {
|
|
4
4
|
/** An easy to understand version of the errors */
|
|
5
5
|
friendlyMessage(): string;
|
|
@@ -8,15 +8,16 @@ 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
|
-
|
|
11
|
+
_isBooted = false;
|
|
12
|
+
//@ts-ignore
|
|
13
|
+
executeResolver;
|
|
14
|
+
bootHandler;
|
|
15
|
+
constructor() { }
|
|
14
16
|
onBoot(cb) {
|
|
15
17
|
this.bootHandler = cb;
|
|
16
18
|
}
|
|
17
19
|
async execute() {
|
|
18
|
-
|
|
19
|
-
await ((_a = this.bootHandler) === null || _a === void 0 ? void 0 : _a.call(this));
|
|
20
|
+
await this.bootHandler?.();
|
|
20
21
|
}
|
|
21
22
|
async checkHealth() {
|
|
22
23
|
const token = process.env.HEROKU_API_TOKEN;
|
|
@@ -12,8 +12,11 @@ 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
|
|
16
|
-
return super.Skill(
|
|
15
|
+
const { plugins = [deploy_plugin_1.default] } = options ?? {};
|
|
16
|
+
return super.Skill({
|
|
17
|
+
plugins,
|
|
18
|
+
...options,
|
|
19
|
+
});
|
|
17
20
|
}
|
|
18
21
|
}
|
|
19
22
|
exports.default = AbstractDeployTest;
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "
|
|
6
|
+
"version": "62.0.0",
|
|
7
7
|
"files": [
|
|
8
8
|
"build/**/*",
|
|
9
9
|
"!build/__tests__",
|
|
@@ -35,15 +35,15 @@
|
|
|
35
35
|
"url": "https://github.com/sprucelabsai/spruce-features-workspace/issues"
|
|
36
36
|
},
|
|
37
37
|
"scripts": {
|
|
38
|
-
"build.ci": "yarn build.tsc && yarn build.resolve-paths && yarn lint",
|
|
38
|
+
"build.ci": "yarn run build.tsc && yarn run build.resolve-paths && yarn run lint",
|
|
39
39
|
"build.copy-files": "mkdir -p build && rsync -avzq --exclude='*.ts' ./src/ ./build/",
|
|
40
|
-
"build.dev": "yarn build.tsc --sourceMap ; yarn resolve-paths.lint",
|
|
40
|
+
"build.dev": "yarn run build.tsc --sourceMap ; yarn run resolve-paths.lint",
|
|
41
41
|
"build.dist": "tsc --project tsconfig.dist.json && yarn build.resolve-paths && mv build esm && yarn build.esm-postbuild && yarn build.tsc && yarn build.resolve-paths && mv esm build/ && yarn clean.dist",
|
|
42
42
|
"build.esm-postbuild": "esm-postbuild --target esm --patterns '**/*.js'",
|
|
43
43
|
"build.resolve-paths": "resolve-path-aliases --target build --patterns '**/*.js,**/*.d.ts'",
|
|
44
44
|
"build.tsc": "yarn build.copy-files && tsc",
|
|
45
|
-
"clean": "yarn clean.build",
|
|
46
|
-
"clean.all": "yarn clean.dependencies && yarn clean.build",
|
|
45
|
+
"clean": "yarn run clean.build",
|
|
46
|
+
"clean.all": "yarn run clean.dependencies && yarn run clean.build",
|
|
47
47
|
"clean.build": "rm -rf build/",
|
|
48
48
|
"clean.dependencies": "rm -rf node_modules/ package-lock.json yarn.lock",
|
|
49
49
|
"clean.dist": "true",
|
|
@@ -51,35 +51,35 @@
|
|
|
51
51
|
"fix.lint.local": "eslint --fix --cache '**/*.ts'",
|
|
52
52
|
"lint": "eslint --cache '**/*.ts'",
|
|
53
53
|
"rebuild": "cd .. && yarn rebuild",
|
|
54
|
-
"resolve-paths.lint": "yarn build.resolve-paths ; yarn lint",
|
|
54
|
+
"resolve-paths.lint": "yarn run build.resolve-paths ; yarn run lint",
|
|
55
55
|
"test": "jest",
|
|
56
56
|
"update.dependencies": "cd ../ && yarn update.dependencies",
|
|
57
|
-
"post.watch.build": "yarn build.copy-files && yarn build.resolve-paths",
|
|
57
|
+
"post.watch.build": "yarn run build.copy-files && yarn run build.resolve-paths",
|
|
58
58
|
"spruce.upgrade": "spruce upgrade",
|
|
59
|
-
"watch.build.dev": "tsc-watch --sourceMap --onCompilationComplete 'yarn post.watch.build'",
|
|
60
|
-
"watch.lint": "concurrently 'yarn lint' \"chokidar 'src/**/*' -c 'yarn lint.tsc'\"",
|
|
61
|
-
"watch.rebuild": "yarn clean.all && yarn && yarn watch.build.dev",
|
|
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
|
+
"watch.rebuild": "yarn run clean.all && yarn install && yarn run watch.build.dev",
|
|
62
62
|
"watch.tsc": "tsc -w",
|
|
63
63
|
"lint.tsc": "tsc -p . --noEmit"
|
|
64
64
|
},
|
|
65
65
|
"dependencies": {
|
|
66
|
-
"@sprucelabs/error": "^
|
|
67
|
-
"@sprucelabs/schema": "^
|
|
68
|
-
"@sprucelabs/spruce-skill-booter": "^
|
|
69
|
-
"@sprucelabs/spruce-skill-utils": "^
|
|
66
|
+
"@sprucelabs/error": "^6.0.3",
|
|
67
|
+
"@sprucelabs/schema": "^30.0.4",
|
|
68
|
+
"@sprucelabs/spruce-skill-booter": "^62.0.0",
|
|
69
|
+
"@sprucelabs/spruce-skill-utils": "^31.0.3",
|
|
70
70
|
"heroku-client": "^3.1.0"
|
|
71
71
|
},
|
|
72
72
|
"devDependencies": {
|
|
73
|
-
"@sprucelabs/esm-postbuild": "^
|
|
74
|
-
"@sprucelabs/jest-json-reporter": "^
|
|
75
|
-
"@sprucelabs/resolve-path-aliases": "^
|
|
76
|
-
"@sprucelabs/semantic-release": "^
|
|
77
|
-
"@sprucelabs/test": "^
|
|
78
|
-
"@sprucelabs/test-utils": "^
|
|
73
|
+
"@sprucelabs/esm-postbuild": "^6.0.2",
|
|
74
|
+
"@sprucelabs/jest-json-reporter": "^8.0.0",
|
|
75
|
+
"@sprucelabs/resolve-path-aliases": "^2.0.4",
|
|
76
|
+
"@sprucelabs/semantic-release": "^5.0.1",
|
|
77
|
+
"@sprucelabs/test": "^9.0.4",
|
|
78
|
+
"@sprucelabs/test-utils": "^5.0.3",
|
|
79
79
|
"chokidar-cli": "^3.0.0",
|
|
80
80
|
"concurrently": "^8.2.2",
|
|
81
|
-
"eslint": "^
|
|
82
|
-
"eslint-config-spruce": "^
|
|
81
|
+
"eslint": "^9.0.0",
|
|
82
|
+
"eslint-config-spruce": "^11.2.7",
|
|
83
83
|
"jest": "^29.7.0",
|
|
84
84
|
"jest-circus": "^29.7.0",
|
|
85
85
|
"prettier": "^3.2.5",
|
|
@@ -105,5 +105,5 @@
|
|
|
105
105
|
"^#spruce/(.*)$": "<rootDir>/build/.spruce/$1"
|
|
106
106
|
}
|
|
107
107
|
},
|
|
108
|
-
"gitHead": "
|
|
108
|
+
"gitHead": "1c1364f29712a97b28d96ea45eaaed7f8b4b8537"
|
|
109
109
|
}
|
package/tsconfig.json
CHANGED
|
@@ -3,11 +3,10 @@
|
|
|
3
3
|
"skipLibCheck": true,
|
|
4
4
|
"module": "commonjs",
|
|
5
5
|
"esModuleInterop": true,
|
|
6
|
-
"target": "
|
|
6
|
+
"target": "ES2022",
|
|
7
7
|
"lib": [
|
|
8
8
|
"DOM",
|
|
9
|
-
"
|
|
10
|
-
"ES2020"
|
|
9
|
+
"ES2022"
|
|
11
10
|
],
|
|
12
11
|
"declaration": true,
|
|
13
12
|
"noImplicitAny": true,
|
|
@@ -37,4 +36,4 @@
|
|
|
37
36
|
"build",
|
|
38
37
|
"esm"
|
|
39
38
|
]
|
|
40
|
-
}
|
|
39
|
+
}
|