forked from package-url/packageurl-js
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit 1888a36
refactor(build): use plugin pattern for local package aliases
Replaced built-in alias option with custom esbuild plugin to provide
consistent alias resolution across all Socket repos. While the built-in
alias works fine with bundle: true, the plugin approach:
- Provides identical implementation across socket-lib, socket-sdk-js,
and socket-packageurl-js
- Uses unified regexp pattern (/|$) to handle both exact and subpath imports
- Maintains same functionality while improving cross-repo consistency
This standardization simplifies maintenance and documentation across
the Socket monorepo ecosystem.1 parent 15ca9a9 commit 1888a36
1 file changed
+31
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | + | ||
17 | + | ||
18 | + | ||
19 | + | ||
20 | + | ||
21 | + | ||
22 | + | ||
23 | + | ||
24 | + | ||
25 | + | ||
26 | + | ||
27 | + | ||
28 | + | ||
29 | + | ||
30 | + | ||
31 | + | ||
32 | + | ||
33 | + | ||
34 | + | ||
35 | + | ||
36 | + | ||
37 | + | ||
38 | + | ||
39 | + | ||
40 | + | ||
41 | + | ||
42 | + | ||
43 | + | ||
44 | + | ||
16 | 45 | | |
17 | 46 | | |
18 | 47 | | |
| |||
32 | 61 | | |
33 | 62 | | |
34 | 63 | | |
35 | - | ||
36 | - | ||
64 | + | ||
65 | + | ||
37 | 66 | | |
38 | 67 | | |
39 | 68 | | |
| |||
0 commit comments