Skip to content

Commit

Permalink
refactor: split package exports (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
userquin authored Jun 11, 2024
1 parent 77a8e6c commit 4ba8197
Showing 1 changed file with 38 additions and 31 deletions.
69 changes: 38 additions & 31 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,37 +1,53 @@
{
"name": "tinyspy",
"version": "3.0.0",
"type": "module",
"version": "3.0.0",
"packageManager": "[email protected]",
"scripts": {
"dev": "tsup --watch",
"build": "tsup",
"prepare": "husky",
"publish-test": "clean-publish --without-publish",
"release": "bumpp package.json --commit --push --tag && tsup && clean-publish",
"test": "vitest --no-isolate"
"description": "A minimal fork of nanospy, with more features",
"license": "MIT",
"homepage": "https://github.com/tinylibs/tinyspy#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/tinylibs/tinyspy.git"
},
"bugs": {
"url": "https://github.com/tinylibs/tinyspy/issues"
},
"keywords": [
"spy",
"mock",
"typescript",
"method"
],
"exports": {
".": {
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
},
"require": {
"types": "./dist/index.d.cts",
"default": "./dist/index.cjs"
}
}
},
"main": "./dist/index.cjs",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js",
"require": "./dist/index.cjs",
"default": "./dist/index.cjs"
},
"files": [
"dist/**"
"dist"
],
"repository": {
"type": "git",
"url": "git+https://github.com/tinylibs/tinyspy.git"
"engines": {
"node": ">=14.0.0"
},
"license": "MIT",
"bugs": {
"url": "https://github.com/tinylibs/tinyspy/issues"
"scripts": {
"dev": "tsup --watch",
"build": "tsup",
"prepare": "husky",
"publish-test": "clean-publish --without-publish",
"release": "bumpp package.json --commit --push --tag && tsup && clean-publish",
"test": "vitest --no-isolate"
},
"homepage": "https://github.com/tinylibs/tinyspy#readme",
"devDependencies": {
"@size-limit/preset-small-lib": "^11.1.4",
"@size-limit/time": "^11.1.4",
Expand All @@ -48,14 +64,5 @@
"typescript": "^5.4.5",
"vite": "^5.2.1",
"vitest": "^1.6.0"
},
"keywords": [
"spy",
"mock",
"typescript",
"method"
],
"engines": {
"node": ">=14.0.0"
}
}

0 comments on commit 4ba8197

Please sign in to comment.