Skip to content
This repository has been archived by the owner on Dec 30, 2021. It is now read-only.

Enable TypeScript support #137

Merged
merged 1 commit into from
Mar 18, 2021
Merged

Enable TypeScript support #137

merged 1 commit into from
Mar 18, 2021

Conversation

kaimallea
Copy link
Owner

@kaimallea kaimallea commented Mar 18, 2021

This enables both JavaScript and TypeScript to co-exist, for now. While coding some new things in separate branches, I find myself trying to write big JSDoc comments. So I'm basically writing TypeScript...

npm run build will still compile .js files with Babel via preset-env. If any .ts files exist, they will be compiled from TS into JS.

package.json Outdated
@@ -18,10 +18,14 @@
"form-data": "^4.0.0",
"got": "^11.8.1"
},
"main": "lib/imgur.js",
"main": "./lib/index.js",
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

intentional, next-dev is going to use an index to rollup the modularized code

enables both javascript and typescript to co-exist
@kaimallea kaimallea changed the title Enable Typescript Enable TypeScript support Mar 18, 2021
@kaimallea kaimallea merged commit d598f44 into next-dev Mar 18, 2021
@kaimallea kaimallea deleted the typescript branch March 18, 2021 01:36
@kaimallea
Copy link
Owner Author

🎉 This PR is included in version 2.0.0-next.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

1 participant