-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
fix: ESM module types #1889
Closed
Closed
fix: ESM module types #1889
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
19ed47d
chore: upgraded tsup version to 8.0.0+
petertonysmith94 13333ed
chore: removed types from abi-typegen package.json
petertonysmith94 253e64b
chore: refactored postbuild to use tsup and emit declarations
petertonysmith94 94288d4
chore: refactored handlebars import to use the default export
petertonysmith94 75b0a18
chore: linting
petertonysmith94 c96c00b
chore: added changeset
petertonysmith94 ec77c6f
feat: added tsupDts configurations
petertonysmith94 40d713f
feat: emit typescript types via tsup
petertonysmith94 1b26c46
chore: removed postbuild.ts
petertonysmith94 938a315
feat: added verify-package-distro command
petertonysmith94 08be472
feat: added distribution node runner
petertonysmith94 4302f07
Merge branch 'master' into ps/bug/import-esm-abi-typegen
petertonysmith94 853141b
Merge branch 'master' into ps/bug/import-esm-abi-typegen
petertonysmith94 23c96a1
Merge branch 'master' of https://github.com/FuelLabs/fuels-ts into ps…
petertonysmith94 fb553ab
chore: linting
petertonysmith94 f803e1d
chore: synced the changeset with PR title
petertonysmith94 dfec259
Merge branch 'master' of https://github.com/FuelLabs/fuels-ts into ps…
petertonysmith94 2585937
Merge branch 'master' of https://github.com/FuelLabs/fuels-ts into ps…
petertonysmith94 279fdf8
Merge branch 'master' of https://github.com/FuelLabs/fuels-ts into ps…
petertonysmith94 666e19a
chore: publish preview pls
petertonysmith94 1c80bb4
chore: fixed lint rule "@typescript-eslint/require-await"
petertonysmith94 c9d44a7
fix: issue with normalize not identifying the constructor
petertonysmith94 a8fac0c
chore: lint
petertonysmith94 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 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,5 @@ | ||
--- | ||
"@fuel-ts/abi-typegen": minor | ||
--- | ||
|
||
fix: ESM module types |
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
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,9 @@ | ||
{ | ||
"extends": "./tsconfig.json", | ||
"compilerOptions": { | ||
"outDir": "./dist", | ||
"rootDir": "./src" | ||
}, | ||
"include": ["src"], | ||
"exclude": ["**/*.test.ts"] | ||
} |
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 type { Options } from 'tsup'; | ||
|
||
import { tsupDtsDefaults } from './src'; | ||
import tsupPkg from './tsup.config'; | ||
|
||
const configs: Options = { | ||
...tsupPkg, | ||
...tsupDtsDefaults | ||
}; | ||
|
||
export default configs; |
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 { tsupDtsDefaults } from '@internal/tsup'; | ||
import type { Options } from 'tsup'; | ||
|
||
import tsupPkg from './tsup.config'; | ||
|
||
const configs: Options = { | ||
...tsupPkg, | ||
...tsupDtsDefaults, | ||
}; | ||
|
||
export default configs; |
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 { tsupDtsDefaults } from '@internal/tsup'; | ||
import type { Options } from 'tsup'; | ||
|
||
import tsupPkg from './tsup.config'; | ||
|
||
const configs: Options = { | ||
...tsupPkg, | ||
...tsupDtsDefaults, | ||
}; | ||
|
||
export default configs; |
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
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 { tsupDtsDefaults } from '@internal/tsup'; | ||
import type { Options } from 'tsup'; | ||
|
||
import tsupPkg from './tsup.config'; | ||
|
||
const configs: Options = { | ||
...tsupPkg, | ||
...tsupDtsDefaults, | ||
}; | ||
|
||
export default configs; |
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 { tsupDtsDefaults } from '@internal/tsup'; | ||
import type { Options } from 'tsup'; | ||
|
||
import tsupPkg from './tsup.config'; | ||
|
||
const configs: Options = { | ||
...tsupPkg, | ||
...tsupDtsDefaults, | ||
}; | ||
|
||
export default configs; |
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 { tsupDtsDefaults } from '@internal/tsup'; | ||
import type { Options } from 'tsup'; | ||
|
||
import tsupPkg from './tsup.config'; | ||
|
||
const configs: Options = { | ||
...tsupPkg, | ||
...tsupDtsDefaults, | ||
}; | ||
|
||
export default configs; |
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Upgraded
tsup
to8.0.0
. We could go to7.1.0
to allow for the following change, which enables the correct type files to be generated.