Skip to content

Commit

Permalink
fix: fix "readdirp" build error
Browse files Browse the repository at this point in the history
  • Loading branch information
baiwusanyu-c committed Sep 10, 2022
1 parent e1e70c1 commit 422ac1c
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 184 deletions.
2 changes: 1 addition & 1 deletion build-script/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import json from '@rollup/plugin-json'
import copy from 'rollup-plugin-copy'
const config = [
{
external: [id => /.test.js/.test(id), 'ora', 'fs-extra', 'chalk', 'commander', 'prompts'],
external: [id => /.test.js/.test(id), 'ora', 'fs-extra', 'chalk', 'commander', 'prompts','readdirp'],
input: './core/index.ts', // 必须,入口文件
output: [
{
Expand Down
2 changes: 1 addition & 1 deletion core/rumtime/runtime-lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {BUILDLIBTYPE, ILibOption, RUNENVTYPE, templatePath} from "../../../utils
import ora from 'ora'
import fs from 'fs-extra'
import chalk from 'chalk'
import readdirp from 'readdirp'
import readdirp from 'readdirp';
export const runRuntimeLib = async (option: ILibOption) => {
console.log(option)
const {
Expand Down
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@
"commander": "^9.0.0",
"fs-extra": "^10.0.1",
"ora": "^6.1.2",
"prompts": "^2.4.2"
"prompts": "^2.4.2",
"readdirp": "^3.6.0"
},
"devDependencies": {
"@baiwusanyu/eslint-config": "^1.0.6",
Expand All @@ -65,14 +66,12 @@
"eslint": "^8.18.0",
"esno": "^0.16.3",
"pnpm": "^6.3.0",
"readdirp": "^3.6.0",
"rollup": "^2.73.0",
"rollup-plugin-cleanup": "^3.2.1",
"rollup-plugin-copy": "^3.4.0",
"rollup-plugin-terser": "^7.0.2",
"rollup-plugin-typescript2": "^0.33.0",
"tslib": "^2.3.1",
"turbo": "^1.2.16",
"typescript": "4.7.4",
"unbuild": "^0.7.4",
"vite": "^2.9.12",
Expand Down
Loading

0 comments on commit 422ac1c

Please sign in to comment.