@nocobase/cli 3.0.0-alpha.1 → 3.0.0-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -208,6 +208,12 @@ export async function deployPortalWorkspace(options) {
208
208
  portalBase,
209
209
  });
210
210
  const runCommand = options.runCommand ?? run;
211
+ await runCommand('pnpm', ['install'], {
212
+ cwd: portalDir,
213
+ env: buildPortalCommandEnv(),
214
+ envMode: 'replace',
215
+ errorName: 'pnpm install',
216
+ });
211
217
  await runCommand('pnpm', ['build'], {
212
218
  cwd: portalDir,
213
219
  env: buildPortalCommandEnv({
@@ -217,6 +223,15 @@ export async function deployPortalWorkspace(options) {
217
223
  envMode: 'replace',
218
224
  errorName: 'pnpm build',
219
225
  });
226
+ await runCommand('pnpm', ['build:html'], {
227
+ cwd: portalDir,
228
+ env: buildPortalCommandEnv({
229
+ NOCOBASE_API_URL: apiBaseUrl,
230
+ NOCOBASE_PORTAL_BASE: portalBase,
231
+ }),
232
+ envMode: 'replace',
233
+ errorName: 'pnpm build:html',
234
+ });
220
235
  await assertFileExists(path.join(distDir, 'index.html'), portalDeployText('errors.distMissing', { distDir }, `Portal build did not produce ${path.join(distDir, 'index.html')}.`));
221
236
  await ensurePortalDistPublicReadable({
222
237
  storagePath,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nocobase/cli",
3
- "version": "3.0.0-alpha.1",
3
+ "version": "3.0.0-alpha.2",
4
4
  "description": "NocoBase Command Line Tool",
5
5
  "type": "module",
6
6
  "main": "dist/generated/command-registry.js",
@@ -147,5 +147,5 @@
147
147
  "type": "git",
148
148
  "url": "git+https://github.com/nocobase/nocobase.git"
149
149
  },
150
- "gitHead": "22d8be8ece179cfa5c8a4ebb2c896c92bd418e03"
150
+ "gitHead": "a3faea21082b30989301de04591ee1b91fd4e6a5"
151
151
  }