-
Notifications
You must be signed in to change notification settings - Fork 8
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
Truffle(@next) does not find any migrations with .ts extension #2
Comments
Workaround: set
and run I use this tsconfig file
|
My fix PR was merged in the latest truffle beta |
While I can now select .ts files, it freaks out on imports
Without the |
Using jsdoc comments might be a decent work around for now. You can still import the generated typings. Example: import {
ConvertLibContract,
MetaCoinContract
} from "../types/truffle-contracts";
/**
* @type {ConvertLibContract}
*/
var ConvertLib = artifacts.require("./ConvertLib.sol");
/**
* @type {MetaCoinContract}
*/
var MetaCoin = artifacts.require("./MetaCoin.sol"); |
The problem with:
is that you need to use artifact name like this instead:
But anyway, I can't get it to work as files don't seem to be transpiled on the fly... I am not sure why. @roderik any ideas? |
It can be configured with https://github.com/trufflesuite/truffle/blob/46fc7bdb9fde7cc3fa99b94fef04b1d6c04c38f7/packages/truffle-migrate/index.js#L30 but I have not figured out how to set it
The text was updated successfully, but these errors were encountered: