Skip to content

Commit

Permalink
feat: added unbuild
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnCampionJr committed Apr 4, 2023
1 parent 5e1410b commit e290883
Show file tree
Hide file tree
Showing 4 changed files with 593 additions and 22 deletions.
36 changes: 19 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
{
"name": "@jcamp/npm-package-repo-template",
"name": "@jcamp/starter-typescript",
"type": "module",
"version": "0.1.0",
"private": true,
"description": "Starter repo for building NPM packages",
"description": "Starter repo for Typescript projects and NPM packages",
"author": "John Campion",
"license": "MIT",
"homepage": "https://github.com/jcamp-code/npm-package-repo-template",
"homepage": "https://github.com/jcamp-code/starter-typescript",
"repository": {
"type": "git",
"url": "git+https://github.com/jcamp-code/npm-package-repo-template.git"
"url": "git+https://github.com/jcamp-code/starter-typescript.git"
},
"bugs": {
"url": "https://github.com/jcamp-code/npm-package-repo-template/issues"
"url": "https://github.com/jcamp-code/starter-typescript/issues"
},
"keywords": [
"npm",
Expand All @@ -22,28 +22,29 @@
],
"exports": {
".": {
"types": "./types/index.d.ts",
"default": "./dist/index.js"
"require": "./dist/index.cjs",
"import": "./dist/index.mjs"
}
},
"main": "index.js",
"types": "types/index.d.ts",
"main": "./dist/index.cjs",
"types": "./dist/index.d.ts",
"files": [
"dist",
"types"
"dist"
],
"scripts": {
"dev": "tsc -w",
"build": "tsc",
"dev:tsc": "tsc -w",
"build:tsc": "tsc",
"dev": "unbuild --stub",
"build": "unbuild",
"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",
"release:patch": "pnpm changelogen --release --patch --push && pnpm publish"
"release": "changelogen --release --push && pnpm publish",
"release:minor": "changelogen --release --minor --push && pnpm publish",
"release:major": "changelogen --release --major --push && pnpm publish",
"release:patch": "changelogen --release --patch --push && pnpm publish"
},
"devDependencies": {
"@commitlint/cli": "^17.5.1",
Expand All @@ -55,6 +56,7 @@
"prettier": "2.8.7",
"simple-git-hooks": "^2.8.1",
"typescript": "^5.0.3",
"unbuild": "^1.2.0",
"vite": "^4.2.1",
"vitest": "^0.29.8"
}
Expand Down
Loading

0 comments on commit e290883

Please sign in to comment.