Comments (3)
Would be interesting to see how others deal with it - I think babel, lerna, jest, rollup & others are bootstrapping their projects.
Actually I had no idea that this was also used here in source files, I had similar problem in other project which lead to my PR here, but I personally need this only for testing purposes - not for the source compilation, so it's generally not a problem for my projects. But I see how this is a problem for this one.
from param.macro.
Babel & lerna can do it because they're in a monorepo structure where a top level package.json contains dependencies that the lower level packages don't but can still access above. I'm not sure that jest tests itself, but the most interesting of those projects was rollup
. It literally has a dev dependency on itself which I thought was disallowed.
Apparently, and I can't find this documented anywhere, while npm won't let you explicitly use npm install --save-dev current-package
to add that dependency it won't actually do anything to prevent installing it if you just add the dep manually to your package.json
and run a bare npm install
.
Yarn on the other hand seems perfectly ok with simply adding a project to itself as a dev dependency, or even as a regular dependency with yarn add current-package
.
That means it'd be a lot simpler to just have a dev dependency on the last version of param.macro
. Guess we've been overcomplicating things 🤦♂️.
from param.macro.
Fixed in ddc63e7
The dev experience is already so much better!
from param.macro.
Related Issues (17)
- Rest/spread placeholder HOT 8
- Which pipe plugin are you using ? HOT 1
- Seem not work with styled-components HOT 5
- Seems not working with pipeline-operator + template literal HOT 2
- Lift curries implicit binary function HOT 5
- Typescript Intellisense HOT 7
- Placeholders: stop upward traversal at `ObjectProperty` HOT 4
- `it` with assignment HOT 1
- Discussions are now open
- Playground does not work HOT 2
- Allow & evaluate future syntax in the playground (ie. pipeline) HOT 2
- Include tail paths inside the wrapper function HOT 1
- Babel 6 compatibility HOT 1
- Upgrade to babel-plugin-macros HOT 2
- TypeError: Cannot read property 'data' of undefined HOT 4
- How to create simple implicit functions HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from param.macro.