@nx/js 22.6.0-pr.34728.66566c0 → 22.6.0-pr.34746.a1e500d
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/js",
|
|
3
|
-
"version": "22.6.0-pr.
|
|
3
|
+
"version": "22.6.0-pr.34746.a1e500d",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "The JS plugin for Nx contains executors and generators that provide the best experience for developing JavaScript and TypeScript projects. ",
|
|
6
6
|
"repository": {
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
"@babel/preset-env": "^7.23.2",
|
|
40
40
|
"@babel/preset-typescript": "^7.22.5",
|
|
41
41
|
"@babel/runtime": "^7.22.6",
|
|
42
|
-
"@nx/devkit": "22.6.0-pr.
|
|
43
|
-
"@nx/workspace": "22.6.0-pr.
|
|
42
|
+
"@nx/devkit": "22.6.0-pr.34746.a1e500d",
|
|
43
|
+
"@nx/workspace": "22.6.0-pr.34746.a1e500d",
|
|
44
44
|
"@zkochan/js-yaml": "0.0.7",
|
|
45
45
|
"babel-plugin-const-enum": "^1.0.1",
|
|
46
46
|
"babel-plugin-macros": "^3.1.0",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"tslib": "^2.3.0"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
|
-
"nx": "22.6.0-pr.
|
|
63
|
+
"nx": "22.6.0-pr.34746.a1e500d"
|
|
64
64
|
},
|
|
65
65
|
"peerDependencies": {
|
|
66
66
|
"verdaccio": "^6.0.5"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../../../packages/js/src/plugins/typescript/plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAQL,KAAK,kBAAkB,EAEvB,KAAK,aAAa,EAInB,MAAM,YAAY,CAAC;AA+BpB,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;IAC1B,SAAS,CAAC,EACN,OAAO,GACP;QACE,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB,CAAC;IACN,KAAK,CAAC,EACF,OAAO,GACP;QACE,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,aAAa,CAAC,EAAE,MAAM,CAAC;QACvB,aAAa,CAAC,EAAE,MAAM,CAAC;QACvB,cAAc,CAAC,EAAE,OAAO,CAAC;KAC1B,CAAC;IACN,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;
|
|
1
|
+
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../../../packages/js/src/plugins/typescript/plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAQL,KAAK,kBAAkB,EAEvB,KAAK,aAAa,EAInB,MAAM,YAAY,CAAC;AA+BpB,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;IAC1B,SAAS,CAAC,EACN,OAAO,GACP;QACE,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB,CAAC;IACN,KAAK,CAAC,EACF,OAAO,GACP;QACE,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,aAAa,CAAC,EAAE,MAAM,CAAC;QACvB,aAAa,CAAC,EAAE,MAAM,CAAC;QACvB,cAAc,CAAC,EAAE,OAAO,CAAC;KAC1B,CAAC;IACN,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AA2KD;;GAEG;AACH,eAAO,MAAM,kBAAkB,EAAE,kBAEhC,CAAC;AAEF,eAAO,MAAM,WAAW,sBAAsB,CAAC;AAI/C,eAAO,MAAM,aAAa,EAAE,aAAa,CAAC,gBAAgB,CA0FzD,CAAC;AAEF,eAAO,MAAM,WAAW,iCAAgB,CAAC"}
|
|
@@ -166,7 +166,8 @@ async function resolveValidConfigFilesAndHashes(configFilePaths, options, option
|
|
|
166
166
|
const absolutePath = (0, node_path_1.join)(context.workspaceRoot, configFilePath);
|
|
167
167
|
const configContext = getConfigContext(absolutePath, context.workspaceRoot, cache);
|
|
168
168
|
// Skip configs that can't produce any targets based on plugin options
|
|
169
|
-
const isTypecheckConfig = configContext.basename ===
|
|
169
|
+
const isTypecheckConfig = configContext.basename ===
|
|
170
|
+
(options.typecheck ? options.typecheck.configName : 'tsconfig.json');
|
|
170
171
|
const isBuildConfig = options.build && configContext.basename === options.build.configName;
|
|
171
172
|
if (!isTypecheckConfig && !isBuildConfig) {
|
|
172
173
|
continue;
|
|
@@ -248,8 +249,8 @@ function buildTscTargets(config, options, context, configFiles, cache) {
|
|
|
248
249
|
const namedInputs = (0, get_named_inputs_1.getNamedInputs)(config.project.root, context);
|
|
249
250
|
const tsConfig = retrieveTsConfigFromCache(config.absolutePath, context.workspaceRoot, cache);
|
|
250
251
|
let internalProjectReferences;
|
|
251
|
-
if (
|
|
252
|
-
options.typecheck &&
|
|
252
|
+
if (options.typecheck &&
|
|
253
|
+
config.basename === options.typecheck.configName &&
|
|
253
254
|
tsConfig.raw?.['nx']?.addTypecheckTarget !== false) {
|
|
254
255
|
internalProjectReferences = resolveInternalProjectReferences(tsConfig, context.workspaceRoot, config.project, cache);
|
|
255
256
|
const externalProjectReferences = resolveShallowExternalProjectReferences(tsConfig, context.workspaceRoot, config.project, cache);
|
|
@@ -765,7 +766,9 @@ function normalizePluginOptions(pluginOptions = {}) {
|
|
|
765
766
|
const defaultCompiler = 'tsc';
|
|
766
767
|
const compiler = pluginOptions.compiler ?? defaultCompiler;
|
|
767
768
|
const defaultTypecheckTargetName = 'typecheck';
|
|
769
|
+
const defaultTypecheckConfigName = 'tsconfig.json';
|
|
768
770
|
let typecheck = {
|
|
771
|
+
configName: defaultTypecheckConfigName,
|
|
769
772
|
targetName: defaultTypecheckTargetName,
|
|
770
773
|
};
|
|
771
774
|
if (pluginOptions.typecheck === false) {
|
|
@@ -774,6 +777,7 @@ function normalizePluginOptions(pluginOptions = {}) {
|
|
|
774
777
|
else if (pluginOptions.typecheck &&
|
|
775
778
|
typeof pluginOptions.typecheck !== 'boolean') {
|
|
776
779
|
typecheck = {
|
|
780
|
+
configName: pluginOptions.typecheck.configName ?? defaultTypecheckConfigName,
|
|
777
781
|
targetName: pluginOptions.typecheck.targetName ?? defaultTypecheckTargetName,
|
|
778
782
|
};
|
|
779
783
|
}
|