Comparing version 0.0.0-pr-26891-2baa5df to 0.0.0-pr-26891-95f6262
{ | ||
"name": "nx", | ||
"version": "0.0.0-pr-26891-2baa5df", | ||
"version": "0.0.0-pr-26891-95f6262", | ||
"private": false, | ||
@@ -74,3 +74,3 @@ "description": "The core Nx plugin contains the core functionality of Nx like the project graph, nx commands and task orchestration.", | ||
"ora": "5.3.0", | ||
"@nrwl/tao": "0.0.0-pr-26891-2baa5df" | ||
"@nrwl/tao": "0.0.0-pr-26891-95f6262" | ||
}, | ||
@@ -90,12 +90,12 @@ "peerDependencies": { | ||
"optionalDependencies": { | ||
"@nx/nx-darwin-x64": "0.0.0-pr-26891-2baa5df", | ||
"@nx/nx-darwin-arm64": "0.0.0-pr-26891-2baa5df", | ||
"@nx/nx-linux-x64-gnu": "0.0.0-pr-26891-2baa5df", | ||
"@nx/nx-linux-x64-musl": "0.0.0-pr-26891-2baa5df", | ||
"@nx/nx-win32-x64-msvc": "0.0.0-pr-26891-2baa5df", | ||
"@nx/nx-linux-arm64-gnu": "0.0.0-pr-26891-2baa5df", | ||
"@nx/nx-linux-arm64-musl": "0.0.0-pr-26891-2baa5df", | ||
"@nx/nx-linux-arm-gnueabihf": "0.0.0-pr-26891-2baa5df", | ||
"@nx/nx-win32-arm64-msvc": "0.0.0-pr-26891-2baa5df", | ||
"@nx/nx-freebsd-x64": "0.0.0-pr-26891-2baa5df" | ||
"@nx/nx-darwin-x64": "0.0.0-pr-26891-95f6262", | ||
"@nx/nx-darwin-arm64": "0.0.0-pr-26891-95f6262", | ||
"@nx/nx-linux-x64-gnu": "0.0.0-pr-26891-95f6262", | ||
"@nx/nx-linux-x64-musl": "0.0.0-pr-26891-95f6262", | ||
"@nx/nx-win32-x64-msvc": "0.0.0-pr-26891-95f6262", | ||
"@nx/nx-linux-arm64-gnu": "0.0.0-pr-26891-95f6262", | ||
"@nx/nx-linux-arm64-musl": "0.0.0-pr-26891-95f6262", | ||
"@nx/nx-linux-arm-gnueabihf": "0.0.0-pr-26891-95f6262", | ||
"@nx/nx-win32-arm64-msvc": "0.0.0-pr-26891-95f6262", | ||
"@nx/nx-freebsd-x64": "0.0.0-pr-26891-95f6262" | ||
}, | ||
@@ -179,3 +179,3 @@ "nx-migrations": { | ||
"wasm": { | ||
"initialMemory": 16384, | ||
"initialMemory": 1024, | ||
"maximumMemory": 32768 | ||
@@ -182,0 +182,0 @@ }, |
@@ -10,7 +10,7 @@ "use strict"; | ||
const native_1 = require("../native"); | ||
const cache_directory_1 = require("../utils/cache-directory"); | ||
const db_connection_1 = require("../utils/db-connection"); | ||
let taskDetails; | ||
function getTaskDetails() { | ||
if (!taskDetails) { | ||
taskDetails = new native_1.TaskDetails(cache_directory_1.workspaceDataDirectory); | ||
taskDetails = new native_1.TaskDetails((0, db_connection_1.getDbConnection)()); | ||
} | ||
@@ -17,0 +17,0 @@ return taskDetails; |
@@ -31,3 +31,3 @@ /* auto-generated by NAPI-RS */ | ||
cacheDirectory: string | ||
constructor(workspaceRoot: string, cachePath: string, workspaceDataPath: string) | ||
constructor(workspaceRoot: string, cachePath: string, dbConnection: ExternalObject<Connection>) | ||
get(hash: string): CachedResult | null | ||
@@ -42,3 +42,3 @@ put(hash: string, terminalOutput: string, outputs: Array<string>, code: number): void | ||
export declare class NxTaskHistory { | ||
constructor(workspaceDataPath: string) | ||
constructor(db: ExternalObject<Connection>) | ||
recordTaskRuns(taskRuns: Array<TaskRun>): void | ||
@@ -59,3 +59,3 @@ getFlakyTasks(hashes: Array<string>): Array<string> | ||
export declare class TaskDetails { | ||
constructor(workspaceDataDirectory: string) | ||
constructor(db: ExternalObject<Connection>) | ||
recordTaskDetails(tasks: Array<HashedTask>): void | ||
@@ -101,2 +101,4 @@ } | ||
export declare export function connectToNxDb(cacheDir: string, nxVersion: string): ExternalObject<Connection> | ||
export declare export function copy(src: string, dest: string): void | ||
@@ -103,0 +105,0 @@ |
@@ -374,2 +374,3 @@ // prettier-ignore | ||
module.exports.WorkspaceContext = nativeBinding.WorkspaceContext | ||
module.exports.connectToNxDb = nativeBinding.connectToNxDb | ||
module.exports.copy = nativeBinding.copy | ||
@@ -376,0 +377,0 @@ module.exports.EventType = nativeBinding.EventType |
@@ -17,3 +17,3 @@ import { | ||
const __sharedMemory = new WebAssembly.Memory({ | ||
initial: 16384, | ||
initial: 1024, | ||
maximum: 32768, | ||
@@ -59,44 +59,47 @@ shared: true, | ||
__napiInstance.exports['__napi_register__copy_3']?.() | ||
__napiInstance.exports['__napi_register__TaskResult_struct_4']?.() | ||
__napiInstance.exports['__napi_register__CachedResult_struct_5']?.() | ||
__napiInstance.exports['__napi_register__NxCache_struct_6']?.() | ||
__napiInstance.exports['__napi_register__NxCache_impl_14']?.() | ||
__napiInstance.exports['__napi_register__hash_array_15']?.() | ||
__napiInstance.exports['__napi_register__hash_file_16']?.() | ||
__napiInstance.exports['__napi_register__ImportResult_struct_17']?.() | ||
__napiInstance.exports['__napi_register__find_imports_18']?.() | ||
__napiInstance.exports['__napi_register__transfer_project_graph_19']?.() | ||
__napiInstance.exports['__napi_register__ExternalNode_struct_20']?.() | ||
__napiInstance.exports['__napi_register__Target_struct_21']?.() | ||
__napiInstance.exports['__napi_register__Project_struct_22']?.() | ||
__napiInstance.exports['__napi_register__ProjectGraph_struct_23']?.() | ||
__napiInstance.exports['__napi_register__HashPlanner_struct_24']?.() | ||
__napiInstance.exports['__napi_register__HashPlanner_impl_28']?.() | ||
__napiInstance.exports['__napi_register__HashDetails_struct_29']?.() | ||
__napiInstance.exports['__napi_register__HasherOptions_struct_30']?.() | ||
__napiInstance.exports['__napi_register__TaskHasher_struct_31']?.() | ||
__napiInstance.exports['__napi_register__TaskHasher_impl_34']?.() | ||
__napiInstance.exports['__napi_register__TaskRun_struct_35']?.() | ||
__napiInstance.exports['__napi_register__NxTaskHistory_struct_36']?.() | ||
__napiInstance.exports['__napi_register__NxTaskHistory_impl_40']?.() | ||
__napiInstance.exports['__napi_register__Task_struct_41']?.() | ||
__napiInstance.exports['__napi_register__TaskTarget_struct_42']?.() | ||
__napiInstance.exports['__napi_register__TaskGraph_struct_43']?.() | ||
__napiInstance.exports['__napi_register__FileData_struct_44']?.() | ||
__napiInstance.exports['__napi_register__InputsInput_struct_45']?.() | ||
__napiInstance.exports['__napi_register__FileSetInput_struct_46']?.() | ||
__napiInstance.exports['__napi_register__RuntimeInput_struct_47']?.() | ||
__napiInstance.exports['__napi_register__EnvironmentInput_struct_48']?.() | ||
__napiInstance.exports['__napi_register__ExternalDependenciesInput_struct_49']?.() | ||
__napiInstance.exports['__napi_register__DepsOutputsInput_struct_50']?.() | ||
__napiInstance.exports['__napi_register__NxJson_struct_51']?.() | ||
__napiInstance.exports['__napi_register__WorkspaceContext_struct_52']?.() | ||
__napiInstance.exports['__napi_register__WorkspaceContext_impl_61']?.() | ||
__napiInstance.exports['__napi_register__WorkspaceErrors_62']?.() | ||
__napiInstance.exports['__napi_register__NxWorkspaceFiles_struct_63']?.() | ||
__napiInstance.exports['__napi_register__NxWorkspaceFilesExternals_struct_64']?.() | ||
__napiInstance.exports['__napi_register__UpdatedWorkspaceFiles_struct_65']?.() | ||
__napiInstance.exports['__napi_register__FileMap_struct_66']?.() | ||
__napiInstance.exports['__napi_register____test_only_transfer_file_map_67']?.() | ||
__napiInstance.exports['__napi_register__IS_WASM_68']?.() | ||
__napiInstance.exports['__napi_register__CachedResult_struct_4']?.() | ||
__napiInstance.exports['__napi_register__NxCache_struct_5']?.() | ||
__napiInstance.exports['__napi_register__NxCache_impl_13']?.() | ||
__napiInstance.exports['__napi_register__hash_array_14']?.() | ||
__napiInstance.exports['__napi_register__hash_file_15']?.() | ||
__napiInstance.exports['__napi_register__ImportResult_struct_16']?.() | ||
__napiInstance.exports['__napi_register__find_imports_17']?.() | ||
__napiInstance.exports['__napi_register__transfer_project_graph_18']?.() | ||
__napiInstance.exports['__napi_register__ExternalNode_struct_19']?.() | ||
__napiInstance.exports['__napi_register__Target_struct_20']?.() | ||
__napiInstance.exports['__napi_register__Project_struct_21']?.() | ||
__napiInstance.exports['__napi_register__ProjectGraph_struct_22']?.() | ||
__napiInstance.exports['__napi_register__HashedTask_struct_23']?.() | ||
__napiInstance.exports['__napi_register__TaskDetails_struct_24']?.() | ||
__napiInstance.exports['__napi_register__TaskDetails_impl_27']?.() | ||
__napiInstance.exports['__napi_register__HashPlanner_struct_28']?.() | ||
__napiInstance.exports['__napi_register__HashPlanner_impl_32']?.() | ||
__napiInstance.exports['__napi_register__HashDetails_struct_33']?.() | ||
__napiInstance.exports['__napi_register__HasherOptions_struct_34']?.() | ||
__napiInstance.exports['__napi_register__TaskHasher_struct_35']?.() | ||
__napiInstance.exports['__napi_register__TaskHasher_impl_38']?.() | ||
__napiInstance.exports['__napi_register__TaskRun_struct_39']?.() | ||
__napiInstance.exports['__napi_register__NxTaskHistory_struct_40']?.() | ||
__napiInstance.exports['__napi_register__NxTaskHistory_impl_44']?.() | ||
__napiInstance.exports['__napi_register__Task_struct_45']?.() | ||
__napiInstance.exports['__napi_register__TaskTarget_struct_46']?.() | ||
__napiInstance.exports['__napi_register__TaskGraph_struct_47']?.() | ||
__napiInstance.exports['__napi_register__FileData_struct_48']?.() | ||
__napiInstance.exports['__napi_register__InputsInput_struct_49']?.() | ||
__napiInstance.exports['__napi_register__FileSetInput_struct_50']?.() | ||
__napiInstance.exports['__napi_register__RuntimeInput_struct_51']?.() | ||
__napiInstance.exports['__napi_register__EnvironmentInput_struct_52']?.() | ||
__napiInstance.exports['__napi_register__ExternalDependenciesInput_struct_53']?.() | ||
__napiInstance.exports['__napi_register__DepsOutputsInput_struct_54']?.() | ||
__napiInstance.exports['__napi_register__NxJson_struct_55']?.() | ||
__napiInstance.exports['__napi_register__WorkspaceContext_struct_56']?.() | ||
__napiInstance.exports['__napi_register__WorkspaceContext_impl_65']?.() | ||
__napiInstance.exports['__napi_register__WorkspaceErrors_66']?.() | ||
__napiInstance.exports['__napi_register__NxWorkspaceFiles_struct_67']?.() | ||
__napiInstance.exports['__napi_register__NxWorkspaceFilesExternals_struct_68']?.() | ||
__napiInstance.exports['__napi_register__UpdatedWorkspaceFiles_struct_69']?.() | ||
__napiInstance.exports['__napi_register__FileMap_struct_70']?.() | ||
__napiInstance.exports['__napi_register____test_only_transfer_file_map_71']?.() | ||
__napiInstance.exports['__napi_register__connect_to_nx_db_72']?.() | ||
__napiInstance.exports['__napi_register__IS_WASM_73']?.() | ||
} | ||
@@ -107,4 +110,6 @@ export const HashPlanner = __napiModule.exports.HashPlanner | ||
export const NxTaskHistory = __napiModule.exports.NxTaskHistory | ||
export const TaskDetails = __napiModule.exports.TaskDetails | ||
export const TaskHasher = __napiModule.exports.TaskHasher | ||
export const WorkspaceContext = __napiModule.exports.WorkspaceContext | ||
export const connectToNxDb = __napiModule.exports.connectToNxDb | ||
export const copy = __napiModule.exports.copy | ||
@@ -111,0 +116,0 @@ export const expandOutputs = __napiModule.exports.expandOutputs |
@@ -15,2 +15,3 @@ "use strict"; | ||
const error_types_1 = require("../error-types"); | ||
const native_1 = require("../../native"); | ||
class LoadedNxPlugin { | ||
@@ -76,3 +77,4 @@ constructor(plugin, pluginDefinition) { | ||
performance.mark('loadNxPlugins:start'); | ||
const loadingMethod = process.env.NX_ISOLATE_PLUGINS !== 'false' | ||
const loadingMethod = process.env.NX_ISOLATE_PLUGINS === 'true' || | ||
(!native_1.IS_WASM && process.env.NX_ISOLATE_PLUGINS !== 'false') | ||
? isolation_1.loadNxPluginInIsolation | ||
@@ -79,0 +81,0 @@ : loader_1.loadNxPlugin; |
@@ -704,3 +704,3 @@ "use strict"; | ||
function readTargetDefaultsForTarget(targetName, targetDefaults, executor) { | ||
if (executor) { | ||
if (executor && targetDefaults?.[executor]) { | ||
// If an executor is defined in project.json, defaults should be read | ||
@@ -711,4 +711,3 @@ // from the most specific key that matches that executor. | ||
// If not, use build if it is present. | ||
const key = [executor, targetName].find((x) => targetDefaults?.[x]); | ||
return key ? targetDefaults?.[key] : null; | ||
return targetDefaults?.[executor]; | ||
} | ||
@@ -731,3 +730,3 @@ else if (targetDefaults?.[targetName]) { | ||
} | ||
return {}; | ||
return null; | ||
} | ||
@@ -734,0 +733,0 @@ function createRootMap(projectRootMap) { |
@@ -12,2 +12,3 @@ "use strict"; | ||
const native_1 = require("../native"); | ||
const db_connection_1 = require("../utils/db-connection"); | ||
class Cache { | ||
@@ -226,3 +227,3 @@ constructor(options) { | ||
this.options = options; | ||
this.cache = new native_1.NxCache(workspace_root_1.workspaceRoot, cache_directory_1.cacheDir, cache_directory_1.workspaceDataDirectory); | ||
this.cache = new native_1.NxCache(workspace_root_1.workspaceRoot, cache_directory_1.cacheDir, (0, db_connection_1.getDbConnection)()); | ||
} | ||
@@ -229,0 +230,0 @@ async get(task) { |
@@ -6,7 +6,7 @@ "use strict"; | ||
const is_on_daemon_1 = require("../daemon/is-on-daemon"); | ||
const cache_directory_1 = require("./cache-directory"); | ||
const native_1 = require("../native"); | ||
const db_connection_1 = require("./db-connection"); | ||
class TaskHistory { | ||
constructor() { | ||
this.taskHistory = new native_1.NxTaskHistory(cache_directory_1.workspaceDataDirectory); | ||
this.taskHistory = new native_1.NxTaskHistory((0, db_connection_1.getDbConnection)()); | ||
} | ||
@@ -13,0 +13,0 @@ async getFlakyTasks(hashes) { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8782523
744
49087
388
+ Added@nrwl/tao@0.0.0-pr-26891-95f6262(transitive)
+ Added@nx/nx-darwin-arm64@0.0.0-pr-26891-95f6262(transitive)
+ Added@nx/nx-darwin-x64@0.0.0-pr-26891-95f6262(transitive)
+ Added@nx/nx-freebsd-x64@0.0.0-pr-26891-95f6262(transitive)
+ Added@nx/nx-linux-arm-gnueabihf@0.0.0-pr-26891-95f6262(transitive)
+ Added@nx/nx-linux-arm64-gnu@0.0.0-pr-26891-95f6262(transitive)
+ Added@nx/nx-linux-arm64-musl@0.0.0-pr-26891-95f6262(transitive)
+ Added@nx/nx-linux-x64-gnu@0.0.0-pr-26891-95f6262(transitive)
+ Added@nx/nx-linux-x64-musl@0.0.0-pr-26891-95f6262(transitive)
+ Added@nx/nx-win32-arm64-msvc@0.0.0-pr-26891-95f6262(transitive)
+ Added@nx/nx-win32-x64-msvc@0.0.0-pr-26891-95f6262(transitive)
- Removed@nrwl/tao@0.0.0-pr-26891-2baa5df(transitive)
- Removed@nx/nx-darwin-arm64@0.0.0-pr-26891-2baa5df(transitive)
- Removed@nx/nx-darwin-x64@0.0.0-pr-26891-2baa5df(transitive)
- Removed@nx/nx-freebsd-x64@0.0.0-pr-26891-2baa5df(transitive)
- Removed@nx/nx-linux-arm-gnueabihf@0.0.0-pr-26891-2baa5df(transitive)
- Removed@nx/nx-linux-arm64-gnu@0.0.0-pr-26891-2baa5df(transitive)
- Removed@nx/nx-linux-arm64-musl@0.0.0-pr-26891-2baa5df(transitive)
- Removed@nx/nx-linux-x64-gnu@0.0.0-pr-26891-2baa5df(transitive)
- Removed@nx/nx-linux-x64-musl@0.0.0-pr-26891-2baa5df(transitive)
- Removed@nx/nx-win32-arm64-msvc@0.0.0-pr-26891-2baa5df(transitive)
- Removed@nx/nx-win32-x64-msvc@0.0.0-pr-26891-2baa5df(transitive)