Skip to content

Commit

Permalink
fix: use copyFileSync instead of cp command
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonghakseo committed Jul 19, 2024
1 parent 3ef2d9a commit 14557ef
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 3 additions & 0 deletions packages/ui/build.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import * as esbuild from "esbuild"
import * as fs from "fs";
import { resolve } from "node:path";

/**
* @type { import("esbuild").BuildOptions }
Expand All @@ -13,3 +15,4 @@ const buildOptions = {
}

await esbuild.build(buildOptions);
fs.copyFileSync(resolve("lib", "global.css"),resolve("dist", "global.css"))
3 changes: 1 addition & 2 deletions packages/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@
"main": "./dist/index.js",
"scripts": {
"clean": "rimraf ./dist && rimraf .turbo",
"cp:css": "cp ./lib/global.css ./dist/global.css",
"ready": "node build.mjs && pnpm cp:css",
"ready": "node build.mjs",
"lint": "eslint . --ext .ts,.tsx",
"lint:fix": "pnpm lint --fix",
"prettier": "prettier . --write",
Expand Down

0 comments on commit 14557ef

Please sign in to comment.