Skip to content

Moved micro to peerDependencies#69

Merged
leo merged 8 commits intovercel:masterfrom
fmiras:master
May 15, 2018
Merged

Moved micro to peerDependencies#69
leo merged 8 commits intovercel:masterfrom
fmiras:master

Conversation

@fmiras
Copy link
Copy Markdown
Contributor

@fmiras fmiras commented Mar 6, 2018

According to #31 this PR uses micro of the main project.

This closes #78 and fixes #31.

@leo
Copy link
Copy Markdown
Contributor

leo commented Mar 17, 2018

Sounds like a great idea! But we shouldn't hardcode the name of node_modules anywhere, in my opinion. We need to use a property of require. to find the module and load it.

Comment thread lib/log.js Outdated
const stringLength = require('string-length')
const { json, send } = require('micro')

const { json, send } = require(join(process.cwd(), 'node_modules/micro'))
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

You can just require micro. There’s no need to change this. Same Goes for the other cases. Also add micro to the devdeps 👍🏻

@fmiras
Copy link
Copy Markdown
Contributor Author

fmiras commented Mar 18, 2018

Sorry, I hate peerDependencies 😆.

@sijad
Copy link
Copy Markdown
Contributor

sijad commented Apr 27, 2018

any news?

@leo leo changed the title Move micro from dependencies to peerDependencies Moved micro to peerDependencies May 15, 2018
@leo leo merged commit b6cf4da into vercel:master May 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

micro as a peerDependency

4 participants