From 5ac90a584101e9a6f30782c9a0f16a30892c03cc Mon Sep 17 00:00:00 2001 From: Brandon Roberts Date: Mon, 7 Aug 2023 12:02:04 -0500 Subject: [PATCH] build: update packages for npm publishing --- build/publish-latest.ts | 18 ++++++++++++------ build/publish-next.ts | 18 ++++++++++++------ 2 files changed, 24 insertions(+), 12 deletions(-) diff --git a/build/publish-latest.ts b/build/publish-latest.ts index b9123d21fc..c70778a98a 100644 --- a/build/publish-latest.ts +++ b/build/publish-latest.ts @@ -1,17 +1,23 @@ import { createBuilder } from './util'; import { packages } from './config'; import * as shelljs from 'shelljs'; -import { readFileSync } from 'fs-extra'; /** * Publish release to NPM on "latest" tag */ export async function publishLatestToNpm() { - const configJSON = JSON.parse(readFileSync('./angular.json').toString()); - const projects = configJSON.projects; - const publishablePackages = Object.keys(projects).filter( - (project) => !!projects[project].architect['build-package'] - ); + const publishablePackages = [ + 'store', + 'effects', + 'router-store', + 'store-devtools', + 'entity', + 'component-store', + 'component', + 'schematics', + 'eslint-plugin', + 'data', + ]; for (let pkg of publishablePackages) { console.log(`Publishing @ngrx/${pkg}`); diff --git a/build/publish-next.ts b/build/publish-next.ts index 2503494af6..b81ef2b2ee 100644 --- a/build/publish-next.ts +++ b/build/publish-next.ts @@ -1,17 +1,23 @@ import { createBuilder } from './util'; import { packages } from './config'; import * as shelljs from 'shelljs'; -import { readFileSync } from 'fs-extra'; /** * Publish release to NPM on "next" tag */ export async function publishNextToNpm() { - const configJSON = JSON.parse(readFileSync('./angular.json').toString()); - const projects = configJSON.projects; - const publishablePackages = Object.keys(projects).filter( - (project) => !!projects[project].architect['build-package'] - ); + const publishablePackages = [ + 'store', + 'effects', + 'router-store', + 'store-devtools', + 'entity', + 'component-store', + 'component', + 'schematics', + 'eslint-plugin', + 'data', + ]; for (let pkg of publishablePackages) { console.log(`Publishing @ngrx/${pkg}`);