@nx-extend/vercel 8.0.2 → 8.1.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/CHANGELOG.md +15 -2
- package/package.json +2 -2
- package/src/executors/deploy/deploy.impl.d.ts +1 -0
- package/src/executors/deploy/deploy.impl.js +1 -0
- package/src/executors/deploy/deploy.impl.js.map +1 -1
- package/src/executors/deploy/deploy.impl.ts +2 -0
- package/src/executors/deploy/schema.json +12 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,19 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
# [8.1.0](https://github.com/TriPSs/nx-extend/compare/vercel@8.0.3...vercel@8.1.0) (2024-06-24)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* **vercel:** add archive option for deploy executor ([b2e6388](https://github.com/TriPSs/nx-extend/commit/b2e6388d141142f1a06e1d32181b0ed22a1ad128))
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
## [8.0.3](https://github.com/TriPSs/nx-extend/compare/vercel@8.0.2...vercel@8.0.3) (2024-06-17)
|
|
12
|
+
|
|
13
|
+
### Dependency Updates
|
|
14
|
+
|
|
15
|
+
* `core` updated to version `7.0.3`
|
|
2
16
|
|
|
3
|
-
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
17
|
|
|
5
18
|
## [8.0.2](https://github.com/TriPSs/nx-extend/compare/vercel@8.0.1...vercel@8.0.2) (2024-06-14)
|
|
6
19
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx-extend/vercel",
|
|
3
|
-
"version": "8.0
|
|
3
|
+
"version": "8.1.0",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"nx",
|
|
6
6
|
"vercel"
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"@nx/devkit": "19.3.0",
|
|
23
23
|
"@nx/workspace": "19.3.0",
|
|
24
24
|
"shelljs": "^0.8.5",
|
|
25
|
-
"@nx-extend/core": "7.0.
|
|
25
|
+
"@nx-extend/core": "7.0.3",
|
|
26
26
|
"tslib": "2.6.2"
|
|
27
27
|
},
|
|
28
28
|
"type": "commonjs"
|
|
@@ -2,6 +2,7 @@ import type { ExecutorContext } from '@nx/devkit';
|
|
|
2
2
|
export interface DeployOptions {
|
|
3
3
|
buildTarget?: string;
|
|
4
4
|
regions?: string;
|
|
5
|
+
archive?: 'tgz';
|
|
5
6
|
}
|
|
6
7
|
export declare function deployExecutor(options: DeployOptions, context: ExecutorContext): Promise<{
|
|
7
8
|
success: boolean;
|
|
@@ -37,6 +37,7 @@ function deployExecutor(options, context) {
|
|
|
37
37
|
context.configurationName === 'production' && '--prod',
|
|
38
38
|
vercel_token_1.vercelToken && `--token=${vercel_token_1.vercelToken}`,
|
|
39
39
|
options.regions && `--regions=${options.regions}`,
|
|
40
|
+
options.archive && `--archive=${options.archive}`,
|
|
40
41
|
core_1.USE_VERBOSE_LOGGING && '--debug'
|
|
41
42
|
]), {
|
|
42
43
|
cwd: outputDirectory
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deploy.impl.js","sourceRoot":"","sources":["../../../../../../packages/vercel/src/executors/deploy/deploy.impl.ts"],"names":[],"mappings":";;;;AAAA,4CAA2C;AAC3C,0CAAsF;AACtF,2BAA+B;AAC/B,+BAA2B;AAI3B,+GAAsG;AACtG,2DAAsD;
|
|
1
|
+
{"version":3,"file":"deploy.impl.js","sourceRoot":"","sources":["../../../../../../packages/vercel/src/executors/deploy/deploy.impl.ts"],"names":[],"mappings":";;;;AAAA,4CAA2C;AAC3C,0CAAsF;AACtF,2BAA+B;AAC/B,+BAA2B;AAI3B,+GAAsG;AACtG,2DAAsD;AAQtD,SAAsB,cAAc,CAClC,OAAsB,EACtB,OAAwB;;;QAExB,MAAM,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC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QAAQ;YACtD,0BAAW,IAAI,WAAW,0BAAW,EAAE;YACvC,OAAO,CAAC,OAAO,IAAI,aAAa,OAAO,CAAC,OAAO,EAAE;YACjD,OAAO,CAAC,OAAO,IAAI,aAAa,OAAO,CAAC,OAAO,EAAE;YAEjD,0BAAmB,IAAI,SAAS;SACjC,CAAC,EAAE;YACF,GAAG,EAAE,eAAe;SACrB,CAAC,CAAA;QAEF,qEAAqE;QACrE,IAAI,IAAA,WAAI,GAAE,EAAE,CAAC;YACX,oFAAoF;YACpF,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,CAAA;YAEhC,MAAM,GAAG,GAAG,KAAK,CAAC,IAAI,CACpB,CAAC,IAAI,EAAE,EAAE,CACP,IAAI,CAAC,IAAI,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;gBAClC,IAAI,CAAC,IAAI,EAAE,CAAC,QAAQ,CAAC,aAAa,CAAC,CACtC,CAAA;YAED,IAAI,GAAG,EAAE,CAAC;gBACR,MAAM,UAAU,CAAC,OAAO;qBACrB,OAAO,CAAC,YAAY,EAAE,GAAG,CAAC,IAAI,EAAE,CAAC;qBACjC,KAAK,EAAE,CAAA;gBAEV,MAAM,UAAU,CAAC,SAAS,CAAC,KAAK,EAAE,GAAG,CAAC,CAAA;YACxC,CAAC;QACH,CAAC;QAED,OAAO,EAAE,OAAO,EAAE,CAAA;IACpB,CAAC;CAAA;AAlED,wCAkEC;AAED,kBAAe,cAAc,CAAA"}
|
|
@@ -11,6 +11,7 @@ import { vercelToken } from '../../utils/vercel-token'
|
|
|
11
11
|
export interface DeployOptions {
|
|
12
12
|
buildTarget?: string
|
|
13
13
|
regions?: string
|
|
14
|
+
archive?: 'tgz'
|
|
14
15
|
}
|
|
15
16
|
|
|
16
17
|
export async function deployExecutor(
|
|
@@ -51,6 +52,7 @@ export async function deployExecutor(
|
|
|
51
52
|
context.configurationName === 'production' && '--prod',
|
|
52
53
|
vercelToken && `--token=${vercelToken}`,
|
|
53
54
|
options.regions && `--regions=${options.regions}`,
|
|
55
|
+
options.archive && `--archive=${options.archive}`,
|
|
54
56
|
|
|
55
57
|
USE_VERBOSE_LOGGING && '--debug'
|
|
56
58
|
]), {
|
|
@@ -9,6 +9,18 @@
|
|
|
9
9
|
"regions": {
|
|
10
10
|
"type": "string",
|
|
11
11
|
"description": "Regions to deploy to"
|
|
12
|
+
},
|
|
13
|
+
"buildTarget": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"description": "Build target to deploy"
|
|
16
|
+
},
|
|
17
|
+
"archive": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"description": "Type of archive to use when uploading the build",
|
|
20
|
+
"enum": ["tgz"],
|
|
21
|
+
"$default": "atom",
|
|
22
|
+
"x-prompt": "Archive type",
|
|
23
|
+
"x-display": "radio"
|
|
12
24
|
}
|
|
13
25
|
}
|
|
14
26
|
}
|