-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Build multiple modules instead of one index.js (#7)
* chore: Build multiple modules instead of one index.js - refactor: Move build command to build.sh note: this will allow multiple module build entry files - feat: Add indexify.js script, this will generate moduleName.js files note: this is because tsdx.config.js override do not generate js files - feat: Add tsdx.config.js to generate multiple esm, cjs modules - refactor: Move index file out from module folders refer jaredpalmer/tsdx#175 (comment) Important note: Base on the comment tsdx do not support multiple entry * chore: Update size-limit checker for all modules * doc: Update CHANGELOG.md and README.md Co-authored-by: Wilson Lim <[email protected]>
- Loading branch information
1 parent
65e46f0
commit 32b7ed0
Showing
14 changed files
with
142 additions
and
18,552 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,16 @@ npm install utilzed | |
|
||
```shell | ||
# set specific version | ||
npm install [email protected] | ||
npm install [email protected] | ||
``` | ||
|
||
### Important for pure ES6 | ||
|
||
```javascript | ||
// If uses require function you will need to use .default | ||
// For import in typescript or flow, this is not required | ||
|
||
const utilzed = require('utilzed').default; | ||
``` | ||
|
||
## Library Functions: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
echo "build multiple modules" | ||
tsdx build \ | ||
--entry=src/index.ts \ | ||
--entry=src/promise.ts \ | ||
--entry=src/validation.ts \ | ||
--entry=src/timeconvert.ts \ | ||
&& node ./scripts/flowgen.js \ | ||
&& node ./scripts/indexify.js \ |
Oops, something went wrong.