mirror of
https://github.com/zoriya/react-native-web.git
synced 2026-05-16 04:10:30 +00:00
Publish only updates react-native-web packages
The script to release react-native-web is now limited to version-locking related packages, not every package in the monorepo.
This commit is contained in:
+2
-2
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"private": true,
|
||||
"version": "0.18.3",
|
||||
"version": "0.0.0",
|
||||
"name": "monorepo",
|
||||
"scripts": {
|
||||
"clean": "del-cli ./packages/*/dist",
|
||||
@@ -25,7 +25,7 @@
|
||||
"lint": "yarn lint:report --fix",
|
||||
"lint:report": "eslint configs packages scripts --config ./configs/.eslintrc",
|
||||
"prerelease": "yarn test && yarn compile",
|
||||
"release": "node ./scripts/releasePackages.js",
|
||||
"release": "node ./scripts/releaseReactNativeWebPackages.js",
|
||||
"postrelease": "yarn docs:release && yarn benchmarks:release",
|
||||
"test": "yarn flow && yarn fmt:report && yarn lint:report && yarn jest --runInBand"
|
||||
},
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"private": true,
|
||||
"name": "benchmarks",
|
||||
"version": "0.18.3",
|
||||
"version": "0.0.0",
|
||||
"scripts": {
|
||||
"dev": "mkdir -p dist && cp -f index.html dist/index.html && ./node_modules/.bin/webpack-cli --config ./webpack.config.js",
|
||||
"build": "NODE_ENV=production yarn dev"
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"private": true,
|
||||
"name": "dom-event-testing-library",
|
||||
"version": "0.18.3",
|
||||
"version": "0.0.0",
|
||||
"main": "index.js",
|
||||
"description": "Browser event sequences for unit tests",
|
||||
"author": "Nicolas Gallagher",
|
||||
|
||||
@@ -15,13 +15,17 @@ const version = argv._[0];
|
||||
const skipGit = argv['skip-git'];
|
||||
const oneTimeCode = argv.otp;
|
||||
|
||||
console.log(`Publishing ${version}`);
|
||||
console.log(`Publishing react-native-web@${version}`);
|
||||
|
||||
// Collect workspaces and package manifests
|
||||
const workspacePaths = require('../package.json').workspaces.concat(['./']);
|
||||
// Collect 'react-native-web' workspaces and package manifests
|
||||
const workspacePaths = require('../package.json').workspaces;
|
||||
const workspaces = workspacePaths.reduce((acc, curr) => {
|
||||
const packageDirectories = glob.sync(path.resolve(curr));
|
||||
packageDirectories.forEach((directory) => {
|
||||
const packageDirectories = glob.sync(curr);
|
||||
const subsetOfpackageDirectories = packageDirectories.filter((dir) => {
|
||||
return dir.includes('react-native-web');
|
||||
});
|
||||
subsetOfpackageDirectories.forEach((dir) => {
|
||||
const directory = path.resolve(dir);
|
||||
const packageJsonPath = path.join(directory, 'package.json');
|
||||
const packageJson = JSON.parse(fs.readFileSync(packageJsonPath, { encoding: 'utf-8' }));
|
||||
acc.push({ directory, packageJson, packageJsonPath });
|
||||
Reference in New Issue
Block a user