Skip to content

Commit

Permalink
chore(core): refactor typescript rust import locator
Browse files Browse the repository at this point in the history
  • Loading branch information
FrozenPandaz committed Jul 18, 2023
1 parent 4847eaf commit 5920cc1
Show file tree
Hide file tree
Showing 3 changed files with 385 additions and 254 deletions.
3 changes: 2 additions & 1 deletion packages/nx/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ swc_common = "0.31.16"
swc_ecma_parser = { version = "0.137.1", features = ["typescript"] }
swc_ecma_visit = "0.93.0"
swc_ecma_ast = "0.107.0"
swc_ecma_dep_graph = "0.109.1"

[lib]
crate-type = ['cdylib']
Expand All @@ -41,3 +40,5 @@ napi-build = '2.0.1'

[dev-dependencies]
assert_fs = "1.0.10"
# This is only used for unit tests
swc_ecma_dep_graph = "0.109.1"
1 change: 1 addition & 0 deletions packages/nx/src/adapter/angular-json.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export function shouldMergeAngularProjects(

export function isAngularPluginInstalled() {
try {
// nx-ignore-next-line
require.resolve('@nx/angular');
return true;
} catch {
Expand Down
Loading

0 comments on commit 5920cc1

Please sign in to comment.