pixijs / open-games

243 stars 40 forks source link

can't build game #22

Open 1le opened 8 months ago

1le commented 8 months ago

On Windows, running npm run build returns:

> bubbo-bubbo@1.0.0 clean
> rimraf dist/* public/* .assetpack/*

Error: Illegal characters in path.
    at pathArg (file:///D:/dev/open-games/bubbo-bubbo/node_modules/rimraf/dist/esm/path-arg.js:40:33)
    at file:///D:/dev/open-games/bubbo-bubbo/node_modules/rimraf/dist/esm/index.js:17:54
    at Array.map (<anonymous>)
    at file:///D:/dev/open-games/bubbo-bubbo/node_modules/rimraf/dist/esm/index.js:17:42
    at main (file:///D:/dev/open-games/bubbo-bubbo/node_modules/rimraf/dist/esm/bin.mjs:243:15)
    at file:///D:/dev/open-games/bubbo-bubbo/node_modules/rimraf/dist/esm/bin.mjs:251:5 {
  path: 'D:\\dev\\open-games\\bubbo-bubbo\\dist\\*',
  code: 'EINVAL'
}
ERROR: "clean" exited with 1.

tried with node 18 and 20, rifraf 5 and 4.2

1le commented 8 months ago

seems like an issue with rifraf and that it fails when testing D:\dev\open-games\bubbo-bubbo\dist\* against /[*|"<>?:]/

AlphaGamingArcade commented 8 months ago

I use del-cli https://www.npmjs.com/package/del-cli npm install --global del-cli and I replaced rimraf with del-cli "prestart": "run-s assets", "start": "vite --open", "assets": "assetpack", "prebuild": "run-s clean types assets", "build": "vite build", "types": "tsc", "prepreview": "run-s build", "preview": "vite preview --open", "clean": "del-cli public/assets/* dist/* .assetpack/*"