GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Refactor directory creation logic in build script · alfep/free-code@5a5645d

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • scripts
    • build.ts
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎scripts/build.ts‎

Copy file name to clipboardExpand all lines: scripts/build.ts
+4-1Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,10 @@ const outfile = compile
119119
const buildTime = new Date().toISOString()
120120
const version = dev ? getDevVersion(pkg.version) : pkg.version
121121

122-
mkdirSync(dirname(outfile), { recursive: true })
122+
const outDir = dirname(outfile)
123+
if (outDir !== '.') {
124+
mkdirSync(outDir, { recursive: true })
125+
}
123126

124127
const externals = [
125128
'@ant/*',

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.