diff --git a/actions/plan/dist/index.js b/actions/plan/dist/index.js index 67c568b1..3d8a6d67 100644 --- a/actions/plan/dist/index.js +++ b/actions/plan/dist/index.js @@ -291245,6 +291245,21 @@ module.exports = webpackEmptyContext; /***/ }), +/***/ 47064: +/***/ ((module) => { + +function webpackEmptyContext(req) { + var e = new Error("Cannot find module '" + req + "'"); + e.code = 'MODULE_NOT_FOUND'; + throw e; +} +webpackEmptyContext.keys = () => ([]); +webpackEmptyContext.resolve = webpackEmptyContext; +webpackEmptyContext.id = 47064; +module.exports = webpackEmptyContext; + +/***/ }), + /***/ 35115: /***/ ((module) => { @@ -294589,6 +294604,7 @@ const tree_1 = __nccwpck_require__(10818); const project_graph_1 = __nccwpck_require__(54913); const logger_1 = __nccwpck_require__(37270); const params_1 = __nccwpck_require__(55457); +const handle_errors_1 = __nccwpck_require__(41377); const local_plugins_1 = __nccwpck_require__(6335); const print_help_1 = __nccwpck_require__(51958); const workspace_root_1 = __nccwpck_require__(64393); @@ -294783,7 +294799,7 @@ function printGenHelp(opts, schema, normalizedGeneratorName, aliases) { }); } async function generate(cwd, args) { - return (0, params_1.handleErrors)(args.verbose, async () => { + return (0, handle_errors_1.handleErrors)(args.verbose, async () => { const nxJsonConfiguration = (0, configuration_1.readNxJson)(); const projectGraph = await (0, project_graph_1.createProjectGraphAsync)(); const projectsConfigurations = (0, project_graph_1.readProjectsConfigurationFromProjectGraph)(projectGraph); @@ -295616,6 +295632,13 @@ class DaemonClient { }; return this.sendToDaemonViaQueue(message); } + async getEstimatedTaskTimings(targets) { + const message = { + type: task_history_1.GET_ESTIMATED_TASK_TIMINGS, + targets, + }; + return this.sendToDaemonViaQueue(message); + } recordTaskRuns(taskRuns) { const message = { type: task_history_1.RECORD_TASK_RUNS, @@ -296095,17 +296118,25 @@ function isHandleHashGlobMessage(message) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.RECORD_TASK_RUNS = exports.GET_FLAKY_TASKS = void 0; +exports.RECORD_TASK_RUNS = exports.GET_ESTIMATED_TASK_TIMINGS = exports.GET_FLAKY_TASKS = void 0; exports.isHandleGetFlakyTasksMessage = isHandleGetFlakyTasksMessage; +exports.isHandleGetEstimatedTaskTimings = isHandleGetEstimatedTaskTimings; exports.isHandleWriteTaskRunsToHistoryMessage = isHandleWriteTaskRunsToHistoryMessage; exports.GET_FLAKY_TASKS = 'GET_FLAKY_TASKS'; +exports.GET_ESTIMATED_TASK_TIMINGS = 'GET_ESTIMATED_TASK_TIMINGS'; +exports.RECORD_TASK_RUNS = 'RECORD_TASK_RUNS'; function isHandleGetFlakyTasksMessage(message) { return (typeof message === 'object' && message !== null && 'type' in message && message['type'] === exports.GET_FLAKY_TASKS); } -exports.RECORD_TASK_RUNS = 'RECORD_TASK_RUNS'; +function isHandleGetEstimatedTaskTimings(message) { + return (typeof message === 'object' && + message !== null && + 'type' in message && + message['type'] === exports.GET_ESTIMATED_TASK_TIMINGS); +} function isHandleWriteTaskRunsToHistoryMessage(message) { return (typeof message === 'object' && message !== null && @@ -296290,9 +296321,9 @@ Object.defineProperty(exports, "__esModule", ({ value: true })); exports.handleFlushSyncGeneratorChangesToDisk = handleFlushSyncGeneratorChangesToDisk; const sync_generators_1 = __nccwpck_require__(75498); async function handleFlushSyncGeneratorChangesToDisk(generators) { - await (0, sync_generators_1.flushSyncGeneratorChangesToDisk)(generators); + const result = await (0, sync_generators_1.flushSyncGeneratorChangesToDisk)(generators); return { - response: '{}', + response: JSON.stringify(result), description: 'handleFlushSyncGeneratorChangesToDisk', }; } @@ -296375,12 +296406,14 @@ exports.handleGetSyncGeneratorChanges = handleGetSyncGeneratorChanges; const sync_generators_1 = __nccwpck_require__(75498); async function handleGetSyncGeneratorChanges(generators) { const changes = await (0, sync_generators_1.getCachedSyncGeneratorChanges)(generators); - // strip out the content of the changes and any potential callback - const result = changes.map((change) => ({ - generatorName: change.generatorName, - changes: change.changes.map((c) => ({ ...c, content: null })), - outOfSyncMessage: change.outOfSyncMessage, - })); + const result = changes.map((change) => 'error' in change + ? change + : // strip out the content of the changes and any potential callback + { + generatorName: change.generatorName, + changes: change.changes.map((c) => ({ ...c, content: null })), + outOfSyncMessage: change.outOfSyncMessage, + }); return { response: JSON.stringify(result), description: 'handleGetSyncGeneratorChanges', @@ -296663,16 +296696,10 @@ async function handleRequestShutdown(server, numberOfConnections) { Object.defineProperty(exports, "__esModule", ({ value: true })); exports.handleRecordTaskRuns = handleRecordTaskRuns; exports.handleGetFlakyTasks = handleGetFlakyTasks; +exports.handleGetEstimatedTaskTimings = handleGetEstimatedTaskTimings; const task_history_1 = __nccwpck_require__(83523); -let taskHistory; -function getTaskHistory() { - if (!taskHistory) { - taskHistory = new task_history_1.TaskHistory(); - } - return taskHistory; -} async function handleRecordTaskRuns(taskRuns) { - const taskHistory = getTaskHistory(); + const taskHistory = (0, task_history_1.getTaskHistory)(); await taskHistory.recordTaskRuns(taskRuns); return { response: 'true', @@ -296680,13 +296707,21 @@ async function handleRecordTaskRuns(taskRuns) { }; } async function handleGetFlakyTasks(hashes) { - const taskHistory = getTaskHistory(); + const taskHistory = (0, task_history_1.getTaskHistory)(); const history = await taskHistory.getFlakyTasks(hashes); return { response: JSON.stringify(history), description: 'handleGetFlakyTasks', }; } +async function handleGetEstimatedTaskTimings(targets) { + const taskHistory = (0, task_history_1.getTaskHistory)(); + const history = await taskHistory.getEstimatedTaskTimings(targets); + return { + response: JSON.stringify(history), + description: 'handleGetEstimatedTaskTimings', + }; +} /***/ }), @@ -297350,10 +297385,13 @@ async function handleMessage(socket, data) { await handleResult(socket, hash_glob_1.HASH_GLOB, () => (0, handle_hash_glob_1.handleHashGlob)(payload.globs, payload.exclude)); } else if ((0, task_history_1.isHandleGetFlakyTasksMessage)(payload)) { - await handleResult(socket, 'GET_TASK_HISTORY_FOR_HASHES', () => (0, handle_task_history_1.handleGetFlakyTasks)(payload.hashes)); + await handleResult(socket, task_history_1.GET_FLAKY_TASKS, () => (0, handle_task_history_1.handleGetFlakyTasks)(payload.hashes)); + } + else if ((0, task_history_1.isHandleGetEstimatedTaskTimings)(payload)) { + await handleResult(socket, task_history_1.GET_ESTIMATED_TASK_TIMINGS, () => (0, handle_task_history_1.handleGetEstimatedTaskTimings)(payload.targets)); } else if ((0, task_history_1.isHandleWriteTaskRunsToHistoryMessage)(payload)) { - await handleResult(socket, 'WRITE_TASK_RUNS_TO_HISTORY', () => (0, handle_task_history_1.handleRecordTaskRuns)(payload.taskRuns)); + await handleResult(socket, task_history_1.RECORD_TASK_RUNS, () => (0, handle_task_history_1.handleRecordTaskRuns)(payload.taskRuns)); } else if ((0, force_shutdown_1.isHandleForceShutdownMessage)(payload)) { await handleResult(socket, 'FORCE_SHUTDOWN', () => (0, handle_force_shutdown_1.handleForceShutdown)(server)); @@ -297751,7 +297789,7 @@ async function flushSyncGeneratorChangesToDisk(generators) { for (const generator of generators) { syncGeneratorsCacheResultPromises.delete(generator); } - await (0, sync_generators_1.flushSyncGeneratorChanges)(results); + return await (0, sync_generators_1.flushSyncGeneratorChanges)(results); } function collectAndScheduleSyncGenerators(projectGraph) { if (!projectGraph) { @@ -297883,6 +297921,7 @@ async function processConflictingGenerators(conflicts, initialResults) { const conflictRunResults = (await Promise.all(conflicts.map((generators) => { const [firstGenerator, ...generatorsToRun] = generators; // it must exists because the conflicts were identified from the initial results + // and it's guaranteed to be a success result const firstGeneratorResult = initialResults.find((r) => r.generatorName === firstGenerator); const tree = new tree_1.FsTree(workspace_root_1.workspaceRoot, false, `running sync generators ${generators.join(',')}`); // pre-apply the changes from the first generator to avoid running it @@ -297926,6 +297965,9 @@ async function processConflictingGenerators(conflicts, initialResults) { function _getConflictingGeneratorGroups(results) { const changedFileToGeneratorMap = new Map(); for (const result of results) { + if ('error' in result) { + continue; + } for (const change of result.changes) { if (!changedFileToGeneratorMap.has(change.path)) { changedFileToGeneratorMap.set(change.path, new Set()); @@ -298010,7 +298052,12 @@ function runGenerator(generator, projects, tree) { scheduledGenerators.delete(generator); tree ??= new tree_1.FsTree(workspace_root_1.workspaceRoot, false, `running sync generator ${generator}`); return (0, sync_generators_1.runSyncGenerator)(tree, generator, projects).then((result) => { - log(generator, 'changes:', result.changes.map((c) => c.path).join(', ')); + if ('error' in result) { + log(generator, 'error:', result.error.message); + } + else { + log(generator, 'changes:', result.changes.map((c) => c.path).join(', ')); + } return result; }); } @@ -300578,10 +300625,17 @@ function registerTsProject(path, configFilename) { // Based on limited testing, it doesn't seem to matter if we register it multiple times, but just in // case let's keep a flag to prevent it. if (!isTsEsmLoaderRegistered) { + // We need a way to ensure that `.ts` files are treated as ESM not CJS. + // Since there is no way to pass compilerOptions like we do with the programmatic API, we should default + // the environment variable that ts-node checks. + process.env.TS_NODE_COMPILER_OPTIONS ??= JSON.stringify({ + moduleResolution: 'nodenext', + module: 'nodenext', + }); const module = __nccwpck_require__(82033); if (module.register && packageIsInstalled('ts-node/esm')) { const url = __nccwpck_require__(41041); - module.register(url.pathToFileURL(require.resolve('ts-node/esm'))); + module.register(url.pathToFileURL(/*require.resolve*/(92063))); } isTsEsmLoaderRegistered = true; } @@ -300800,7 +300854,7 @@ function warnNoTranspiler() { } function packageIsInstalled(m) { try { - const p = require.resolve(m); + const p = /*require.resolve*/(__nccwpck_require__(47064).resolve(m)); return true; } catch { @@ -301549,7 +301603,7 @@ class ProjectGraphError extends Error { tslib_1.__classPrivateFieldSet(this, _ProjectGraphError_partialProjectGraph, partialProjectGraph, "f"); tslib_1.__classPrivateFieldSet(this, _ProjectGraphError_partialSourceMaps, partialSourceMaps, "f"); this.stack = `${this.message}\n ${errors - .map((error) => error.stack.split('\n').join('\n ')) + .map((error) => indentString(formatErrorStackAndCause(error), 2)) .join('\n')}`; } /** @@ -301711,13 +301765,13 @@ class MergeNodesError extends Error { this.name = this.constructor.name; this.file = file; this.pluginName = pluginName; - this.stack = `${this.message}\n ${error.stack.split('\n').join('\n ')}`; + this.stack = `${this.message}\n${indentString(formatErrorStackAndCause(error), 2)}`; } } exports.MergeNodesError = MergeNodesError; class CreateMetadataError extends Error { constructor(error, plugin) { - super(`The "${plugin}" plugin threw an error while creating metadata:`, { + super(`The "${plugin}" plugin threw an error while creating metadata: ${error.message}`, { cause: error, }); this.error = error; @@ -301728,7 +301782,7 @@ class CreateMetadataError extends Error { exports.CreateMetadataError = CreateMetadataError; class ProcessDependenciesError extends Error { constructor(pluginName, { cause }) { - super(`The "${pluginName}" plugin threw an error while creating dependencies:`, { + super(`The "${pluginName}" plugin threw an error while creating dependencies: ${cause.message}`, { cause, }); this.pluginName = pluginName; @@ -301759,7 +301813,7 @@ class ProcessProjectGraphError extends Error { }); this.pluginName = pluginName; this.name = this.constructor.name; - this.stack = `${this.message}\n ${cause.stack.split('\n').join('\n ')}`; + this.stack = `${this.message}\n${indentString(cause, 2)}`; } } exports.ProcessProjectGraphError = ProcessProjectGraphError; @@ -301814,6 +301868,20 @@ class LoadPluginError extends Error { } } exports.LoadPluginError = LoadPluginError; +function indentString(str, indent) { + return (' '.repeat(indent) + + str + .split('\n') + .map((line) => ' '.repeat(indent) + line) + .join('\n')); +} +function formatErrorStackAndCause(error) { + const cause = error.cause && error.cause instanceof Error ? error.cause : null; + return (error.stack + + (cause + ? `\nCaused by: \n${indentString(cause.stack ?? cause.message, 2)}` + : '')); +} /***/ }), @@ -305691,10 +305759,21 @@ exports.getDbConnection = getDbConnection; const native_1 = __nccwpck_require__(71926); const cache_directory_1 = __nccwpck_require__(11622); const package_json_1 = __nccwpck_require__(89617); -let dbConnection; -function getDbConnection(directory = cache_directory_1.workspaceDataDirectory) { - dbConnection ??= (0, native_1.connectToNxDb)(directory, package_json_1.version); - return dbConnection; +const dbConnectionMap = new Map(); +function getDbConnection(opts = {}) { + opts.directory ??= cache_directory_1.workspaceDataDirectory; + const key = `${opts.directory}:${opts.dbName ?? 'default'}`; + const connection = getEntryOrSet(dbConnectionMap, key, () => (0, native_1.connectToNxDb)(opts.directory, package_json_1.version, opts.dbName)); + return connection; +} +function getEntryOrSet(map, key, defaultValue) { + const existing = map.get(key); + if (existing) { + return existing; + } + const val = defaultValue(); + map.set(key, val); + return val; } @@ -306111,6 +306190,85 @@ function isGlobPattern(pattern) { } +/***/ }), + +/***/ 41377: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.handleErrors = handleErrors; +const client_1 = __nccwpck_require__(76940); +const logger_1 = __nccwpck_require__(37270); +const output_1 = __nccwpck_require__(21862); +async function handleErrors(isVerbose, fn) { + try { + const result = await fn(); + if (typeof result === 'number') { + return result; + } + return 0; + } + catch (err) { + err ||= new Error('Unknown error caught'); + if (err.constructor.name === 'UnsuccessfulWorkflowExecution') { + logger_1.logger.error('The generator workflow failed. See above.'); + } + else if (err.name === 'ProjectGraphError') { + const projectGraphError = err; + let title = projectGraphError.message; + if (projectGraphError.cause && + typeof projectGraphError.cause === 'object' && + 'message' in projectGraphError.cause) { + title += ' ' + projectGraphError.cause.message + '.'; + } + if (isVerbose) { + title += ' See errors below.'; + } + const bodyLines = isVerbose + ? formatErrorStackAndCause(projectGraphError) + : ['Pass --verbose to see the stacktraces.']; + output_1.output.error({ + title, + bodyLines: bodyLines, + }); + } + else { + const lines = (err.message ? err.message : err.toString()).split('\n'); + const bodyLines = lines.slice(1); + if (isVerbose) { + bodyLines.push(...formatErrorStackAndCause(err)); + } + else if (err.stack) { + bodyLines.push('Pass --verbose to see the stacktrace.'); + } + output_1.output.error({ + title: lines[0], + bodyLines, + }); + } + if (client_1.daemonClient.enabled()) { + client_1.daemonClient.reset(); + } + return 1; + } +} +function formatErrorStackAndCause(error) { + return [ + error.stack || error.message, + ...(error.cause && typeof error.cause === 'object' + ? [ + 'Caused by:', + 'stack' in error.cause + ? error.cause.stack.toString() + : error.cause.toString(), + ] + : []), + ]; +} + + /***/ }), /***/ 22810: @@ -307359,7 +307517,6 @@ async function packageRegistryPack(cwd, pkg, version) { Object.defineProperty(exports, "__esModule", ({ value: true })); exports.SchemaError = void 0; -exports.handleErrors = handleErrors; exports.convertToCamelCase = convertToCamelCase; exports.coerceTypesInOptions = coerceTypesInOptions; exports.convertAliases = convertAliases; @@ -307373,55 +307530,6 @@ exports.warnDeprecations = warnDeprecations; exports.convertSmartDefaultsIntoNamedParams = convertSmartDefaultsIntoNamedParams; exports.getPromptsForSchema = getPromptsForSchema; const logger_1 = __nccwpck_require__(37270); -const output_1 = __nccwpck_require__(21862); -const client_1 = __nccwpck_require__(76940); -async function handleErrors(isVerbose, fn) { - try { - const result = await fn(); - if (typeof result === 'number') { - return result; - } - return 0; - } - catch (err) { - err ||= new Error('Unknown error caught'); - if (err.constructor.name === 'UnsuccessfulWorkflowExecution') { - logger_1.logger.error('The generator workflow failed. See above.'); - } - else if (err.name === 'ProjectGraphError') { - const projectGraphError = err; - let title = projectGraphError.message; - if (isVerbose) { - title += ' See errors below.'; - } - const bodyLines = isVerbose - ? [projectGraphError.stack] - : ['Pass --verbose to see the stacktraces.']; - output_1.output.error({ - title, - bodyLines: bodyLines, - }); - } - else { - const lines = (err.message ? err.message : err.toString()).split('\n'); - const bodyLines = lines.slice(1); - if (err.stack && !isVerbose) { - bodyLines.push('Pass --verbose to see the stacktrace.'); - } - output_1.output.error({ - title: lines[0], - bodyLines, - }); - if (err.stack && isVerbose) { - logger_1.logger.info(err.stack); - } - } - if (client_1.daemonClient.enabled()) { - client_1.daemonClient.reset(); - } - return 1; - } -} function camelCase(input) { if (input.indexOf('-') > 1) { return input @@ -308288,10 +308396,13 @@ async function getPluginCapabilities(workspaceRoot, pluginName, projects, includ projectGraphExtension: pluginModule && ('processProjectGraph' in pluginModule || 'createNodes' in pluginModule || + 'createNodesV2' in pluginModule || + 'createMetadata' in pluginModule || 'createDependencies' in pluginModule), projectInference: pluginModule && ('projectFilePatterns' in pluginModule || - 'createNodes' in pluginModule), + 'createNodes' in pluginModule || + 'createNodesV2' in pluginModule), }; } catch { @@ -308918,7 +309029,10 @@ exports.runSyncGenerator = runSyncGenerator; exports.collectEnabledTaskSyncGeneratorsFromProjectGraph = collectEnabledTaskSyncGeneratorsFromProjectGraph; exports.collectEnabledTaskSyncGeneratorsFromTaskGraph = collectEnabledTaskSyncGeneratorsFromTaskGraph; exports.collectRegisteredGlobalSyncGenerators = collectRegisteredGlobalSyncGenerators; -exports.syncGeneratorResultsToMessageLines = syncGeneratorResultsToMessageLines; +exports.getSyncGeneratorSuccessResultsMessageLines = getSyncGeneratorSuccessResultsMessageLines; +exports.getFailedSyncGeneratorsFixMessageLines = getFailedSyncGeneratorsFixMessageLines; +exports.getFlushFailureMessageLines = getFlushFailureMessageLines; +exports.processSyncGeneratorResultErrors = processSyncGeneratorResultErrors; const perf_hooks_1 = __nccwpck_require__(4074); const generate_1 = __nccwpck_require__(91867); const generator_utils_1 = __nccwpck_require__(85331); @@ -308941,15 +309055,13 @@ async function getSyncGeneratorChanges(generators) { } perf_hooks_1.performance.mark('get-sync-generators-changes:end'); perf_hooks_1.performance.measure('get-sync-generators-changes', 'get-sync-generators-changes:start', 'get-sync-generators-changes:end'); - return results.filter((r) => r.changes.length > 0); + return results.filter((r) => ('error' in r ? true : r.changes.length > 0)); } async function flushSyncGeneratorChanges(results) { if ((0, is_on_daemon_1.isOnDaemon)() || !client_1.daemonClient.enabled()) { - await flushSyncGeneratorChangesToDisk(results); - } - else { - await client_1.daemonClient.flushSyncGeneratorChangesToDisk(results.map((r) => r.generatorName)); + return await flushSyncGeneratorChangesToDisk(results); } + return await client_1.daemonClient.flushSyncGeneratorChangesToDisk(results.map((r) => r.generatorName)); } async function collectAllRegisteredSyncGenerators(projectGraph, nxJson) { if (!client_1.daemonClient.enabled()) { @@ -308961,25 +309073,33 @@ async function collectAllRegisteredSyncGenerators(projectGraph, nxJson) { return await client_1.daemonClient.getRegisteredSyncGenerators(); } async function runSyncGenerator(tree, generatorSpecifier, projects) { - perf_hooks_1.performance.mark(`run-sync-generator:${generatorSpecifier}:start`); - const { collection, generator } = (0, generate_1.parseGeneratorString)(generatorSpecifier); - const { implementationFactory } = (0, generator_utils_1.getGeneratorInformation)(collection, generator, workspace_root_1.workspaceRoot, projects); - const implementation = implementationFactory(); - const result = await implementation(tree); - let callback; - let outOfSyncMessage; - if (result && typeof result === 'object') { - callback = result.callback; - outOfSyncMessage = result.outOfSyncMessage; - } - perf_hooks_1.performance.mark(`run-sync-generator:${generatorSpecifier}:end`); - perf_hooks_1.performance.measure(`run-sync-generator:${generatorSpecifier}`, `run-sync-generator:${generatorSpecifier}:start`, `run-sync-generator:${generatorSpecifier}:end`); - return { - changes: tree.listChanges(), - generatorName: generatorSpecifier, - callback, - outOfSyncMessage, - }; + try { + perf_hooks_1.performance.mark(`run-sync-generator:${generatorSpecifier}:start`); + const { collection, generator } = (0, generate_1.parseGeneratorString)(generatorSpecifier); + const { implementationFactory } = (0, generator_utils_1.getGeneratorInformation)(collection, generator, workspace_root_1.workspaceRoot, projects); + const implementation = implementationFactory(); + const result = await implementation(tree); + let callback; + let outOfSyncMessage; + if (result && typeof result === 'object') { + callback = result.callback; + outOfSyncMessage = result.outOfSyncMessage; + } + perf_hooks_1.performance.mark(`run-sync-generator:${generatorSpecifier}:end`); + perf_hooks_1.performance.measure(`run-sync-generator:${generatorSpecifier}`, `run-sync-generator:${generatorSpecifier}:start`, `run-sync-generator:${generatorSpecifier}:end`); + return { + changes: tree.listChanges(), + generatorName: generatorSpecifier, + callback, + outOfSyncMessage, + }; + } + catch (e) { + return { + generatorName: generatorSpecifier, + error: { message: e.message, stack: e.stack }, + }; + } } function collectEnabledTaskSyncGeneratorsFromProjectGraph(projectGraph, nxJson) { const taskSyncGenerators = new Set(); @@ -309029,9 +309149,12 @@ function collectRegisteredGlobalSyncGenerators(nxJson = (0, nx_json_1.readNxJson } return globalSyncGenerators; } -function syncGeneratorResultsToMessageLines(results) { +function getSyncGeneratorSuccessResultsMessageLines(results) { const messageLines = []; for (const result of results) { + if ('error' in result) { + continue; + } messageLines.push(`The ${chalk.bold(result.generatorName)} sync generator identified ${chalk.bold(result.changes.length)} file${result.changes.length === 1 ? '' : 's'} in the workspace that ${result.changes.length === 1 ? 'is' : 'are'} out of sync${result.outOfSyncMessage ? ':' : '.'}`); if (result.outOfSyncMessage) { messageLines.push(result.outOfSyncMessage); @@ -309039,6 +309162,65 @@ function syncGeneratorResultsToMessageLines(results) { } return messageLines; } +function getFailedSyncGeneratorsFixMessageLines(results, verbose) { + const messageLines = []; + const generators = []; + for (const result of results) { + if ('error' in result) { + messageLines.push(`The ${chalk.bold(result.generatorName)} sync generator reported the following error: +${chalk.bold(result.error.message)}${verbose && result.error.stack ? '\n' + result.error.stack : ''}`); + generators.push(result.generatorName); + } + } + messageLines.push(...getFailedSyncGeneratorsMessageLines(generators, verbose)); + return messageLines; +} +function getFlushFailureMessageLines(result, verbose) { + const messageLines = []; + const generators = []; + for (const failure of result.generatorFailures) { + messageLines.push(`The ${chalk.bold(failure.generator)} sync generator failed to apply its changes with the following error: +${chalk.bold(failure.error.message)}${verbose && failure.error.stack ? '\n' + failure.error.stack : ''}`); + generators.push(failure.generator); + } + messageLines.push(...getFailedSyncGeneratorsMessageLines(generators, verbose)); + if (result.generalFailure) { + if (messageLines.length > 0) { + messageLines.push(''); + messageLines.push('Additionally, an unexpected error occurred:'); + } + else { + messageLines.push('An unexpected error occurred:'); + } + messageLines.push(...[ + '', + result.generalFailure.message, + ...(verbose && !!result.generalFailure.stack + ? [`\n${result.generalFailure.stack}`] + : []), + '', + verbose + ? 'Please report the error at: https://github.com/nrwl/nx/issues/new/choose' + : 'Please run with `--verbose` and report the error at: https://github.com/nrwl/nx/issues/new/choose', + ]); + } + return messageLines; +} +function processSyncGeneratorResultErrors(results) { + let failedGeneratorsCount = 0; + for (const result of results) { + if ('error' in result) { + failedGeneratorsCount++; + } + } + const areAllResultsFailures = failedGeneratorsCount === results.length; + const anySyncGeneratorsFailed = failedGeneratorsCount > 0; + return { + failedGeneratorsCount, + areAllResultsFailures, + anySyncGeneratorsFailed, + }; +} async function runSyncGenerators(generators) { const tree = new tree_1.FsTree(workspace_root_1.workspaceRoot, false, 'running sync generators'); const projectGraph = await (0, project_graph_1.createProjectGraphAsync)(); @@ -309052,32 +309234,15 @@ async function runSyncGenerators(generators) { } async function flushSyncGeneratorChangesToDisk(results) { perf_hooks_1.performance.mark('flush-sync-generator-changes-to-disk:start'); - const { changes, createdFiles, updatedFiles, deletedFiles, callbacks } = processSyncGeneratorResults(results); - // Write changes to disk - (0, tree_1.flushChanges)(workspace_root_1.workspaceRoot, changes); - // Run the callbacks - if (callbacks.length) { - for (const callback of callbacks) { - await callback(); - } - } - // Update the context files - await (0, workspace_context_1.updateContextWithChangedFiles)(workspace_root_1.workspaceRoot, createdFiles, updatedFiles, deletedFiles); - perf_hooks_1.performance.mark('flush-sync-generator-changes-to-disk:end'); - perf_hooks_1.performance.measure('flush sync generator changes to disk', 'flush-sync-generator-changes-to-disk:start', 'flush-sync-generator-changes-to-disk:end'); -} -function processSyncGeneratorResults(results) { - const changes = []; const createdFiles = []; const updatedFiles = []; const deletedFiles = []; - const callbacks = []; + const generatorFailures = []; for (const result of results) { - if (result.callback) { - callbacks.push(result.callback); + if ('error' in result) { + continue; } for (const change of result.changes) { - changes.push(change); if (change.type === 'CREATE') { createdFiles.push(change.path); } @@ -309088,8 +309253,51 @@ function processSyncGeneratorResults(results) { deletedFiles.push(change.path); } } + try { + // Write changes to disk + (0, tree_1.flushChanges)(workspace_root_1.workspaceRoot, result.changes); + // Run the callback + if (result.callback) { + await result.callback(); + } + } + catch (e) { + generatorFailures.push({ + generator: result.generatorName, + error: { message: e.message, stack: e.stack }, + }); + } + } + try { + // Update the context files + await (0, workspace_context_1.updateContextWithChangedFiles)(workspace_root_1.workspaceRoot, createdFiles, updatedFiles, deletedFiles); + perf_hooks_1.performance.mark('flush-sync-generator-changes-to-disk:end'); + perf_hooks_1.performance.measure('flush sync generator changes to disk', 'flush-sync-generator-changes-to-disk:start', 'flush-sync-generator-changes-to-disk:end'); + } + catch (e) { + return { + generatorFailures, + generalFailure: { message: e.message, stack: e.stack }, + }; + } + return generatorFailures.length > 0 + ? { generatorFailures } + : { success: true }; +} +function getFailedSyncGeneratorsMessageLines(generators, verbose) { + const messageLines = []; + if (generators.length === 1) { + messageLines.push('', verbose + ? 'Please check the error above and address the issue.' + : 'Please check the error above and address the issue. You can provide the `--verbose` flag to get more details.', `If needed, you can disable the failing sync generator by setting \`sync.disabledTaskSyncGenerators: ["${generators[0]}"]\` in your \`nx.json\`.`); } - return { changes, createdFiles, updatedFiles, deletedFiles, callbacks }; + else if (generators.length > 1) { + const generatorsString = generators.map((g) => `"${g}"`).join(', '); + messageLines.push('', verbose + ? 'Please check the errors above and address the issues.' + : 'Please check the errors above and address the issues. You can provide the `--verbose` flag to get more details.', `If needed, you can disable the failing sync generators by setting \`sync.disabledTaskSyncGenerators: [${generatorsString}]\` in your \`nx.json\`.`); + } + return messageLines; } @@ -309102,6 +309310,7 @@ function processSyncGeneratorResults(results) { Object.defineProperty(exports, "__esModule", ({ value: true })); exports.TaskHistory = void 0; +exports.getTaskHistory = getTaskHistory; const client_1 = __nccwpck_require__(76940); const is_on_daemon_1 = __nccwpck_require__(45153); const native_1 = __nccwpck_require__(71926); @@ -309110,6 +309319,17 @@ class TaskHistory { constructor() { this.taskHistory = new native_1.NxTaskHistory((0, db_connection_1.getDbConnection)()); } + /** + * This function returns estimated timings per task + * @param targets + * @returns a map where key is task id (project:target:configuration), value is average time of historical runs + */ + async getEstimatedTaskTimings(targets) { + if ((0, is_on_daemon_1.isOnDaemon)() || !client_1.daemonClient.enabled()) { + return this.taskHistory.getEstimatedTaskTimings(targets); + } + return await client_1.daemonClient.getEstimatedTaskTimings(targets); + } async getFlakyTasks(hashes) { if ((0, is_on_daemon_1.isOnDaemon)() || !client_1.daemonClient.enabled()) { return this.taskHistory.getFlakyTasks(hashes); @@ -309124,6 +309344,17 @@ class TaskHistory { } } exports.TaskHistory = TaskHistory; +let taskHistory; +/** + * This function returns the singleton instance of TaskHistory + * @returns singleton instance of TaskHistory + */ +function getTaskHistory() { + if (!taskHistory) { + taskHistory = new TaskHistory(); + } + return taskHistory; +} /***/ }), @@ -310211,63 +310442,51 @@ const { instance: __napiInstance, module: __wasiModule, napiModule: __napiModule }) function __napi_rs_initialize_modules(__napiInstance) { - __napiInstance.exports['__napi_register__CachedResult_struct_0']?.() - __napiInstance.exports['__napi_register__NxCache_struct_1']?.() - __napiInstance.exports['__napi_register__NxCache_impl_9']?.() - __napiInstance.exports['__napi_register__expand_outputs_10']?.() - __napiInstance.exports['__napi_register__get_files_for_outputs_11']?.() - __napiInstance.exports['__napi_register__remove_12']?.() - __napiInstance.exports['__napi_register__copy_13']?.() - __napiInstance.exports['__napi_register__validate_outputs_14']?.() - __napiInstance.exports['__napi_register__get_transformable_outputs_15']?.() - __napiInstance.exports['__napi_register__hash_array_16']?.() - __napiInstance.exports['__napi_register__hash_file_17']?.() - __napiInstance.exports['__napi_register__IS_WASM_18']?.() - __napiInstance.exports['__napi_register__get_binary_target_19']?.() - __napiInstance.exports['__napi_register__ImportResult_struct_20']?.() - __napiInstance.exports['__napi_register__find_imports_21']?.() - __napiInstance.exports['__napi_register__transfer_project_graph_22']?.() - __napiInstance.exports['__napi_register__ExternalNode_struct_23']?.() - __napiInstance.exports['__napi_register__Target_struct_24']?.() - __napiInstance.exports['__napi_register__Project_struct_25']?.() - __napiInstance.exports['__napi_register__ProjectGraph_struct_26']?.() - __napiInstance.exports['__napi_register__HashedTask_struct_27']?.() - __napiInstance.exports['__napi_register__TaskDetails_struct_28']?.() - __napiInstance.exports['__napi_register__TaskDetails_impl_31']?.() - __napiInstance.exports['__napi_register__HashPlanner_struct_32']?.() - __napiInstance.exports['__napi_register__HashPlanner_impl_36']?.() - __napiInstance.exports['__napi_register__HashDetails_struct_37']?.() - __napiInstance.exports['__napi_register__HasherOptions_struct_38']?.() - __napiInstance.exports['__napi_register__TaskHasher_struct_39']?.() - __napiInstance.exports['__napi_register__TaskHasher_impl_42']?.() - __napiInstance.exports['__napi_register__TaskRun_struct_43']?.() - __napiInstance.exports['__napi_register__NxTaskHistory_struct_44']?.() - __napiInstance.exports['__napi_register__NxTaskHistory_impl_48']?.() - __napiInstance.exports['__napi_register__Task_struct_49']?.() - __napiInstance.exports['__napi_register__TaskTarget_struct_50']?.() - __napiInstance.exports['__napi_register__TaskGraph_struct_51']?.() - __napiInstance.exports['__napi_register__FileData_struct_52']?.() - __napiInstance.exports['__napi_register__InputsInput_struct_53']?.() - __napiInstance.exports['__napi_register__FileSetInput_struct_54']?.() - __napiInstance.exports['__napi_register__RuntimeInput_struct_55']?.() - __napiInstance.exports['__napi_register__EnvironmentInput_struct_56']?.() - __napiInstance.exports['__napi_register__ExternalDependenciesInput_struct_57']?.() - __napiInstance.exports['__napi_register__DepsOutputsInput_struct_58']?.() - __napiInstance.exports['__napi_register__NxJson_struct_59']?.() - __napiInstance.exports['__napi_register__WorkspaceContext_struct_60']?.() - __napiInstance.exports['__napi_register__WorkspaceContext_impl_69']?.() - __napiInstance.exports['__napi_register__WorkspaceErrors_70']?.() - __napiInstance.exports['__napi_register__NxWorkspaceFiles_struct_71']?.() - __napiInstance.exports['__napi_register__NxWorkspaceFilesExternals_struct_72']?.() - __napiInstance.exports['__napi_register__UpdatedWorkspaceFiles_struct_73']?.() - __napiInstance.exports['__napi_register__FileMap_struct_74']?.() - __napiInstance.exports['__napi_register____test_only_transfer_file_map_75']?.() + __napiInstance.exports['__napi_register__expand_outputs_0']?.() + __napiInstance.exports['__napi_register__get_files_for_outputs_1']?.() + __napiInstance.exports['__napi_register__remove_2']?.() + __napiInstance.exports['__napi_register__copy_3']?.() + __napiInstance.exports['__napi_register__validate_outputs_4']?.() + __napiInstance.exports['__napi_register__get_transformable_outputs_5']?.() + __napiInstance.exports['__napi_register__hash_array_6']?.() + __napiInstance.exports['__napi_register__hash_file_7']?.() + __napiInstance.exports['__napi_register__IS_WASM_8']?.() + __napiInstance.exports['__napi_register__get_binary_target_9']?.() + __napiInstance.exports['__napi_register__ImportResult_struct_10']?.() + __napiInstance.exports['__napi_register__find_imports_11']?.() + __napiInstance.exports['__napi_register__transfer_project_graph_12']?.() + __napiInstance.exports['__napi_register__ExternalNode_struct_13']?.() + __napiInstance.exports['__napi_register__Target_struct_14']?.() + __napiInstance.exports['__napi_register__Project_struct_15']?.() + __napiInstance.exports['__napi_register__ProjectGraph_struct_16']?.() + __napiInstance.exports['__napi_register__HashPlanner_struct_17']?.() + __napiInstance.exports['__napi_register__HashPlanner_impl_21']?.() + __napiInstance.exports['__napi_register__HashDetails_struct_22']?.() + __napiInstance.exports['__napi_register__HasherOptions_struct_23']?.() + __napiInstance.exports['__napi_register__TaskHasher_struct_24']?.() + __napiInstance.exports['__napi_register__TaskHasher_impl_27']?.() + __napiInstance.exports['__napi_register__Task_struct_28']?.() + __napiInstance.exports['__napi_register__TaskTarget_struct_29']?.() + __napiInstance.exports['__napi_register__TaskGraph_struct_30']?.() + __napiInstance.exports['__napi_register__FileData_struct_31']?.() + __napiInstance.exports['__napi_register__InputsInput_struct_32']?.() + __napiInstance.exports['__napi_register__FileSetInput_struct_33']?.() + __napiInstance.exports['__napi_register__RuntimeInput_struct_34']?.() + __napiInstance.exports['__napi_register__EnvironmentInput_struct_35']?.() + __napiInstance.exports['__napi_register__ExternalDependenciesInput_struct_36']?.() + __napiInstance.exports['__napi_register__DepsOutputsInput_struct_37']?.() + __napiInstance.exports['__napi_register__NxJson_struct_38']?.() + __napiInstance.exports['__napi_register__WorkspaceContext_struct_39']?.() + __napiInstance.exports['__napi_register__WorkspaceContext_impl_48']?.() + __napiInstance.exports['__napi_register__WorkspaceErrors_49']?.() + __napiInstance.exports['__napi_register__NxWorkspaceFiles_struct_50']?.() + __napiInstance.exports['__napi_register__NxWorkspaceFilesExternals_struct_51']?.() + __napiInstance.exports['__napi_register__UpdatedWorkspaceFiles_struct_52']?.() + __napiInstance.exports['__napi_register__FileMap_struct_53']?.() + __napiInstance.exports['__napi_register____test_only_transfer_file_map_54']?.() } module.exports.HashPlanner = __napiModule.exports.HashPlanner module.exports.ImportResult = __napiModule.exports.ImportResult -module.exports.NxCache = __napiModule.exports.NxCache -module.exports.NxTaskHistory = __napiModule.exports.NxTaskHistory -module.exports.TaskDetails = __napiModule.exports.TaskDetails module.exports.TaskHasher = __napiModule.exports.TaskHasher module.exports.WorkspaceContext = __napiModule.exports.WorkspaceContext module.exports.copy = __napiModule.exports.copy @@ -310286,6 +310505,25 @@ module.exports.validateOutputs = __napiModule.exports.validateOutputs module.exports.WorkspaceErrors = __napiModule.exports.WorkspaceErrors +/***/ }), + +/***/ 92063: +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __nccwpck_require__) => { + +"use strict"; +/* unused harmony exports resolve, load, getFormat, transformSource */ +/* harmony import */ var url__WEBPACK_IMPORTED_MODULE_0__ = __nccwpck_require__(57310); +/* harmony import */ var module__WEBPACK_IMPORTED_MODULE_1__ = __nccwpck_require__(98188); + + +const require = (0,module__WEBPACK_IMPORTED_MODULE_1__.createRequire)((0,url__WEBPACK_IMPORTED_MODULE_0__.fileURLToPath)(import.meta.url)); + +/** @type {import('./dist/esm')} */ +const esm = require('./dist/esm'); +const { resolve, load, getFormat, transformSource } = + esm.registerAndCreateEsmHooks(); + + /***/ }), /***/ 21841: @@ -310332,7 +310570,7 @@ module.exports = JSON.parse('{"$schema":"https://json.schemastore.org/tsconfig", /***/ ((module) => { "use strict"; -module.exports = JSON.parse('{"name":"nx","version":"19.7.2","private":false,"description":"The core Nx plugin contains the core functionality of Nx like the project graph, nx commands and task orchestration.","repository":{"type":"git","url":"https://github.com/nrwl/nx.git","directory":"packages/nx"},"scripts":{"postinstall":"node ./bin/post-install"},"keywords":["Monorepo","Angular","React","Web","Node","Nest","Jest","Cypress","CLI","Testing","Front-end","Backend","Mobile"],"bin":{"nx":"./bin/nx.js","nx-cloud":"./bin/nx-cloud.js"},"author":"Victor Savkin","license":"MIT","bugs":{"url":"https://github.com/nrwl/nx/issues"},"homepage":"https://nx.dev","dependencies":{"@napi-rs/wasm-runtime":"0.2.4","@yarnpkg/lockfile":"^1.1.0","@yarnpkg/parsers":"3.0.0-rc.46","@zkochan/js-yaml":"0.0.7","axios":"^1.7.4","chalk":"^4.1.0","cli-cursor":"3.1.0","cli-spinners":"2.6.1","cliui":"^8.0.1","dotenv":"~16.4.5","dotenv-expand":"~11.0.6","enquirer":"~2.3.6","figures":"3.2.0","flat":"^5.0.2","front-matter":"^4.0.2","fs-extra":"^11.1.0","ignore":"^5.0.4","jest-diff":"^29.4.1","jsonc-parser":"3.2.0","lines-and-columns":"2.0.3","minimatch":"9.0.3","npm-run-path":"^4.0.1","open":"^8.4.0","semver":"^7.5.3","string-width":"^4.2.3","strong-log-transformer":"^2.1.0","tar-stream":"~2.2.0","tmp":"~0.2.1","tsconfig-paths":"^4.1.2","tslib":"^2.3.0","yargs":"^17.6.2","yargs-parser":"21.1.1","node-machine-id":"1.1.12","ora":"5.3.0","@nrwl/tao":"19.7.2"},"peerDependencies":{"@swc-node/register":"^1.8.0","@swc/core":"^1.3.85"},"peerDependenciesMeta":{"@swc-node/register":{"optional":true},"@swc/core":{"optional":true}},"optionalDependencies":{"@nx/nx-darwin-x64":"19.7.2","@nx/nx-darwin-arm64":"19.7.2","@nx/nx-linux-x64-gnu":"19.7.2","@nx/nx-linux-x64-musl":"19.7.2","@nx/nx-win32-x64-msvc":"19.7.2","@nx/nx-linux-arm64-gnu":"19.7.2","@nx/nx-linux-arm64-musl":"19.7.2","@nx/nx-linux-arm-gnueabihf":"19.7.2","@nx/nx-win32-arm64-msvc":"19.7.2","@nx/nx-freebsd-x64":"19.7.2"},"nx-migrations":{"migrations":"./migrations.json","packageGroup":["@nx/js","@nrwl/js","@nx/jest","@nrwl/jest","@nx/linter","@nx/eslint","@nrwl/linter","@nx/workspace","@nrwl/workspace","@nx/angular","@nrwl/angular","@nx/cypress","@nrwl/cypress","@nx/detox","@nrwl/detox","@nx/devkit","@nrwl/devkit","@nx/esbuild","@nrwl/esbuild","@nx/eslint-plugin","@nrwl/eslint-plugin-nx","@nx/expo","@nrwl/expo","@nx/express","@nrwl/express","@nx/gradle","@nx/nest","@nrwl/nest","@nx/next","@nrwl/next","@nx/node","@nrwl/node","@nx/nuxt","@nx/playwright","@nx/plugin","@nrwl/nx-plugin","@nx/react","@nrwl/react","@nx/react-native","@nrwl/react-native","@nx/rollup","@nrwl/rollup","@nx/remix","@nrwl/remix","@nx/storybook","@nrwl/storybook","@nrwl/tao","@nx/vite","@nrwl/vite","@nx/vue","@nx/web","@nrwl/web","@nx/webpack","@nrwl/webpack",{"package":"nx-cloud","version":"latest"},{"package":"@nrwl/nx-cloud","version":"latest"}]},"generators":"./generators.json","executors":"./executors.json","builders":"./executors.json","publishConfig":{"access":"public"},"napi":{"binaryName":"nx","packageName":"@nx/nx","wasm":{"initialMemory":1024,"maximumMemory":32768},"targets":["x86_64-unknown-linux-gnu","x86_64-pc-windows-msvc","x86_64-apple-darwin","aarch64-apple-darwin","aarch64-unknown-linux-gnu","aarch64-unknown-linux-musl","aarch64-pc-windows-msvc","armv7-unknown-linux-gnueabihf","x86_64-unknown-linux-musl","x86_64-unknown-freebsd"]},"main":"./bin/nx.js","type":"commonjs","types":"./bin/nx.d.ts"}'); +module.exports = JSON.parse('{"name":"nx","version":"19.8.0","private":false,"description":"The core Nx plugin contains the core functionality of Nx like the project graph, nx commands and task orchestration.","repository":{"type":"git","url":"https://github.com/nrwl/nx.git","directory":"packages/nx"},"keywords":["Monorepo","Angular","React","Web","Node","Nest","Jest","Cypress","CLI","Testing","Front-end","Backend","Mobile"],"bin":{"nx":"./bin/nx.js","nx-cloud":"./bin/nx-cloud.js"},"author":"Victor Savkin","license":"MIT","bugs":{"url":"https://github.com/nrwl/nx/issues"},"homepage":"https://nx.dev","dependencies":{"@napi-rs/wasm-runtime":"0.2.4","@yarnpkg/lockfile":"^1.1.0","@yarnpkg/parsers":"3.0.0-rc.46","@zkochan/js-yaml":"0.0.7","axios":"^1.7.4","chalk":"^4.1.0","cli-cursor":"3.1.0","cli-spinners":"2.6.1","cliui":"^8.0.1","dotenv":"~16.4.5","dotenv-expand":"~11.0.6","enquirer":"~2.3.6","figures":"3.2.0","flat":"^5.0.2","front-matter":"^4.0.2","fs-extra":"^11.1.0","ignore":"^5.0.4","jest-diff":"^29.4.1","jsonc-parser":"3.2.0","lines-and-columns":"2.0.3","minimatch":"9.0.3","npm-run-path":"^4.0.1","open":"^8.4.0","semver":"^7.5.3","string-width":"^4.2.3","strong-log-transformer":"^2.1.0","tar-stream":"~2.2.0","tmp":"~0.2.1","tsconfig-paths":"^4.1.2","tslib":"^2.3.0","yargs":"^17.6.2","yargs-parser":"21.1.1","node-machine-id":"1.1.12","ora":"5.3.0","@nrwl/tao":"19.8.0"},"peerDependencies":{"@swc-node/register":"^1.8.0","@swc/core":"^1.3.85"},"peerDependenciesMeta":{"@swc-node/register":{"optional":true},"@swc/core":{"optional":true}},"optionalDependencies":{"@nx/nx-darwin-x64":"19.8.0","@nx/nx-darwin-arm64":"19.8.0","@nx/nx-linux-x64-gnu":"19.8.0","@nx/nx-linux-x64-musl":"19.8.0","@nx/nx-win32-x64-msvc":"19.8.0","@nx/nx-linux-arm64-gnu":"19.8.0","@nx/nx-linux-arm64-musl":"19.8.0","@nx/nx-linux-arm-gnueabihf":"19.8.0","@nx/nx-win32-arm64-msvc":"19.8.0","@nx/nx-freebsd-x64":"19.8.0"},"nx-migrations":{"migrations":"./migrations.json","packageGroup":["@nx/js","@nrwl/js","@nx/jest","@nrwl/jest","@nx/linter","@nx/eslint","@nrwl/linter","@nx/workspace","@nrwl/workspace","@nx/angular","@nrwl/angular","@nx/cypress","@nrwl/cypress","@nx/detox","@nrwl/detox","@nx/devkit","@nrwl/devkit","@nx/esbuild","@nrwl/esbuild","@nx/eslint-plugin","@nrwl/eslint-plugin-nx","@nx/expo","@nrwl/expo","@nx/express","@nrwl/express","@nx/gradle","@nx/nest","@nrwl/nest","@nx/next","@nrwl/next","@nx/node","@nrwl/node","@nx/nuxt","@nx/playwright","@nx/plugin","@nrwl/nx-plugin","@nx/react","@nrwl/react","@nx/react-native","@nrwl/react-native","@nx/rollup","@nrwl/rollup","@nx/remix","@nrwl/remix","@nx/storybook","@nrwl/storybook","@nrwl/tao","@nx/vite","@nrwl/vite","@nx/vue","@nx/web","@nrwl/web","@nx/webpack","@nrwl/webpack",{"package":"nx-cloud","version":"latest"},{"package":"@nrwl/nx-cloud","version":"latest"}]},"generators":"./generators.json","executors":"./executors.json","builders":"./executors.json","publishConfig":{"access":"public"},"napi":{"binaryName":"nx","packageName":"@nx/nx","wasm":{"initialMemory":1024,"maximumMemory":32768},"targets":["x86_64-unknown-linux-gnu","x86_64-pc-windows-msvc","x86_64-apple-darwin","aarch64-apple-darwin","aarch64-unknown-linux-gnu","aarch64-unknown-linux-musl","aarch64-pc-windows-msvc","armv7-unknown-linux-gnueabihf","x86_64-unknown-linux-musl","x86_64-unknown-freebsd"]},"main":"./bin/nx.js","type":"commonjs","types":"./bin/nx.d.ts","scripts":{"postinstall":"node ./bin/post-install"}}'); /***/ }), @@ -310380,6 +310618,18 @@ module.exports = {"version":"10.9.2"}; /******/ } /******/ /************************************************************************/ +/******/ /* webpack/runtime/define property getters */ +/******/ (() => { +/******/ // define getter functions for harmony exports +/******/ __nccwpck_require__.d = (exports, definition) => { +/******/ for(var key in definition) { +/******/ if(__nccwpck_require__.o(definition, key) && !__nccwpck_require__.o(exports, key)) { +/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); +/******/ } +/******/ } +/******/ }; +/******/ })(); +/******/ /******/ /* webpack/runtime/hasOwnProperty shorthand */ /******/ (() => { /******/ __nccwpck_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop)) diff --git a/actions/plan/dist/nx.linux-x64-gnu.node b/actions/plan/dist/nx.linux-x64-gnu.node index b8b17e7e..d2f6eae9 100644 Binary files a/actions/plan/dist/nx.linux-x64-gnu.node and b/actions/plan/dist/nx.linux-x64-gnu.node differ diff --git a/actions/plan/dist/package.json b/actions/plan/dist/package.json index a3bbbbdb..c2f8bb2b 100644 --- a/actions/plan/dist/package.json +++ b/actions/plan/dist/package.json @@ -1,6 +1,6 @@ { "name": "nx", - "version": "19.7.2", + "version": "19.8.0", "private": false, "description": "The core Nx plugin contains the core functionality of Nx like the project graph, nx commands and task orchestration.", "repository": { @@ -8,9 +8,6 @@ "url": "https://github.com/nrwl/nx.git", "directory": "packages/nx" }, - "scripts": { - "postinstall": "node ./bin/post-install" - }, "keywords": [ "Monorepo", "Angular", @@ -71,7 +68,7 @@ "yargs-parser": "21.1.1", "node-machine-id": "1.1.12", "ora": "5.3.0", - "@nrwl/tao": "19.7.2" + "@nrwl/tao": "19.8.0" }, "peerDependencies": { "@swc-node/register": "^1.8.0", @@ -86,16 +83,16 @@ } }, "optionalDependencies": { - "@nx/nx-darwin-x64": "19.7.2", - "@nx/nx-darwin-arm64": "19.7.2", - "@nx/nx-linux-x64-gnu": "19.7.2", - "@nx/nx-linux-x64-musl": "19.7.2", - "@nx/nx-win32-x64-msvc": "19.7.2", - "@nx/nx-linux-arm64-gnu": "19.7.2", - "@nx/nx-linux-arm64-musl": "19.7.2", - "@nx/nx-linux-arm-gnueabihf": "19.7.2", - "@nx/nx-win32-arm64-msvc": "19.7.2", - "@nx/nx-freebsd-x64": "19.7.2" + "@nx/nx-darwin-x64": "19.8.0", + "@nx/nx-darwin-arm64": "19.8.0", + "@nx/nx-linux-x64-gnu": "19.8.0", + "@nx/nx-linux-x64-musl": "19.8.0", + "@nx/nx-win32-x64-msvc": "19.8.0", + "@nx/nx-linux-arm64-gnu": "19.8.0", + "@nx/nx-linux-arm64-musl": "19.8.0", + "@nx/nx-linux-arm-gnueabihf": "19.8.0", + "@nx/nx-win32-arm64-msvc": "19.8.0", + "@nx/nx-freebsd-x64": "19.8.0" }, "nx-migrations": { "migrations": "./migrations.json", @@ -192,5 +189,8 @@ }, "main": "./bin/nx.js", "type": "commonjs", - "types": "./bin/nx.d.ts" -} + "types": "./bin/nx.d.ts", + "scripts": { + "postinstall": "node ./bin/post-install" + } +} \ No newline at end of file