@nx/js 24.0.0-beta.3 → 24.0.0-beta.4
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.
|
@@ -696,14 +696,9 @@ function getBuildExecutor(bundler) {
|
|
|
696
696
|
switch (bundler) {
|
|
697
697
|
case 'esbuild':
|
|
698
698
|
return `@nx/esbuild:esbuild`;
|
|
699
|
-
case 'rollup':
|
|
700
|
-
return `@nx/rollup:rollup`;
|
|
701
699
|
case 'swc':
|
|
702
700
|
case 'tsc':
|
|
703
701
|
return `@nx/js:${bundler}`;
|
|
704
|
-
case 'vite':
|
|
705
|
-
return `@nx/vite:build`;
|
|
706
|
-
case 'none':
|
|
707
702
|
default:
|
|
708
703
|
return undefined;
|
|
709
704
|
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { ExecutorContext } from '@nx/devkit';
|
|
2
2
|
import { NormalizedSwcExecutorOptions } from '../schema';
|
|
3
|
+
import { TypeCheckOptions } from '../typescript/run-type-check';
|
|
3
4
|
export declare function getSwcCmd({ swcCliOptions: { swcrcPath, destPath, stripLeadingPaths }, root, projectRoot, sourceRoot, main, }: NormalizedSwcExecutorOptions, watch?: boolean): string;
|
|
5
|
+
export declare function getTypeCheckOptions(normalizedOptions: NormalizedSwcExecutorOptions): TypeCheckOptions;
|
|
4
6
|
export declare function compileSwc(context: ExecutorContext, normalizedOptions: NormalizedSwcExecutorOptions, postCompilationCallback: () => Promise<void>): Promise<{
|
|
5
7
|
success: boolean;
|
|
6
8
|
outfile?: undefined;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getSwcCmd = getSwcCmd;
|
|
4
|
+
exports.getTypeCheckOptions = getTypeCheckOptions;
|
|
4
5
|
exports.compileSwc = compileSwc;
|
|
5
6
|
exports.compileSwcWatch = compileSwcWatch;
|
|
6
7
|
const devkit_1 = require("@nx/devkit");
|
|
@@ -45,7 +46,7 @@ function getTypeCheckOptions(normalizedOptions) {
|
|
|
45
46
|
tsConfigPath: tsConfig,
|
|
46
47
|
outDir: outputPath,
|
|
47
48
|
workspaceRoot: root,
|
|
48
|
-
rootDir: inputDir,
|
|
49
|
+
rootDir: (0, node_path_1.join)(root, inputDir),
|
|
49
50
|
};
|
|
50
51
|
if (watch) {
|
|
51
52
|
typeCheckOptions.incremental = true;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/js",
|
|
3
|
-
"version": "24.0.0-beta.
|
|
3
|
+
"version": "24.0.0-beta.4",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"files": [
|
|
@@ -154,8 +154,8 @@
|
|
|
154
154
|
"@babel/preset-env": "^7.23.2",
|
|
155
155
|
"@babel/preset-typescript": "^7.22.5",
|
|
156
156
|
"@babel/runtime": "^7.22.6",
|
|
157
|
-
"@nx/devkit": "24.0.0-beta.
|
|
158
|
-
"@nx/workspace": "24.0.0-beta.
|
|
157
|
+
"@nx/devkit": "24.0.0-beta.4",
|
|
158
|
+
"@nx/workspace": "24.0.0-beta.4",
|
|
159
159
|
"@zkochan/js-yaml": "0.0.7",
|
|
160
160
|
"babel-plugin-const-enum": "^1.0.1",
|
|
161
161
|
"babel-plugin-macros": "^3.1.0",
|
|
@@ -175,14 +175,14 @@
|
|
|
175
175
|
"tslib": "^2.3.0"
|
|
176
176
|
},
|
|
177
177
|
"devDependencies": {
|
|
178
|
-
"@nx/esbuild": "24.0.0-beta.
|
|
179
|
-
"@nx/eslint": "24.0.0-beta.
|
|
180
|
-
"@nx/jest": "24.0.0-beta.
|
|
181
|
-
"@nx/oxlint": "24.0.0-beta.
|
|
182
|
-
"@nx/rollup": "24.0.0-beta.
|
|
183
|
-
"@nx/vite": "24.0.0-beta.
|
|
184
|
-
"@nx/vitest": "24.0.0-beta.
|
|
185
|
-
"nx": "24.0.0-beta.
|
|
178
|
+
"@nx/esbuild": "24.0.0-beta.4",
|
|
179
|
+
"@nx/eslint": "24.0.0-beta.4",
|
|
180
|
+
"@nx/jest": "24.0.0-beta.4",
|
|
181
|
+
"@nx/oxlint": "24.0.0-beta.4",
|
|
182
|
+
"@nx/rollup": "24.0.0-beta.4",
|
|
183
|
+
"@nx/vite": "24.0.0-beta.4",
|
|
184
|
+
"@nx/vitest": "24.0.0-beta.4",
|
|
185
|
+
"nx": "24.0.0-beta.4"
|
|
186
186
|
},
|
|
187
187
|
"peerDependencies": {
|
|
188
188
|
"@swc/cli": ">=0.6.0 <0.9.0",
|