Skip to content

Commit e773ab8

Browse files
committed
fix: do not remove output directory
1 parent ed02651 commit e773ab8

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

lib/commands/build.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@ export type BuildOptions = {
1313
}
1414

1515
export default async function build(options: BuildOptions): Promise<number> {
16-
if (options.output && fs.existsSync(path.dirname(options.output))) {
17-
fs.rmSync(path.dirname(options.output), { recursive: true })
18-
}
1916
fs.mkdirSync(directories.temp, { recursive: true })
2017
fs.writeFileSync(
2118
path.join(directories.temp, "_globals.scss"),

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
{
22
"name": "outlinecss",
33
"description": "A headless, responsive, and composable CSS framework designed for easy customization.",
4-
"version": "0.0.0",
4+
"version": "0.0.1",
55
"main": "./lib/index.js",
66
"types": "./lib/index.d.ts",
77
"bin": {
88
"outlinecss": "bin/run"
99
},
1010
"scripts": {
11-
"build": "npm run clean && tsc --build && npx outlinecss build --output ./dist/outline.css --entry null --tokens null",
12-
"build:library": "echo 0",
11+
"build": "npm run build:library && npm run build:website",
12+
"build:library": "npm run clean && tsc --build && npx outlinecss build --output ./dist/outline.css --entry null --tokens null",
1313
"build:website": "cp -r website website-dist",
1414
"clean": "tsc --build --clean",
1515
"preprepare": "ts-patch install",

0 commit comments

Comments
 (0)