Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update build and packaging scripts #872

Merged
merged 1 commit into from
Nov 12, 2023
Merged

Conversation

mdmower
Copy link
Contributor

@mdmower mdmower commented Oct 28, 2023

  • Add compile:release npm script to build the package without source maps. Decreases unpacked size from ~350KB to ~250KB.
  • Remove :windows variants of npm scripts
    • Add rimraf to handle cross-platform dir removal
    • Set "ts-node": { "files": true } in tsconfig.json so that it's not necessary to set env var TS_NODE_FILES
  • Remove unused assets/README.md (it does not appear to have been used for many years according to npmjs.com)
  • Use includes "files": [...] property in package.json to indicate dist/ should be included in the built npm package rather than maintaining a list of everything that should be excluded in .npmignore (which has been deleted)
  • Incorporate above mentioned updates into build.sh

- Add compile:release npm script to build the package without source
  maps. Decreases unpacked size from ~350KB to ~250KB.
- Remove :windows variants of npm scripts
  - Add rimraf to handle cross-platform dir removal
  - Set "ts-node": { "files": true } in tsconfig.json so that it's not
    necessary to set env var TS_NODE_FILES
- Remove unused assets/README.md (it does not appear to have been used
  for many years according to npmjs.com)
- Use includes "files": [...] property in package.json to indicate dist/
  should be included in the built npm package rather than maintaining a
  list of everything that should be excluded in .npmignore (which has
  been deleted)
- Incorporate above mentioned updates into build.sh
@cdimascio cdimascio merged commit dd4027f into cdimascio:master Nov 12, 2023
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants