Skip to content

Commit e814093

Browse files
committed
Allowlist tree-sitter-wasm pre-init for env architecture check
The pre-init module legitimately needs to set process.env so the embedded wasm path reaches every copy of init-node.ts (the SDK's pre-built bundle inlines its own copy).
1 parent 20aedeb commit e814093

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

scripts/check-env-architecture.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ const packageConfigs: PackageConfig[] = [
8282
enforceRestrictedImports: true,
8383
additionalProcessEnvAllowlist: [
8484
'cli/src/init/init-direnv.ts', // Loads direnv vars into process.env at startup
85+
'cli/src/pre-init/tree-sitter-wasm.ts', // Stashes embedded wasm path for code-map's locateFile callback
8586
],
8687
},
8788
{

0 commit comments

Comments
 (0)