Skip to content

Commit

Permalink
chore(zhi-cli): release zhi-log 1.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
terwer committed Apr 15, 2023
1 parent a8f9c8b commit 44d5741
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 25 deletions.
24 changes: 2 additions & 22 deletions apps/zhi-cli/esbuild.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -23,39 +23,19 @@
* questions.
*/

const path = require("path")
const { dtsPlugin } = require("esbuild-plugin-d.ts")
const { copy } = require("esbuild-plugin-copy")

const distDir = "./dist"

/**
* 构建配置
*/
module.exports = {
entryPoints: ["src/index.ts"],
outfile: path.join(distDir, "index.cjs"),
outfile: "dist/index.cjs",
bundle: true,
format: "cjs",
platform: "node",
banner: {
js: "#!/usr/bin/env node",
},
plugins: [
dtsPlugin(),

copy({
// this is equal to process.cwd(), which means we use cwd path as base path to resolve `to` path
// if not specified, this plugin uses ESBuild.build outdir/outfile options as base path.
resolveFrom: "cwd",
assets: [
// copy one file
{
from: ["./README.md"],
to: [path.join(distDir, "/README.md")],
},
],
watch: true,
}),
],
plugins: [dtsPlugin()],
}
1 change: 0 additions & 1 deletion apps/zhi-device-detection/esbuild.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
* questions.
*/

const path = require("path")
const { dtsPlugin } = require("esbuild-plugin-d.ts")

/**
Expand Down
1 change: 0 additions & 1 deletion apps/zhi-env/esbuild.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
* questions.
*/

const path = require("path")
const { dtsPlugin } = require("esbuild-plugin-d.ts")

/**
Expand Down
1 change: 0 additions & 1 deletion apps/zhi-log/esbuild.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
* questions.
*/

const path = require("path")
const { dtsPlugin } = require("esbuild-plugin-d.ts")

/**
Expand Down

1 comment on commit 44d5741

@vercel
Copy link

@vercel vercel bot commented on 44d5741 Apr 15, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

zhi – ./

zhi-terwergreen.vercel.app
zhi.vercel.app
zhi.terwer.space
zhi-git-main-terwergreen.vercel.app

Please sign in to comment.