From 4354ddd8ef026dd2655c5d34e28bf83c16c9043a Mon Sep 17 00:00:00 2001 From: Jay Date: Tue, 19 Dec 2023 16:04:50 +0800 Subject: [PATCH] Update distDir and deploy scripts (#598) * Update dist-dir and deploy scripts * ci: fix ci.yml --- .github/workflows/ci.yml | 4 ++-- next.config.js | 1 - package.json | 12 ++++++------ packages/apps/README.md | 1 - 4 files changed, 8 insertions(+), 10 deletions(-) delete mode 100644 packages/apps/README.md diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 31d72e4a0..0bdd1aa37 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,5 +21,5 @@ jobs: - name: Build run: | - npm run build:apps - npm run build:apps:test + npm run build + npm run build:test diff --git a/next.config.js b/next.config.js index 9dd90f86f..f46922245 100644 --- a/next.config.js +++ b/next.config.js @@ -1,6 +1,5 @@ /** @type {import('next').NextConfig} */ const nextConfig = { - distDir: "/packages/apps/.next", webpack: (config) => { config.externals.push("lokijs", "encoding", "pino-pretty"); return config; diff --git a/package.json b/package.json index dde9b907a..8306ecb70 100644 --- a/package.json +++ b/package.json @@ -3,12 +3,12 @@ "description": "Helix UI", "private": true, "scripts": { - "dev:apps": "next dev -p 3030", - "build:apps": "next build", - "start:apps": "next start", - "dev:apps:test": "NODE_ENV=test next dev -p 3030", - "build:apps:test": "NODE_ENV=test next build", - "start:apps:test": "NODE_ENV=test next start", + "dev": "next dev -p 3030", + "build": "next build", + "start": "next start", + "dev:test": "NODE_ENV=test next dev -p 3030", + "build:test": "NODE_ENV=test next build", + "start:test": "NODE_ENV=test next start", "prettier": "prettier '**/*.{js,jsx,ts,tsx,json}' --write", "lint": "next lint", "test": "jest", diff --git a/packages/apps/README.md b/packages/apps/README.md deleted file mode 100644 index 677894154..000000000 --- a/packages/apps/README.md +++ /dev/null @@ -1 +0,0 @@ -## For distDir \ No newline at end of file