-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add proper support to Node. Previously when importing with node/vite there were errors about importing a directory and relative files needed the .js extension explicitly listed. Now it works in both node and browser.
- Loading branch information
Showing
72 changed files
with
1,655 additions
and
1,914 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
Run the examples using ts-node. | ||
Run the examples using tsx. | ||
|
||
Example: | ||
npx ts-node .\examples\julian.ts -p ./examples/tsconfig.json | ||
npx tsx .\examples\julian.ts -p ./examples/tsconfig.json |
This file contains 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 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 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,11 @@ | ||
import { DetailedSatellite } from '../dist/main.js'; | ||
|
||
const tle1 = '1 56006U 23042W 24012.45049317 .00000296 00000-0 36967-4 0 9992'; | ||
const tle2 = '2 56006 43.0043 13.3620 0001137 267.5965 92.4747 15.02542972 44491'; | ||
const satellite = new DetailedSatellite({ | ||
tle1, | ||
tle2, | ||
}); | ||
|
||
// eslint-disable-next-line no-console | ||
console.log(satellite); |
This file contains 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 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
Oops, something went wrong.