@nx-extend/vercel 9.0.0 → 10.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/CHANGELOG.md +17 -0
- package/package.json +9 -6
- package/src/executors/build/build.impl.js +3 -6
- package/src/executors/build/build.impl.js.map +1 -1
- package/src/executors/build/build.impl.ts +8 -4
- package/src/executors/deploy/deploy.impl.js +3 -5
- package/src/executors/deploy/deploy.impl.js.map +1 -1
- package/src/executors/deploy/deploy.impl.ts +7 -2
- package/src/generators/add/add.impl.js +1 -1
- package/src/generators/add/add.impl.js.map +1 -1
- package/src/utils/get-output-directory-from-build-target.d.ts +0 -2
- package/src/utils/get-output-directory-from-build-target.js +0 -16
- package/src/utils/get-output-directory-from-build-target.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,21 @@
|
|
|
1
1
|
|
|
2
|
+
# [10.0.0](https://github.com/TriPSs/nx-extend/compare/vercel@9.0.0...vercel@10.0.0) (2024-08-16)
|
|
3
|
+
|
|
4
|
+
### Dependency Updates
|
|
5
|
+
|
|
6
|
+
* `core` updated to version `8.0.0`
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* Added `@nx/devkit` to `peerDependencies` ([2e2dd2b](https://github.com/TriPSs/nx-extend/commit/2e2dd2b997699f9d949b84cd8e96674b43725e56))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### BREAKING CHANGES
|
|
14
|
+
|
|
15
|
+
* `@nx/devkit` no longer included as dependency
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
2
19
|
# [9.0.0](https://github.com/TriPSs/nx-extend/compare/vercel@8.1.1...vercel@9.0.0) (2024-07-04)
|
|
3
20
|
|
|
4
21
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx-extend/vercel",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "10.0.0",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"nx",
|
|
6
6
|
"vercel"
|
|
@@ -15,15 +15,18 @@
|
|
|
15
15
|
},
|
|
16
16
|
"license": "MIT",
|
|
17
17
|
"main": "src/index.js",
|
|
18
|
+
"peerDependencies": {
|
|
19
|
+
"@nx/devkit": "^19.6.0"
|
|
20
|
+
},
|
|
18
21
|
"builders": "./executors.json",
|
|
19
22
|
"generators": "./generators.json",
|
|
20
23
|
"dependencies": {
|
|
21
24
|
"@actions/core": "^1.10.1",
|
|
22
|
-
"@nx/devkit": "19.3.0",
|
|
23
|
-
"@nx/workspace": "19.3.0",
|
|
24
25
|
"shelljs": "^0.8.5",
|
|
25
|
-
"@nx-extend/core": "
|
|
26
|
-
"tslib": "2.6.
|
|
26
|
+
"@nx-extend/core": "8.0.0",
|
|
27
|
+
"tslib": "2.6.3"
|
|
27
28
|
},
|
|
28
|
-
"
|
|
29
|
+
"packageManager": "yarn@4.3.1",
|
|
30
|
+
"type": "commonjs",
|
|
31
|
+
"types": "./src/index.d.ts"
|
|
29
32
|
}
|
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.buildExecutor =
|
|
3
|
+
exports.buildExecutor = buildExecutor;
|
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
|
5
5
|
const parse_target_string_1 = require("@nx/devkit/src/executors/parse-target-string");
|
|
6
|
-
const project_graph_1 = require("@nx/workspace/src/core/project-graph");
|
|
7
6
|
const core_1 = require("@nx-extend/core");
|
|
8
7
|
const fs_1 = require("fs");
|
|
9
8
|
const path_1 = require("path");
|
|
10
9
|
const add_env_variables_to_file_1 = require("../../utils/add-env-variables-to-file");
|
|
11
10
|
const enrich_vercel_env_file_1 = require("../../utils/enrich-vercel-env-file");
|
|
12
11
|
const get_env_vars_1 = require("../../utils/get-env-vars");
|
|
13
|
-
const get_output_directory_from_build_target_1 = require("../../utils/get-output-directory-from-build-target");
|
|
14
12
|
const vercel_token_1 = require("../../utils/vercel-token");
|
|
15
13
|
const get_output_directory_1 = require("./utils/get-output-directory");
|
|
16
14
|
function buildExecutor(options, context) {
|
|
@@ -19,7 +17,7 @@ function buildExecutor(options, context) {
|
|
|
19
17
|
if (!buildTarget.includes(':')) {
|
|
20
18
|
buildTarget = `${context.projectName}:${buildTarget}`;
|
|
21
19
|
}
|
|
22
|
-
const targetString = (0, devkit_1.parseTargetString)(buildTarget, (0,
|
|
20
|
+
const targetString = (0, devkit_1.parseTargetString)(buildTarget, (0, devkit_1.readCachedProjectGraph)());
|
|
23
21
|
if (!options.orgId) {
|
|
24
22
|
throw new Error(`"orgId" option is required!`);
|
|
25
23
|
}
|
|
@@ -29,7 +27,7 @@ function buildExecutor(options, context) {
|
|
|
29
27
|
if (!targetString) {
|
|
30
28
|
throw new Error(`Invalid build target "${buildTarget}"!`);
|
|
31
29
|
}
|
|
32
|
-
const outputDirectory = options.outputPath || (0,
|
|
30
|
+
const outputDirectory = options.outputPath || (0, core_1.getOutputDirectoryFromBuildTarget)(context, buildTarget);
|
|
33
31
|
if (!outputDirectory) {
|
|
34
32
|
throw new Error(`"${buildTarget}" target has no "outputPath" configured!`);
|
|
35
33
|
}
|
|
@@ -100,6 +98,5 @@ function buildExecutor(options, context) {
|
|
|
100
98
|
}
|
|
101
99
|
return Promise.resolve({ success });
|
|
102
100
|
}
|
|
103
|
-
exports.buildExecutor = buildExecutor;
|
|
104
101
|
exports.default = buildExecutor;
|
|
105
102
|
//# sourceMappingURL=build.impl.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build.impl.js","sourceRoot":"","sources":["../../../../../../packages/vercel/src/executors/build/build.impl.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"build.impl.js","sourceRoot":"","sources":["../../../../../../packages/vercel/src/executors/build/build.impl.ts"],"names":[],"mappings":";;AA+BA,sCAyHC;AAxJD,uCAAkH;AAClH,sFAAmF;AACnF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BAAqB,EACrB,IAAA,WAAI,EAAC,eAAe,EAAE,eAAe,CAAC,EACtC,aAAa,CACd,CAAA;QACD,8BAA8B;QAC9B,IAAA,eAAQ,EACN,OAAO,CAAC,IAAI,EACZ,IAAA,WAAI,EAAC,eAAe,EAAE,eAAe,CAAC,EACtC,eAAe,CAChB,CAAA;IACH,CAAC;IAED,OAAO,OAAO,CAAC,OAAO,CAAC,EAAE,OAAO,EAAE,CAAC,CAAA;AACrC,CAAC;AAED,kBAAe,aAAa,CAAA"}
|
|
@@ -1,7 +1,12 @@
|
|
|
1
|
-
import { parseTargetString, readJsonFile, workspaceRoot, writeJsonFile } from '@nx/devkit'
|
|
1
|
+
import { parseTargetString, readCachedProjectGraph, readJsonFile, workspaceRoot, writeJsonFile } from '@nx/devkit'
|
|
2
2
|
import { targetToTargetString } from '@nx/devkit/src/executors/parse-target-string'
|
|
3
|
-
import {
|
|
4
|
-
|
|
3
|
+
import {
|
|
4
|
+
buildCommand,
|
|
5
|
+
copyFile,
|
|
6
|
+
execCommand,
|
|
7
|
+
getOutputDirectoryFromBuildTarget,
|
|
8
|
+
USE_VERBOSE_LOGGING
|
|
9
|
+
} from '@nx-extend/core'
|
|
5
10
|
import { existsSync, rmSync } from 'fs'
|
|
6
11
|
import { join } from 'path'
|
|
7
12
|
|
|
@@ -10,7 +15,6 @@ import type { ExecutorContext } from '@nx/devkit'
|
|
|
10
15
|
import { addEnvVariablesToFile } from '../../utils/add-env-variables-to-file'
|
|
11
16
|
import { enrichVercelEnvFile } from '../../utils/enrich-vercel-env-file'
|
|
12
17
|
import { getEnvVars } from '../../utils/get-env-vars'
|
|
13
|
-
import { getOutputDirectoryFromBuildTarget } from '../../utils/get-output-directory-from-build-target'
|
|
14
18
|
import { vercelToken } from '../../utils/vercel-token'
|
|
15
19
|
import { getOutputDirectory } from './utils/get-output-directory'
|
|
16
20
|
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.deployExecutor =
|
|
3
|
+
exports.deployExecutor = deployExecutor;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const githubCore = require("@actions/core");
|
|
6
6
|
const core_1 = require("@nx-extend/core");
|
|
7
7
|
const fs_1 = require("fs");
|
|
8
8
|
const path_1 = require("path");
|
|
9
|
-
const get_output_directory_from_build_target_1 = require("../../utils/get-output-directory-from-build-target");
|
|
10
9
|
const vercel_token_1 = require("../../utils/vercel-token");
|
|
11
10
|
function deployExecutor(options, context) {
|
|
12
11
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
@@ -14,7 +13,7 @@ function deployExecutor(options, context) {
|
|
|
14
13
|
const { targets } = context.workspace.projects[context.projectName];
|
|
15
14
|
let outputDirectory = '';
|
|
16
15
|
if (options.buildTarget) {
|
|
17
|
-
outputDirectory = (0,
|
|
16
|
+
outputDirectory = (0, core_1.getOutputDirectoryFromBuildTarget)(context, options.buildTarget);
|
|
18
17
|
}
|
|
19
18
|
else {
|
|
20
19
|
const projectVercelBuildTarget = Object.keys(targets).find((target) => (targets[target].executor === '@nx-extend/vercel:build'));
|
|
@@ -23,7 +22,7 @@ function deployExecutor(options, context) {
|
|
|
23
22
|
if (!projectBuildTarget.includes(':')) {
|
|
24
23
|
projectBuildTarget = `${context.projectName}:${projectBuildTarget}`;
|
|
25
24
|
}
|
|
26
|
-
outputDirectory = (0,
|
|
25
|
+
outputDirectory = (0, core_1.getOutputDirectoryFromBuildTarget)(context, projectBuildTarget);
|
|
27
26
|
}
|
|
28
27
|
}
|
|
29
28
|
if (!outputDirectory) {
|
|
@@ -58,6 +57,5 @@ function deployExecutor(options, context) {
|
|
|
58
57
|
return { success };
|
|
59
58
|
});
|
|
60
59
|
}
|
|
61
|
-
exports.deployExecutor = deployExecutor;
|
|
62
60
|
exports.default = deployExecutor;
|
|
63
61
|
//# sourceMappingURL=deploy.impl.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deploy.impl.js","sourceRoot":"","sources":["../../../../../../packages/vercel/src/executors/deploy/deploy.impl.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"deploy.impl.js","sourceRoot":"","sources":["../../../../../../packages/vercel/src/executors/deploy/deploy.impl.ts"],"names":[],"mappings":";;AAqBA,wCAkEC;;AAvFD,4CAA2C;AAC3C,0CAMwB;AACxB,2BAA+B;AAC/B,+BAA2B;AAI3B,2DAAsD;AAQtD,SAAsB,cAAc,CAClC,OAAsB,EACtB,OAAwB;;;QAExB,MAAM,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,SAAS,CAAC,QAAQ,CAAC,OAAO,CAAC,WAAW,CAAC,CAAA;QAEnE,IAAI,eAAe,GAAG,EAAE,CAAA;QAExB,IAAI,OAAO,CAAC,WAAW,EAAE,CAAC;YACxB,eAAe,GAAG,IAAA,wCAAiC,EAAC,OAAO,EAAE,OAAO,CAAC,WAAW,CAAC,CAAA;QACnF,CAAC;aAAM,CAAC;YACN,MAAM,wBAAwB,GAAG,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CACrE,OAAO,CAAC,MAAM,CAAC,CAAC,QAAQ,KAAK,yBAAyB,CACvD,CAAC,CAAA;YAEF,IAAI,wBAAwB,EAAE,CAAC;gBAC7B,IAAI,kBAAkB,GAAG,CAAA,MAAA,MAAA,OAAO,CAAC,wBAAwB,CAAC,0CAAE,OAAO,0CAAE,WAAW,KAAI,YAAY,CAAA;gBAChG,IAAI,CAAC,kBAAkB,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;oBACtC,kBAAkB,GAAG,GAAG,OAAO,CAAC,WAAW,IAAI,kBAAkB,EAAE,CAAA;gBACrE,CAAC;gBAED,eAAe,GAAG,IAAA,wCAAiC,EAAC,OAAO,EAAE,kBAAkB,CAAC,CAAA;YAClF,CAAC;QACH,CAAC;QAED,IAAI,CAAC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EAAE,OAAO,EAAE,CAAA;IACpB,CAAC;CAAA;AAED,kBAAe,cAAc,CAAA"}
|
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
import * as githubCore from '@actions/core'
|
|
2
|
-
import {
|
|
2
|
+
import {
|
|
3
|
+
buildCommand,
|
|
4
|
+
execCommand,
|
|
5
|
+
getOutputDirectoryFromBuildTarget,
|
|
6
|
+
isCI,
|
|
7
|
+
USE_VERBOSE_LOGGING
|
|
8
|
+
} from '@nx-extend/core'
|
|
3
9
|
import { existsSync } from 'fs'
|
|
4
10
|
import { join } from 'path'
|
|
5
11
|
|
|
6
12
|
import type { ExecutorContext } from '@nx/devkit'
|
|
7
13
|
|
|
8
|
-
import { getOutputDirectoryFromBuildTarget } from '../../utils/get-output-directory-from-build-target'
|
|
9
14
|
import { vercelToken } from '../../utils/vercel-token'
|
|
10
15
|
|
|
11
16
|
export interface DeployOptions {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = AddVercel;
|
|
3
4
|
const tslib_1 = require("tslib");
|
|
4
5
|
const core_1 = require("@nx-extend/core");
|
|
5
6
|
function AddVercel(host, options) {
|
|
@@ -10,5 +11,4 @@ function AddVercel(host, options) {
|
|
|
10
11
|
// ]))
|
|
11
12
|
});
|
|
12
13
|
}
|
|
13
|
-
exports.default = AddVercel;
|
|
14
14
|
//# sourceMappingURL=add.impl.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add.impl.js","sourceRoot":"","sources":["../../../../../../packages/vercel/src/generators/add/add.impl.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"add.impl.js","sourceRoot":"","sources":["../../../../../../packages/vercel/src/generators/add/add.impl.ts"],"names":[],"mappings":";;AASA,4BAKC;;AAbD,0CAA2D;AAQ3D,SAA8B,SAAS,CAAC,IAAU,EAAE,OAAmB;;QACrE,IAAA,kBAAW,EAAC,aAAa,CAAC,CAAA;QAC1B,6BAA6B;QAC7B,8CAA8C;QAC9C,MAAM;IACR,CAAC;CAAA"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getOutputDirectoryFromBuildTarget = void 0;
|
|
4
|
-
const devkit_1 = require("@nx/devkit");
|
|
5
|
-
const project_graph_1 = require("@nx/workspace/src/core/project-graph");
|
|
6
|
-
function getOutputDirectoryFromBuildTarget(context, buildTarget) {
|
|
7
|
-
const targetString = (0, devkit_1.parseTargetString)(buildTarget, (0, project_graph_1.readCachedProjectGraph)());
|
|
8
|
-
const targetOptions = (0, devkit_1.readTargetOptions)(targetString, context);
|
|
9
|
-
const outputDirectory = targetOptions === null || targetOptions === void 0 ? void 0 : targetOptions.outputPath;
|
|
10
|
-
if (!outputDirectory && (targetOptions === null || targetOptions === void 0 ? void 0 : targetOptions.buildTarget)) {
|
|
11
|
-
return getOutputDirectoryFromBuildTarget(context, targetOptions === null || targetOptions === void 0 ? void 0 : targetOptions.buildTarget);
|
|
12
|
-
}
|
|
13
|
-
return outputDirectory;
|
|
14
|
-
}
|
|
15
|
-
exports.getOutputDirectoryFromBuildTarget = getOutputDirectoryFromBuildTarget;
|
|
16
|
-
//# sourceMappingURL=get-output-directory-from-build-target.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-output-directory-from-build-target.js","sourceRoot":"","sources":["../../../../../packages/vercel/src/utils/get-output-directory-from-build-target.ts"],"names":[],"mappings":";;;AAAA,uCAAkF;AAClF,wEAA6E;AAE7E,SAAgB,iCAAiC,CAAC,OAAwB,EAAE,WAAmB;IAC7F,MAAM,YAAY,GAAG,IAAA,0BAAiB,EAAC,WAAW,EAAE,IAAA,sCAAsB,GAAE,CAAC,CAAA;IAC7E,MAAM,aAAa,GAAG,IAAA,0BAAiB,EAAC,YAAY,EAAE,OAAO,CAAC,CAAA;IAC9D,MAAM,eAAe,GAAG,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,UAAU,CAAA;IAEjD,IAAI,CAAC,eAAe,KAAI,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,WAAW,CAAA,EAAE,CAAC;QACnD,OAAO,iCAAiC,CAAC,OAAO,EAAE,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,WAAW,CAAC,CAAA;IAC/E,CAAC;IAED,OAAO,eAAe,CAAA;AACxB,CAAC;AAVD,8EAUC"}
|