docker-compose
docker-compose copied to clipboard
Support TypeScript + ESM
fixes #276
I included the mention of ESM in my post for completeness, though I do not think it plays any part here.
To resolve the issue, change the v2.d.ts to be:
/// <reference types="node" />
declare module 'docker-compose/dist/v2' {
...
export default _default;
}
Then, all you need to do is add that to the includes in your tsconfig.json
{
"include": [
"**/*.ts",
"../../node_modules/docker-compose/dist/v2.d.ts"
],
}
I'm just not sure if that is the best approach
Please take a look at #278