Commit dd4027f
authored
Update build and packaging scripts (#872)
- 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.sh1 parent 95543d6 commit dd4027f
File tree
6 files changed
+648
-133
lines changed- assets
6 files changed
+648
-133
lines changedThis file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | 4 | | |
10 | 5 | | |
11 | 6 | | |
12 | 7 | | |
13 | | - | |
| 8 | + | |
14 | 9 | | |
15 | 10 | | |
16 | 11 | | |
| |||
0 commit comments