-
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.
feat: add library template
libs/node-ts-esm-tsup
- Loading branch information
1 parent
b71cb9a
commit 799f81a
Showing
3 changed files
with
1,057 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"private": true, | ||
"version": "1.0.0", | ||
"name": "node-ts-esm-tsup", | ||
"description": "Node, TypeScript (ESM), tsup", | ||
"keywords": [ | ||
"node", | ||
"typescript", | ||
"esm", | ||
"tsup" | ||
], | ||
"type": "module", | ||
"types": "dist/index.d.ts", | ||
"exports": { | ||
".": { | ||
"types": "./dist/index.d.ts", | ||
"require": "./dist/index.js" | ||
} | ||
}, | ||
"files": [ | ||
"dist" | ||
], | ||
"scripts": { | ||
"build": "tsup src/index.ts --format esm --dts --minify", | ||
"prepublint": "npm run build", | ||
"publint": "publint ." | ||
}, | ||
"devDependencies": { | ||
"tsup": "^8.0.1", | ||
"typescript": "^5.3.3" | ||
} | ||
} |
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,3 @@ | ||
export function greet(name: string) { | ||
return `Hello ${name}` | ||
} |
Oops, something went wrong.