build fails #2586
Answered
by
dai-shi
mhsattarian
asked this question in
Bug report
build fails
#2586
|
I can't build the project on my local computer. any idea why this is happening? where is the > jotai@2.8.2 postbuild
> pnpm patch-d-ts && pnpm copy && pnpm patch-ts3.8 && pnpm patch-old-ts && pnpm patch-esm-ts && pnpm patch-readme
> jotai@2.8.2 patch-d-ts /Users/mh_sattarian/Documents/projects/github/jotai
> node -e "var {entries}=require('./rollup.config.js');require('shelljs').find('dist/**/*.d.ts').forEach(f=>{entries.forEach(({find,replacement})=>require('shelljs').sed('-i',new RegExp(' from \''+find.source.slice(0,-1)+'\';$'),' from \''+replacement+'\';',f));require('shelljs').sed('-i',/ from '(\.[^']+)\.ts';$/,' from \'\$1\';',f)})"
> jotai@2.8.2 copy /Users/mh_sattarian/Documents/projects/github/jotai
> shx cp -r dist/src/* dist/esm && shx cp -r dist/src/* dist && shx rm -rf dist/src && shx rm -rf dist/{src,tests} && downlevel-dts dist dist/ts3.8 --to=3.8 && shx cp package.json readme.md LICENSE dist && json -I -f dist/package.json -e "this.private=false; this.devDependencies=undefined; this.optionalDependencies=undefined; this.scripts=undefined; this.prettier=undefined;"
cp: no such file or directory: dist/src/*
ELIFECYCLE Command failed with exit code 1. |
Answered by
dai-shi
May 29, 2024
Replies: 1 comment 1 reply
|
Did you run |
1 reply
Answer selected by
mhsattarian
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Did you run
npm run build?pnpm run buildshould work.That said, I experienced the same, and felt we should fix it.