Skip to content

Commit

Permalink
fix($build): error
Browse files Browse the repository at this point in the history
  • Loading branch information
iq9891 committed Jun 16, 2022
1 parent e0f7596 commit 8dcbdfd
Show file tree
Hide file tree
Showing 13 changed files with 81 additions and 96 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"start": "esno scripts/turbo.ts --cmd start",
"build": "pnpm build:pkg",
"build:pkg": "pnpm run --filter=@fe6/biu build && pnpm run --filter=@fe6/* --filter=!@fe6/biu --parallel build",
"build:release": "esno scripts/turbo.ts --cmd build --no-cache -- --declarationMap false",
"docs:dev": "vitepress dev docs --host",
"docs:build": "vitepress build docs",
"docs:start": "vitepress serve docs --host",
Expand Down Expand Up @@ -51,7 +52,7 @@
"semver": "7.3.5",
"ts-node": "^10.7.0",
"ts-transform-paths": "^2.0.3",
"turbo": "^1.1.6",
"turbo": "^1.2.16",
"typescript": "^4.6.2",
"vitepress": "^0.22.3",
"zx": "4.3.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/biu/src/cli/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import fs from '@fe6/biu-deps/compiled/fs-extra';
import path from 'path';
import { logger } from '@fe6/biu-utils';
import { Command } from '@fe6/biu-deps';
import { Command } from '@fe6/biu-deps/compiled/commander';
import { ENUM_ENV } from '../types';
import biuExec from './core';

Expand Down
3 changes: 1 addition & 2 deletions packages/biu/src/config/core.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
/** @format */

import { existsSync } from '@fe6/biu-deps/compiled/fs-extra';
import fsExtra, { existsSync } from '@fe6/biu-deps/compiled/fs-extra';
import { join } from 'path';
import { fsExtra } from '@fe6/biu-deps';
import { TCmdOptions, TMode } from '../types';
import { DEFAULT_CONFIG_FILES } from '../contant';
import { TBiuConfigExport } from './types';
Expand Down
2 changes: 1 addition & 1 deletion packages/biu/src/config/options/html.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/** @format */

import { Options as WebpackHtmlPluginOption } from '@fe6/biu-deps-webpack/compiled/html-webpack-plugin';
import { fsExtra } from '@fe6/biu-deps';
import fsExtra from '@fe6/biu-deps/compiled/fs-extra';

import store from '../../shared/cache';

Expand Down
7 changes: 2 additions & 5 deletions packages/deps/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,11 @@
"name": "@fe6/biu-deps",
"version": "0.0.0",
"description": "@fe6/biu-deps",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"files": [
"compiled",
"dist"
"compiled"
],
"scripts": {
"build": "pnpm tsc",
"build": "echo biu-deps build finish",
"build:deps": "pnpm esno ../../scripts/bundle-deps.ts",
"generate:webpackPackages": "zx ./scripts/generate-webpack-packages.mjs",
"start": "pnpm build -- --watch",
Expand Down
11 changes: 0 additions & 11 deletions packages/deps/src/index.ts

This file was deleted.

8 changes: 0 additions & 8 deletions packages/deps/tsconfig.json

This file was deleted.

3 changes: 2 additions & 1 deletion packages/utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"./clog": "./dist/clog.js"
},
"dependencies": {
"@fe6/biu-deps": "workspace:*"
"chalk": "4.1.2",
"pirates": "4.0.5"
}
}
2 changes: 1 addition & 1 deletion packages/utils/src/logger.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/** @format */

import { chalk } from '@fe6/biu-deps';
import chalk from 'chalk';

import {
PKG_NAME,
Expand Down
2 changes: 1 addition & 1 deletion packages/utils/src/register.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

// Fork from https://github.com/umijs/umi-next/blob/master/packages/utils/src/register.ts
import { extname } from 'path';
import { addHook } from '@fe6/biu-deps/compiled/pirates';
import { addHook } from 'pirates';

const COMPILE_EXTS = ['.ts', '.tsx', '.js', '.jsx'];
const HOOK_EXTS = [...COMPILE_EXTS, '.mjs'];
Expand Down
130 changes: 68 additions & 62 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion scripts/release.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export async function goRelease(version: string) {
const confirmRunBeforeRelease = await prompts({
type: 'confirm',
name: 'yes',
message: `运行 pnpm build 命令了吗?`,
message: `运行 pnpm build:release 命令了吗?`,
});

if (!confirmRunBeforeRelease.yes) {
Expand Down
2 changes: 1 addition & 1 deletion scripts/turbo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ async function turbo(opts: {
const options = [
opts.cmd,
`--cache-dir=".turbo"`,
`--scope="${opts.scope}"`,
`--filter="${opts.scope}"`,
`--no-deps`,
`--include-dependencies`,
cacheCmd,
Expand Down

0 comments on commit 8dcbdfd

Please sign in to comment.