Skip to content

Commit

Permalink
[1.0.4] Improve build export and tsconfig (#7)
Browse files Browse the repository at this point in the history
* Update node and pnpm

* Improve build export and tsconfig

* Bump version
  • Loading branch information
nkeil authored Mar 26, 2024
1 parent a309916 commit bb1ba57
Show file tree
Hide file tree
Showing 6 changed files with 467 additions and 13 deletions.
37 changes: 29 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,31 +1,51 @@
{
"name": "prisma-extension-random",
"version": "0.1.3",
"version": "0.1.4",
"license": "MIT",
"author": "Nicolas Keil <nkeil.dev@gmail.com>",
"description": "Add some randomness to your favorite Prisma queries!",
"repository": {
"type": "git",
"url": "https://github.com/nkeil/prisma-extension-random"
},
"bugs": {
"url": "https://github.com/nkeil/prisma-extension-random/issues"
},
"homepage": "https://github.com/nkeil/prisma-extension-random#readme",
"keywords": [
"prisma",
"@prisma/client",
"extension",
"random"
],
"license": "MIT",
"engines": {
"node": "^18.0.0",
"node": "18 || 20",
"pnpm": ">=8.0.0"
},
"packageManager": "pnpm@8.9.0",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"packageManager": "pnpm@8.15.5",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.mjs",
"types": "dist/cjs/index.d.ts",
"files": [
"/dist"
"dist/**/*"
],
"exports": {
"./package.json": "./package.json",
".": {
"import": {
"default": "./dist/esm/index.mjs",
"types": "./dist/esm/index.d.ts"
},
"require": {
"default": "./dist/cjs/index.js",
"types": "./dist/cjs/index.d.ts"
}
}
},
"scripts": {
"build": "rimraf dist && tsc",
"build": "rimraf dist && pnpm build:esm && pnpm build:cjs",
"build:esm": "tsc -p ./tsconfig.esm.json && move-file dist/esm/index.js dist/esm/index.mjs",
"build:cjs": "tsc -p ./tsconfig.cjs.json",
"format": "prettier --write \"**/*.ts\" \"**/*.md\" --ignore-unknown --no-error-on-unmatched-pattern",
"type-check": "tsc --noEmit"
},
Expand All @@ -35,6 +55,7 @@
"devDependencies": {
"@prisma/client": "^5.4.2",
"@types/node": "^20.8.4",
"move-file-cli": "^3.0.0",
"prettier": "^3.0.3",
"prisma": "latest",
"rimraf": "^5.0.5",
Expand Down
Loading

0 comments on commit bb1ba57

Please sign in to comment.