diff --git a/package.json b/package.json index b579959b..89fa1aa5 100644 --- a/package.json +++ b/package.json @@ -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" }, diff --git a/packages/benchmarks/package.json b/packages/benchmarks/package.json index bc038e4b..b4742ea2 100644 --- a/packages/benchmarks/package.json +++ b/packages/benchmarks/package.json @@ -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" diff --git a/packages/dom-event-testing-library/package.json b/packages/dom-event-testing-library/package.json index cbed922d..1c96ceb6 100644 --- a/packages/dom-event-testing-library/package.json +++ b/packages/dom-event-testing-library/package.json @@ -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", diff --git a/scripts/releasePackages.js b/scripts/releaseReactNativeWebPackages.js similarity index 80% rename from scripts/releasePackages.js rename to scripts/releaseReactNativeWebPackages.js index 3793d2c9..aea9c9d6 100644 --- a/scripts/releasePackages.js +++ b/scripts/releaseReactNativeWebPackages.js @@ -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 });