diff options
author | 2021-05-18 06:52:11 +0800 | |
---|---|---|
committer | 2021-05-17 17:52:11 -0500 | |
commit | cce8ac72e0b2cc169bca8017ee4e515b9e2bd552 (patch) | |
tree | 4d4ca39a13cd4ed5e775d6b85f13470f9d768e16 /scripts/cmd/copy.js | |
parent | d6cedac38e25fbec8425e020c16393fd70f0adf6 (diff) | |
download | astro-cce8ac72e0b2cc169bca8017ee4e515b9e2bd552.tar.gz astro-cce8ac72e0b2cc169bca8017ee4e515b9e2bd552.tar.zst astro-cce8ac72e0b2cc169bca8017ee4e515b9e2bd552.zip |
Make Astro compatible with Windows (#215)
Diffstat (limited to 'scripts/cmd/copy.js')
-rw-r--r-- | scripts/cmd/copy.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/cmd/copy.js b/scripts/cmd/copy.js index 03718ef02..da4ffd8dd 100644 --- a/scripts/cmd/copy.js +++ b/scripts/cmd/copy.js @@ -1,9 +1,11 @@ import { promises as fs, readFileSync } from 'fs'; -import { resolve, dirname, sep, join } from 'path'; +import { posix } from 'path'; import arg from 'arg'; import glob from 'globby'; import tar from 'tar'; +const { resolve, dirname, sep, join } = posix; + /** @type {import('arg').Spec} */ const spec = { '--tgz': Boolean, |