Skip to content

Conversation

sandersn
Copy link
Contributor

  1. Generate d.ts files for all .js files by adding "declaration": true in tsconfig.json.
  2. In index.d.ts, export * from './lib/core' instead of './core'

Fixes #173

1. Generate d.ts files for all .js files by adding `"declaration": true`
in tsconfig.json.
2. In index.d.ts, export * from './lib/core' instead of './core'
@sandersn
Copy link
Contributor Author

sandersn commented Jan 23, 2020

CI fails because ts-loader expects a node version higher than 8.0. Pretty sure this isn't related to my change.

Edit: Added a commit to use node 12.0 instead.

@sandersn
Copy link
Contributor Author

Now CI fails saying it can't find ./lib from index.js. This probably is a result of my change, but I'm not sure why.

@sandersn sandersn requested a review from crcn January 24, 2020 16:54
@sandersn
Copy link
Contributor Author

Oh, haha nope, #175 is also broken and does nothing but update to node 12.

@crcn crcn merged commit cfcd90f into crcn:master Jan 24, 2020
@sandersn sandersn deleted the fix-d.ts-generation branch January 24, 2020 18:23
@crcn
Copy link
Owner

crcn commented Jan 24, 2020

Thanks! Should be on NPM as 11.0.11.

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.

Types are broken in 11.0
2 participants