Skip to content

Commit af0f301

Browse files
committed
Use dnt instead to generate npm package
1 parent 27c1aa0 commit af0f301

File tree

9 files changed

+40
-2134
lines changed

9 files changed

+40
-2134
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
/node_modules
1+
/npm

.node/.gitignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

.node/node.t.ts

Lines changed: 0 additions & 4 deletions
This file was deleted.

.node/tsconfig.json

Lines changed: 0 additions & 15 deletions
This file was deleted.

Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
TARGETS := $$(find . \( -name '*.ts' -or -name '*.md' \) -not -path './.node/*' -not -path './node_modules/*')
1+
TARGETS := $$(find . \( -name '*.ts' -or -name '*.md' \) -not -path './npm/*')
2+
VERSION := $$(git describe --tags --always --dirty)
23

34
.DEFAULT_GOAL := help
45

@@ -26,4 +27,7 @@ deps: FORCE ## Update dependencies
2627
@deno run -A https://deno.land/x/udd@0.7.2/main.ts ${TARGETS}
2728
@make fmt
2829

30+
build-npm: FORCE ## Build npm package
31+
@deno run -A scripts/build_npm.ts ${VERSION}
32+
2933
FORCE:

README.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -229,14 +229,6 @@ Run tests like:
229229
make test
230230
```
231231

232-
Publish new version with:
233-
234-
```
235-
npm version {major/minor/patch}
236-
npm publish
237-
git push --tags
238-
```
239-
240232
## License
241233

242234
The code follows MIT license written in [LICENSE](./LICENSE). Contributors need

0 commit comments

Comments
 (0)