Skip to content

Commit

Permalink
fix: configure proper esm/cjs packaging (marchaos#68)
Browse files Browse the repository at this point in the history
* fix: configure proper packaging

* Add tsm and ts-node to example for testing

* Add missing ending newlines
  • Loading branch information
eratio08 authored Oct 31, 2022
1 parent 3ef4839 commit 1c8dd88
Show file tree
Hide file tree
Showing 11 changed files with 518 additions and 140 deletions.
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
lts/*
9 changes: 7 additions & 2 deletions example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,20 @@
"version": "1.0.0",
"description": "",
"main": "index.js",
"type": "module",
"scripts": {
"test": "tsc --noEmit && vitest run --coverage",
"build": "tsc"
"test": "pnpm type-check && vitest run --coverage",
"ts-node-dev": "ts-node --esm src/index.ts",
"tsm-dev": "tsm src/index.ts",
"type-check": "tsc --noEmit"
},
"keywords": [],
"author": "",
"license": "ISC",
"devDependencies": {
"@vitest/coverage-c8": "0.24.3",
"ts-node": "^10.9.1",
"tsm": "^2.2.2",
"typescript": "4.8.4",
"vitest": "0.24.3",
"vitest-mock-extended": "link:.."
Expand Down
Loading

0 comments on commit 1c8dd88

Please sign in to comment.