Eli Perelman
8 years ago
14 changed files with 14935 additions and 19 deletions
@ -0,0 +1,42 @@ |
|||
#! /usr/bin/env node |
|||
|
|||
const { readdirSync, writeFileSync } = require('fs'); |
|||
const { resolve, join } = require('path'); |
|||
const { inc } = require('semver'); |
|||
const rootPkg = require('../package.json'); |
|||
|
|||
const releases = ['major', 'minor', 'patch']; |
|||
const packages = resolve(__dirname, '../packages'); |
|||
const [,,release] = process.argv; |
|||
|
|||
if (!releases.includes(release)) { |
|||
throw new Error(`Release must be one of: major, minor, patch`); |
|||
} |
|||
|
|||
const version = inc(rootPkg.version, release); |
|||
|
|||
readdirSync(packages) |
|||
.map(name => { |
|||
const pkgPath = join(packages, name, 'package.json'); |
|||
const pkg = require(pkgPath); |
|||
|
|||
console.log(`Bumping ${name} to v${version}`); |
|||
pkg.version = version; |
|||
|
|||
if (pkg.peerDependencies && pkg.peerDependencies.neutrino) { |
|||
console.log(` Bumping neutrino peer dependency to v${version}`); |
|||
pkg.peerDependencies.neutrino = `^${version}`; |
|||
} |
|||
|
|||
Object |
|||
.keys(pkg.linkDependencies || {}) |
|||
.map(key => { |
|||
console.log(` Bumping ${key} linked dependency to v${version}`); |
|||
pkg.linkDependencies[key].version = version; |
|||
}); |
|||
|
|||
writeFileSync(pkgPath, `${JSON.stringify(pkg, null, 2)}\n`); |
|||
}); |
|||
|
|||
rootPkg.version = version; |
|||
writeFileSync(resolve(__dirname, '../package.json'), `${JSON.stringify(rootPkg, null, 2)}\n`); |
@ -1,7 +0,0 @@ |
|||
{ |
|||
"lerna": "2.0.0-beta.36", |
|||
"packages": [ |
|||
"packages/*" |
|||
], |
|||
"version": "4.0.0" |
|||
} |
@ -1,15 +1,23 @@ |
|||
{ |
|||
"name": "neutrino-dev", |
|||
"version": "1.0.0", |
|||
"version": "4.0.0", |
|||
"private": true, |
|||
"keywords": ["neutrino"], |
|||
"keywords": [ |
|||
"neutrino" |
|||
], |
|||
"author": "Eli Perelman <eli@eliperelman.com>", |
|||
"license": "MPL-2.0", |
|||
"scripts": { |
|||
"postinstall": "lerna clean && lerna bootstrap", |
|||
"link-all": "lerna exec -- yarn link" |
|||
"postinstall": "autolink bootstrap", |
|||
"clean-all": "autolink clean", |
|||
"link-all": "autolink link", |
|||
"bump:major": ".scripts/version-all major", |
|||
"bump:minor": ".scripts/version-all minor", |
|||
"bump:patch": ".scripts/version-all patch", |
|||
"publish-all": ".scripts/publish-all" |
|||
}, |
|||
"devDependencies": { |
|||
"lerna": "2.0.0-beta.36" |
|||
"semver": "^5.3.0", |
|||
"yarn-autolink": "^1.1.0" |
|||
} |
|||
} |
|||
|
File diff suppressed because it is too large
File diff suppressed because it is too large
File diff suppressed because it is too large
File diff suppressed because it is too large
File diff suppressed because it is too large
@ -0,0 +1,13 @@ |
|||
{ |
|||
"neutrino": [], |
|||
"neutrino-preset-base": [], |
|||
"neutrino-preset-node": [ |
|||
"neutrino-preset-base" |
|||
], |
|||
"neutrino-preset-react": [ |
|||
"neutrino-preset-web" |
|||
], |
|||
"neutrino-preset-web": [ |
|||
"neutrino-preset-base" |
|||
] |
|||
} |
@ -0,0 +1,159 @@ |
|||
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. |
|||
# yarn lockfile v1 |
|||
|
|||
|
|||
ansi-regex@^2.0.0: |
|||
version "2.1.1" |
|||
resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-2.1.1.tgz#c3b33ab5ee360d86e0e628f0468ae7ef27d654df" |
|||
|
|||
ansi-styles@^2.2.1: |
|||
version "2.2.1" |
|||
resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-2.2.1.tgz#b432dd3358b634cf75e1e4664368240533c1ddbe" |
|||
|
|||
balanced-match@^0.4.1: |
|||
version "0.4.2" |
|||
resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-0.4.2.tgz#cb3f3e3c732dc0f01ee70b403f302e61d7709838" |
|||
|
|||
brace-expansion@^1.0.0: |
|||
version "1.1.6" |
|||
resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.6.tgz#7197d7eaa9b87e648390ea61fc66c84427420df9" |
|||
dependencies: |
|||
balanced-match "^0.4.1" |
|||
concat-map "0.0.1" |
|||
|
|||
chalk@^1.0.0, chalk@^1.1.1: |
|||
version "1.1.3" |
|||
resolved "https://registry.yarnpkg.com/chalk/-/chalk-1.1.3.tgz#a8115c55e4a702fe4d150abd3872822a7e09fc98" |
|||
dependencies: |
|||
ansi-styles "^2.2.1" |
|||
escape-string-regexp "^1.0.2" |
|||
has-ansi "^2.0.0" |
|||
strip-ansi "^3.0.0" |
|||
supports-color "^2.0.0" |
|||
|
|||
cli-cursor@^1.0.2: |
|||
version "1.0.2" |
|||
resolved "https://registry.yarnpkg.com/cli-cursor/-/cli-cursor-1.0.2.tgz#64da3f7d56a54412e59794bd62dc35295e8f2987" |
|||
dependencies: |
|||
restore-cursor "^1.0.1" |
|||
|
|||
cli-spinners@^0.2.0: |
|||
version "0.2.0" |
|||
resolved "https://registry.yarnpkg.com/cli-spinners/-/cli-spinners-0.2.0.tgz#85078737913b880f6ec9ffe7b65e83ec7776284f" |
|||
|
|||
concat-map@0.0.1: |
|||
version "0.0.1" |
|||
resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" |
|||
|
|||
escape-string-regexp@^1.0.2: |
|||
version "1.0.5" |
|||
resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4" |
|||
|
|||
exit-hook@^1.0.0: |
|||
version "1.1.1" |
|||
resolved "https://registry.yarnpkg.com/exit-hook/-/exit-hook-1.1.1.tgz#f05ca233b48c05d54fff07765df8507e95c02ff8" |
|||
|
|||
fs.realpath@^1.0.0: |
|||
version "1.0.0" |
|||
resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f" |
|||
|
|||
glob@^7.0.5: |
|||
version "7.1.1" |
|||
resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.1.tgz#805211df04faaf1c63a3600306cdf5ade50b2ec8" |
|||
dependencies: |
|||
fs.realpath "^1.0.0" |
|||
inflight "^1.0.4" |
|||
inherits "2" |
|||
minimatch "^3.0.2" |
|||
once "^1.3.0" |
|||
path-is-absolute "^1.0.0" |
|||
|
|||
has-ansi@^2.0.0: |
|||
version "2.0.0" |
|||
resolved "https://registry.yarnpkg.com/has-ansi/-/has-ansi-2.0.0.tgz#34f5049ce1ecdf2b0649af3ef24e45ed35416d91" |
|||
dependencies: |
|||
ansi-regex "^2.0.0" |
|||
|
|||
inflight@^1.0.4: |
|||
version "1.0.6" |
|||
resolved "https://registry.yarnpkg.com/inflight/-/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9" |
|||
dependencies: |
|||
once "^1.3.0" |
|||
wrappy "1" |
|||
|
|||
inherits@2: |
|||
version "2.0.3" |
|||
resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.3.tgz#633c2c83e3da42a502f52466022480f4208261de" |
|||
|
|||
log-symbols@^1.0.2: |
|||
version "1.0.2" |
|||
resolved "https://registry.yarnpkg.com/log-symbols/-/log-symbols-1.0.2.tgz#376ff7b58ea3086a0f09facc74617eca501e1a18" |
|||
dependencies: |
|||
chalk "^1.0.0" |
|||
|
|||
minimatch@^3.0.2: |
|||
version "3.0.3" |
|||
resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.3.tgz#2a4e4090b96b2db06a9d7df01055a62a77c9b774" |
|||
dependencies: |
|||
brace-expansion "^1.0.0" |
|||
|
|||
once@^1.3.0: |
|||
version "1.4.0" |
|||
resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1" |
|||
dependencies: |
|||
wrappy "1" |
|||
|
|||
onetime@^1.0.0: |
|||
version "1.1.0" |
|||
resolved "https://registry.yarnpkg.com/onetime/-/onetime-1.1.0.tgz#a1f7838f8314c516f05ecefcbc4ccfe04b4ed789" |
|||
|
|||
ora@^0.3.0: |
|||
version "0.3.0" |
|||
resolved "https://registry.yarnpkg.com/ora/-/ora-0.3.0.tgz#367a078ad25cfb096da501115eb5b401e07d7495" |
|||
dependencies: |
|||
chalk "^1.1.1" |
|||
cli-cursor "^1.0.2" |
|||
cli-spinners "^0.2.0" |
|||
log-symbols "^1.0.2" |
|||
|
|||
path-is-absolute@^1.0.0: |
|||
version "1.0.1" |
|||
resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f" |
|||
|
|||
restore-cursor@^1.0.1: |
|||
version "1.0.1" |
|||
resolved "https://registry.yarnpkg.com/restore-cursor/-/restore-cursor-1.0.1.tgz#34661f46886327fed2991479152252df92daa541" |
|||
dependencies: |
|||
exit-hook "^1.0.0" |
|||
onetime "^1.0.0" |
|||
|
|||
rimraf@^2.5.4: |
|||
version "2.5.4" |
|||
resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.5.4.tgz#96800093cbf1a0c86bd95b4625467535c29dfa04" |
|||
dependencies: |
|||
glob "^7.0.5" |
|||
|
|||
semver@^5.3.0: |
|||
version "5.3.0" |
|||
resolved "https://registry.yarnpkg.com/semver/-/semver-5.3.0.tgz#9b2ce5d3de02d17c6012ad326aa6b4d0cf54f94f" |
|||
|
|||
strip-ansi@^3.0.0: |
|||
version "3.0.1" |
|||
resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-3.0.1.tgz#6a385fb8853d952d5ff05d0e8aaf94278dc63dcf" |
|||
dependencies: |
|||
ansi-regex "^2.0.0" |
|||
|
|||
supports-color@^2.0.0: |
|||
version "2.0.0" |
|||
resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-2.0.0.tgz#535d045ce6b6363fa40117084629995e9df324c7" |
|||
|
|||
wrappy@1: |
|||
version "1.0.2" |
|||
resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f" |
|||
|
|||
yarn-autolink@^1.1.0: |
|||
version "1.1.0" |
|||
resolved "https://registry.yarnpkg.com/yarn-autolink/-/yarn-autolink-1.1.0.tgz#4d02aa7ac92685952d92c726b356e5eae7cd2172" |
|||
dependencies: |
|||
ora "^0.3.0" |
|||
rimraf "^2.5.4" |
Loading…
Reference in new issue