-
-
Notifications
You must be signed in to change notification settings - Fork 672
Add node module resolution by default and use --path for custom package locations #594
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 51 commits
Commits
Show all changes
55 commits
Select commit
Hold shift + click to select a range
b8e8ee1
Added all dependencies to library files
willemneal c161742
Works but requires reading in all files
willemneal ff91130
Working
willemneal a380ed4
freeze
willemneal 277853e
Working but need to add test
willemneal 1dae71a
Merge remote-tracking branch 'upstream/master' into module_resolution
willemneal ef9ebdf
Merge remote-tracking branch 'upstream/master' into module_resolution
willemneal 0c42af4
Updated to lazily find packages
willemneal af33db0
Update dist files
willemneal cd875dc
Added tests
willemneal 6ffb5ff
Fixed output for resolution trace and file list
willemneal 5869b57
Reverted dist files
willemneal b9a29b7
Actually revert dist files and add PR to tests
willemneal 0e3f1a8
I really mean it this time
willemneal 671d49c
For some reason it says it doesn't exist on master...
willemneal 7d4e478
Copied from master
willemneal deb8942
forgot a space
willemneal 92e03e5
change but it says file contents unchanged
willemneal 29ac93e
Changed output to stderr and removed template literals
willemneal 9b8a1d3
Removed all dependencies
willemneal 79c08f2
Update .gitignore
willemneal 84d2429
Update .gitignore
willemneal e5beacf
Format comment
willemneal 117ce01
Fix PR issues
willemneal c7f6ad0
wrapped JSON.parse in a try/catch
1c86edc
nit fixes
willemneal edcf1a0
Search node_modules by default
willemneal 78907a1
Merge remote-tracking branch 'upstream/master' into module_resolution
willemneal 50c2342
Add dependee to backlog
willemneal 1b0c4d7
imports start search from dependee
willemneal aad9ed2
switch to destructuring instead of flat()
willemneal 9f42e76
Changed back to C-like API
willemneal df4f0df
Removed use of unix test command
willemneal aa92094
Change script field and change to regex.test
willemneal f36d31d
Travis test
willemneal 915761c
simplified regex and added flag
willemneal fad255a
Print out more info
willemneal 8db83c6
Try again
willemneal 4dba3d8
Should work now
willemneal 1795bca
Made hard copies of dependencies for better windows support
willemneal 204791e
formatting [skip ci]
willemneal 9aa137b
Removed using npm all together
willemneal 55b7f05
Removed all package.json files and scripts
willemneal 02d847a
formatting
willemneal c7496c2
removed sysPaths from parser and moved to map in asc
87b6b5f
Changed to map paths to sources
bffa751
formatting and replaced regex replace
78a84b3
Fix sep constant and g's test
afe3276
Removed default baseDir in nodeFileRead
040fe22
Last nit fixes
e4ca804
Formatting
willemneal 1e29ad2
[skip ci]
willemneal 4a53df2
Improved trace information
willemneal ed7eb64
fix split of internal path to `/`
willemneal 2c94848
nit [skip ci]
willemneal File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,4 @@ docs/ | |
node_modules/ | ||
out/ | ||
raw/ | ||
.history | ||
.history |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
packages/*/package-lock.json | ||
package-lock.json | ||
!node_modules/ | ||
!packages/**/*/node_modules/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"scripts": { | ||
"test": "npm run a && npm run b && npm run c && npm run d && npm run e && npm run f && npm run g && npm run as", | ||
"a": "cd ./packages/a && node ../../../../bin/asc assembly/index.ts --noEmit --runtime stub --validate", | ||
"as": "cd ./packages/as && node ../../../../bin/asc as/index.ts --noEmit --runtime stub --validate", | ||
"b": "cd ./packages/b && node ../../../../bin/asc assembly/index.ts --noEmit --runtime stub && node ../../../../bin/asc assembly/index.ts --noEmit --runtime stub --listFiles", | ||
"c": "cd ./packages/c && node ../../../../bin/asc assembly/index.ts --noEmit --runtime stub --validate", | ||
"d": "cd ./packages/d && node ../../../../bin/asc assembly/index.ts --path packages --noEmit --runtime stub --validate --traceResolution", | ||
"e": "cd ./packages/d/packages/e && node ../../../../../../bin/asc assembly/index.ts --noEmit --runtime stub --validate", | ||
"f": "cd ./packages/d/packages/e/packages/f && node ../../../../../../../../bin/asc assembly/index.ts --noEmit --runtime stub --validate", | ||
"g": "cd ./packages/g && node test.js" | ||
}, | ||
"author": "Willem Wyndham", | ||
"license": "Apache-2.0" | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export function A(): string { | ||
return "A"; | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from "./a"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export function AS(str: string): string { | ||
return str + "S"; | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from "./as"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"ascMain": "as/index.ts" | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { A } from "a"; | ||
|
||
export function B(): string { | ||
return "B"; | ||
} | ||
|
||
export function AB(): string { | ||
return A() + B(); | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from "./b"; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.