Conversation
chicoxyzzy
commented
Feb 14, 2017
| Q | A |
|---|---|
| Patch: Bug Fix? | no |
| Major: Breaking Change? | no |
| Minor: New Feature? | no |
| Deprecations? | no |
| Spec Compliancy? | no |
| Tests Added/Pass? | no |
| Fixed Tickets | Fixes #5299 |
| License | MIT |
| Doc PR | |
| Dependency Changes |
|
@chicoxyzzy, thanks for your PR! By analyzing the history of the files in this pull request, we identified @hzoo, @danez and @bcoe to be potential reviewers. |
|
If we do this we can change the contributing.md https://github.com/babel/babel/blob/master/CONTRIBUTING.md#setup to say although I would also add a section to explain what bootstrap does?
|
|
This would run npm install twice for the root I think, but probably is not a big issue. |
|
Oh right - hmm I wonder what happens for yarn for 7.0 |
That's true but preinstall will be called once |
|
|
|
hmmm... that's weird but I see |
|
Maybe it won't run again if it's currently being run 😄 ? |
|
One caveat of the And also upgrading/adding a new dependency will run Also maybe you could split
|
|
I've tried this but make: ./node_modules/.bin/lerna: No such file or directoryrelated npm issue: npm/npm#10379 |
|
Edit: nm I misread. |
|
That's exactly what I did: There is an issue in npm |
|
Maybe make a conditional |
|
Just realized that if we'll make Babel run tests via |
|
That would cool! cc @MylesBorins |
|
As long as releases continue to use a consistent tagging as I'm seeing in https://github.com/babel/babel/tags we could definitely get babel on CITGM! Does someone want a good first contrib to www.github.com/nodejs/citgm ?? |
|
Might be a good beginner-friendly issue?
So it should be ok if we use |
|
@hzoo |
|
I'm getting following error when running CITGM ➜ citgm git:(master) ✗ ./bin/citgm.js -v verbose babel
info: starting | babel
verbose: babel using-uid | 501
verbose: babel using-gid | 20
verbose: babel using-node | /Users/Chico/.nvm/versions/node/v7.5.0/bin/node
verbose: babel using-npm | /Users/Chico/.nvm/versions/node/v7.5.0/bin/npm
verbose: babel mk.tempdir | /var/folders/rt/rl8_2jsn67l24mvmfwdkgqzm0000gn/T/6c4015d7-060b-43c4-93db-97509d257119
info: lookup | babel
info: lookup-found | babel
info: babel lookup-replace| https://github.com/babel/babel/tree/master/packages/babel/archive/v6.23.0.tar.gz
info: babel npm: | Downloading project: https://github.com/babel/babel/tree/master/packages/babel/archive/v6.23.0.tar.gz
error: failure | Failure getting project from npm
error: failing module(s) |
error: module name: | babel
error: version: | 6.23.0
error: error: | Failure getting project from npm
error: error: |
error: done | The smoke test has failed.
info: duration | test duration: 73385mslookup.json "babel": {
"prefix": "v"
} |
|
Is it because Babel is a monorepo? |
|
Adding |
|
So we have run into this edge case before and it is caused by we can repro with citgm via The first time we ran into it was with lerna usage on --> npm/npm#15563 I'm digging into the errors from npm to see what's up, this is a slightly different edge case. Will update inline edit: it is because the package.json inside the babel tarball does not have a name. Is there a reason you publish with a stripped down package.json? |
|
I think this should only run the first time you clone Babel. Each time we add a new dependecy and run |
|
As far as I understand this is possible only using post-checkout GIT hook. But CITGM will ignore any GIT hooks |
No reason it's just a monorepo and the top level package.json isn't a package, but holds our devDeps so probably didn't think it was necessary to have a name (and we have a but #5311 should fix! |
|
Now |
|
can we solve this using lerna and use version from |
|
I have a lot of questions:
|
|
If we just need a version in the top level package.json we can just add it with like 0.0.0 or something |
|
when I run |
|
It seems that lerna has more blockers for including in CITGM than just npm/npm#15563 |
|
if you are going to add a version I do humbly request you don't just opt for 0.0.0. We use those version number when investigating |
|
I'm working on upgrading to yarn 2 + workspaces, which make |