Skip to content

Commit

Permalink
feat: add typescript declarations and vitest
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnCampionJr committed Apr 3, 2023
1 parent bcabd87 commit 13e0345
Show file tree
Hide file tree
Showing 9 changed files with 620 additions and 5 deletions.
File renamed without changes.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ dist
cache
temp
pnpm-global
types
File renamed without changes.
36 changes: 34 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,45 @@
{
"name": "@jcamp/npm-package-repo-template",
"type": "module",
"version": "0.1.0",
"private": true,
"repository": "https://github.com/jcamp-code/npm-package-repo-template",
"description": "Starter repo for building NPM packages",
"author": "John Campion",
"license": "MIT",
"homepage": "https://github.com/jcamp-code/npm-package-repo-template",
"repository": {
"type": "git",
"url": "git+https://github.com/jcamp-code/npm-package-repo-template.git"
},
"bugs": {
"url": "https://github.com/jcamp-code/npm-package-repo-template/issues"
},
"keywords": [
"npm",
"package",
"starter",
"vitest"
],
"exports": {
".": {
"types": "./types/index.d.ts",
"default": "./dist/index.js"
}
},
"main": "index.js",
"types": "types/index.d.ts",
"files": [
"dist",
"types"
],
"scripts": {
"dev": "tsc -w",
"build": "tsc",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"format": "prettier --check --write .",
"postinstall": "npx simple-git-hooks",
"test": "vitest run",
"release": "pnpm changelogen --release --push && pnpm publish",
"release:minor": "pnpm changelogen --release --minor --push && pnpm publish",
"release:major": "pnpm changelogen --release --major --push && pnpm publish",
Expand All @@ -24,6 +54,8 @@
"lint-staged": "^13.2.0",
"prettier": "2.8.7",
"simple-git-hooks": "^2.8.1",
"typescript": "^5.0.3"
"typescript": "^5.0.3",
"vite": "^4.2.1",
"vitest": "^0.29.8"
}
}
Loading

0 comments on commit 13e0345

Please sign in to comment.