typescript-lib-starter
typescript-lib-starter copied to clipboard
When I first pack, there will be a file loss. If I copy the CHANGELOG.md file back, it's normal.
Bug report
- {package-name} version: x.x.x ()
Current behaviour
When I first pack, there will be a file loss. If I copy the CHANGELOG.md file back, it's normal.
npm run build
> [email protected] prebuild /Volumes/MAC1/file/test/npm/typescript-lib-starter
> npm run cleanup && npm run verify
> [email protected] cleanup /Volumes/MAC1/file/test/npm/typescript-lib-starter
> shx rm -rf dist
> [email protected] verify /Volumes/MAC1/file/test/npm/typescript-lib-starter
> npm run validate-js && npm run style && npm run test:ci
> [email protected] validate-js /Volumes/MAC1/file/test/npm/typescript-lib-starter
> tsc -p ./config && tsc -p ./scripts
> [email protected] style /Volumes/MAC1/file/test/npm/typescript-lib-starter
> npm run format -- --list-different && npm run lint
> [email protected] format /Volumes/MAC1/file/test/npm/typescript-lib-starter
> prettier "**/*.{ts,tsx,js,jsx,css,scss,sass,less,md}" "--list-different"
> [email protected] lint /Volumes/MAC1/file/test/npm/typescript-lib-starter
> tslint --project tsconfig.json --format codeFrame
> [email protected] test:ci /Volumes/MAC1/file/test/npm/typescript-lib-starter
> npm t -- --ci
> [email protected] test /Volumes/MAC1/file/test/npm/typescript-lib-starter
> jest -c ./config/jest.config.js "--ci"
PASS src/__tests__/greeter.spec.ts
Greeter
✓ should greet (3ms)
✓ should greet and print deprecation message if in dev mode (9ms)
console.warn node_modules/jest-mock/build/index.js:711
this method is deprecated, use #greet instead
Test Suites: 1 passed, 1 total
Tests: 2 passed, 2 total
Snapshots: 0 total
Time: 4.048s
Ran all test suites.
> [email protected] build /Volumes/MAC1/file/test/npm/typescript-lib-starter
> tsc && tsc --target es2018 --outDir dist/esm2015 && rollup -c config/rollup.config.js && rollup -c config/rollup.config.js --environment NODE_ENV:production
/Volumes/MAC1/file/test/npm/typescript-lib-starter/dist/esm5/index.js → dist/bundles/index.umd.js...
created dist/bundles/index.umd.js in 28ms
/Volumes/MAC1/file/test/npm/typescript-lib-starter/dist/esm2015/index.js → dist/bundles/index.esm.js...
created dist/bundles/index.esm.js in 8ms
/Volumes/MAC1/file/test/npm/typescript-lib-starter/dist/esm5/index.js → dist/bundles/index.umd.min.js...
created dist/bundles/index.umd.min.js in 259ms
/Volumes/MAC1/file/test/npm/typescript-lib-starter/dist/esm2015/index.js → dist/bundles/index.esm.min.js...
created dist/bundles/index.esm.min.js in 182ms
> [email protected] postbuild /Volumes/MAC1/file/test/npm/typescript-lib-starter
> node scripts/copy && npm run size
fs.js:119
throw err;
^
Error: ENOENT: no such file or directory, copyfile '/Volumes/MAC1/file/test/npm/typescript-lib-starter/CHANGELOG.md' -> '/Volumes/MAC1/file/test/npm/typescript-lib-starter/dist/CHANGELOG.md'
at copyFileSync (fs.js:1743:3)
at source.forEach (/Volumes/MAC1/file/test/npm/typescript-lib-starter/scripts/copy.js:43:7)
at Array.forEach (<anonymous>)
at cp (/Volumes/MAC1/file/test/npm/typescript-lib-starter/scripts/copy.js:42:12)
at main (/Volumes/MAC1/file/test/npm/typescript-lib-starter/scripts/copy.js:22:3)
at Object.<anonymous> (/Volumes/MAC1/file/test/npm/typescript-lib-starter/scripts/copy.js:11:1)
at Module._compile (internal/modules/cjs/loader.js:738:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:749:10)
at Module.load (internal/modules/cjs/loader.js:630:32)
at tryModuleLoad (internal/modules/cjs/loader.js:570:12)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] postbuild: `node scripts/copy && npm run size`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] postbuild script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/wsx/.npm/_logs/2019-03-04T01_33_39_760Z-debug.log
Expected behaviour
Please explain how you'd expect it to behave.
Feature request
Use case(s)
Explain the rationale for this feature.
Hey! thanks for the report.
What version are you using ?
https://github.com/Hotell/typescript-lib-starter/releases
Hey! thanks for the report.
What version are you using ?
https://github.com/Hotell/typescript-lib-starter/releases
is v5.3.0