Skip to content

Commit

Permalink
feat: add library template libs/node-ts-esm-tsup
Browse files Browse the repository at this point in the history
  • Loading branch information
neoncitylights committed Feb 7, 2024
1 parent b71cb9a commit 799f81a
Show file tree
Hide file tree
Showing 3 changed files with 1,057 additions and 2 deletions.
32 changes: 32 additions & 0 deletions libs/node-ts-esm-tsup/package.json
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"
}
}
3 changes: 3 additions & 0 deletions libs/node-ts-esm-tsup/src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export function greet(name: string) {
return `Hello ${name}`
}
Loading

0 comments on commit 799f81a

Please sign in to comment.