Commit 691c9cc
authored
Module resolution from node_modules (#1011)
* Create test project with node_modules
* testProject test util
* Fix typos in module resolution test
* Base case module resolution
* Replace requires in source maps too
* Fixed incorrect path behavior
* More tests
* add module resolution with sourceDir node_modules
* Get all module-resolution testcases to work
* Restrict resolver to only lua files
* All tests working
* Added more in-project dependency checks to sourceDir test
* Fixed problem with lua sibling files
* Also resolve JSON modules
* Add debug to resolution test to try to figure out why CI is failing
* fix test runner path preloading
* Revert "Add debug to resolution test to try to figure out why CI is failing"
This reverts commit 7b8bd80.
* Changed resolution failure from error to warning
* move json.lua from dist to src in benchmark
* Use commit version instead of master to compile benchmark scripts
* Added module resolution test project with lua sources
* Add library compilation mode
* renamed compilemode to buildmode
* clean up resolve
* Fix tests
* Removed old project test runner
* PR comments
* Remove file casing test
* Resolution + library mode combined test
* remove out path logic from printer
* Fixed bundle entry point require not being resolved correctly
* Add header to bundle
* Made couldNotResolveRequire an error instead of warning
* updated couldnotResolveRequire snapshot1 parent 5abb60b commit 691c9cc
File tree
86 files changed
+1102
-197
lines changed- .github/workflows
- .vscode
- benchmark/src
- src
- cli
- transformation
- utils
- visitors/modules
- transpilation
- test
- cli
- translation
- transpile
- __snapshots__
- directories/baseurl/src
- lib/nested
- module-resolution
- project-with-dependency-chain
- node_modules
- dependency1
- dependency2
- dependency3
- project-with-lua-sources
- lua_sources
- project-with-node-modules
- node_modules
- lua-global-with-decls
- lua-global-without-decls
- lua-module-with-decls
- lua-module-with-dependency
- lua-module-without-decls
- project-with-sourceDir
- node_modules
- dependency1
- dependency2
- dependency3
- src
- subdir
- subdirofsubdir
- project-with-tstl-library-modules
- dependency1-ts
- dependency2-ts
- unit
- functions
- modules
- __snapshots__
- printer
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
86 files changed
+1102
-197
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
| 79 | + | |
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
| 86 | + | |
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
94 | | - | |
| 94 | + | |
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
101 | | - | |
| 101 | + | |
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
File renamed without changes.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
| |||
53 | 54 | | |
54 | 55 | | |
55 | 56 | | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
56 | 62 | | |
57 | 63 | | |
58 | 64 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | 1 | | |
3 | 2 | | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
7 | 6 | | |
8 | 7 | | |
9 | | - | |
| 8 | + | |
10 | 9 | | |
11 | 10 | | |
12 | 11 | | |
| |||
25 | 24 | | |
26 | 25 | | |
27 | 26 | | |
| 27 | + | |
| 28 | + | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
| |||
124 | 125 | | |
125 | 126 | | |
126 | 127 | | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
| 128 | + | |
143 | 129 | | |
144 | 130 | | |
145 | 131 | | |
| |||
201 | 187 | | |
202 | 188 | | |
203 | 189 | | |
204 | | - | |
| 190 | + | |
205 | 191 | | |
206 | 192 | | |
207 | 193 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
27 | 33 | | |
28 | 34 | | |
29 | 35 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | 97 | | |
102 | 98 | | |
103 | 99 | | |
| |||
0 commit comments