diff --git a/package-lock.json b/package-lock.json index cc14be1a25..6923203ac2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -4807,6 +4807,10 @@ "node": ">=6" } }, + "node_modules/html-reporter": { + "resolved": "packages/html-reporter", + "link": true + }, "node_modules/html-webpack-plugin": { "version": "5.3.2", "resolved": "https://registry.npmjs.org/html-webpack-plugin/-/html-webpack-plugin-5.3.2.tgz", @@ -9047,6 +9051,7 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "packages/html-reporter": {}, "packages/playwright": { "version": "1.18.0-next", "hasInstallScript": true, @@ -12888,6 +12893,9 @@ "terser": "^4.6.3" } }, + "html-reporter": { + "version": "file:packages/html-reporter" + }, "html-webpack-plugin": { "version": "5.3.2", "resolved": "https://registry.npmjs.org/html-webpack-plugin/-/html-webpack-plugin-5.3.2.tgz", diff --git a/packages/html-reporter/build.js b/packages/html-reporter/build.js new file mode 100644 index 0000000000..20719c4e5e --- /dev/null +++ b/packages/html-reporter/build.js @@ -0,0 +1,2 @@ +// write something to playwright-core/lib/web/ with webpack + diff --git a/packages/html-reporter/package.json b/packages/html-reporter/package.json new file mode 100644 index 0000000000..a2c087cbac --- /dev/null +++ b/packages/html-reporter/package.json @@ -0,0 +1,4 @@ +{ + "name": "html-reporter", + "private": true +} \ No newline at end of file diff --git a/utils/list_packages.js b/utils/list_packages.js index 5c5a83107a..8c24774788 100644 --- a/utils/list_packages.js +++ b/utils/list_packages.js @@ -35,4 +35,10 @@ function* internalDependencies(packagePath) { } } -module.exports = { packages, packageNameToPath }; \ No newline at end of file +const packagesToPublish = packages.filter(packagePath => !packagePathToJSON.get(packagePath).private); + +module.exports = { + packages, + packageNameToPath, + packagesToPublish, +}; diff --git a/utils/prepare_packages.js b/utils/prepare_packages.js index 63449e4e59..5e90c84a2c 100644 --- a/utils/prepare_packages.js +++ b/utils/prepare_packages.js @@ -55,6 +55,9 @@ const PACKAGES = { browsers: ['chromium', 'ffmpeg'], files: LICENSE_FILES, }, + 'html-reporter': { + files: [], + } }; const dirtyFiles = []; @@ -92,6 +95,8 @@ async function lintPackage(packageName) { // 4. Generate package.json const pwInternalJSON = require(path.join(ROOT_PATH, 'package.json')); const currentPackageJSON = require(path.join(packagePath, 'package.json')); + if (currentPackageJSON.private) + return; currentPackageJSON.version = pwInternalJSON.version; currentPackageJSON.repository = pwInternalJSON.repository; currentPackageJSON.engines = pwInternalJSON.engines; diff --git a/utils/publish_all_packages.sh b/utils/publish_all_packages.sh index fd16514006..c628d04584 100755 --- a/utils/publish_all_packages.sh +++ b/utils/publish_all_packages.sh @@ -92,7 +92,7 @@ fi echo "==================== Publishing version ${VERSION} ================" node ./utils/prepare_packages.js -node -e "console.log(require('./utils/list_packages').packages.join('\\n'))" | while read package +node -e "console.log(require('./utils/list_packages').packagesToPublish.join('\\n'))" | while read package do npm publish ${package} --tag="${NPM_PUBLISH_TAG}" done