Open metaory opened 6 months ago
mkdist --version
node --version
npm --version
lsb_release -ds
uname -mr
create fresh
# create a tmp dir and navigate to cd $(mktemp -d) # initialize empty package.json npm init -y # set package "type" to "module # add "start" to package scripts npm pkg set type="module" scripts.start="node src/index.js" # create src/ mkdir src # write some dummy console echo 'console.log("xyzzy");' > src/index.js # build for esm npx mkdist --dist=dist --format=esm --ext=mjs # build for cjs npx mkdist --dist=dist --format=cjs --ext=cjs # check dist/ files tree dist dist └── index.cjs 1 directory, 1 file
every build is cleaning the dist/
dist/
every build is cleaning the dist/ I'm aware the cleanDist option was added f613c17 but no cli arg was ever added
cleanDist
cd $(mktemp -d); npm init -y; npm pkg set type="module" scripts.start="node src/index.js" mkdir src; echo 'console.log("xyzzy");' > src/index.js npx mkdist --dist=dist --format=esm --ext=mjs npx mkdist --dist=dist --format=cjs --ext=cjs tree dist dist └── index.cjs 1 directory, 1 file
I've just made a PR for this issue, will link here shortly UPDATE: #217
No response
added this fix PR: fix(cli): fixed cleanDist with addition of --no-clean option #217
Environment
mkdist --version
node --version
npm --version
lsb_release -ds
uname -mr
Reproduction
create fresh
every build is cleaning the
dist/
Describe the bug
every build is cleaning the
dist/
I'm aware thecleanDist
option was added f613c17 but no cli arg was ever addedAdditional context
I've just made a PR for this issue, will link here shortly UPDATE: #217
Logs
No response