Skip to content
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

Support TypeScript + ESM #277

Closed
wants to merge 12 commits into from
Closed

Support TypeScript + ESM #277

wants to merge 12 commits into from

Conversation

AlexZeitler
Copy link
Contributor

fixes #276

@jd-carroll
Copy link

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

@jd-carroll
Copy link

Please take a look at #278

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Docker-Compose V2 && ESM + TypeScript
2 participants