Skip to content

Commit 985ddae

Browse files
committed
commit init
1 parent 9484a53 commit 985ddae

File tree

30 files changed

+4349
-1499
lines changed

30 files changed

+4349
-1499
lines changed

.changeset/config.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
3+
"changelog": "@changesets/cli/changelog",
4+
"commit": true,
5+
"fixed": [],
6+
"linked": [],
7+
"access": "public",
8+
"baseBranch": "main",
9+
"updateInternalDependencies": "patch",
10+
"ignore": []
11+
}

.github/FUNDING.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# These are supported funding model platforms
2+
3+
github: [codeledge]

.github/workflows/npm-publish.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Changesets
2+
on:
3+
push:
4+
branches:
5+
- main
6+
env:
7+
CI: true
8+
PNPM_CACHE_FOLDER: .pnpm-store
9+
jobs:
10+
version:
11+
timeout-minutes: 15
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: checkout code repository
15+
uses: actions/checkout@v4
16+
with:
17+
fetch-depth: 0
18+
- name: setup node.js
19+
uses: actions/setup-node@v4
20+
with:
21+
node-version: 20
22+
- name: install pnpm
23+
run: npm i pnpm@latest -g
24+
- name: Setup npmrc
25+
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc
26+
- name: setup pnpm config
27+
run: pnpm config set store-dir $PNPM_CACHE_FOLDER
28+
- name: install dependencies
29+
run: pnpm install --no-frozen-lockfile
30+
- name: create and publish versions
31+
uses: changesets/action@v1
32+
with:
33+
version: pnpm ci:version
34+
commit: "chore: update versions"
35+
title: "chore: update versions"
36+
publish: pnpm ci:publish
37+
env:
38+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,11 @@
1010
"test": "turbo run test",
1111
"dev": "turbo run dev --parallel --no-cache",
1212
"build": "turbo run build",
13-
"kill": "pnpm run kill --filter apps/*"
13+
"kill": "pnpm run kill --filter apps/*",
14+
"publish-packages": "turbo run build lint && changeset version && changeset publish"
1415
},
1516
"devDependencies": {
16-
"turbo": "^1.13.0"
17+
"turbo": "^2.3.1"
1718
},
1819
"packageManager": "[email protected]+sha512.140036830124618d624a2187b50d04289d5a087f326c9edfc0ccd733d76c4f52c3a313d4fc148794a2a9d81553016004e6742e8cf850670268a7387fc220c903"
1920
}

packages/config/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "config",
33
"version": "0.0.0",
4+
"private": true,
45
"main": "index.js",
56
"license": "MIT",
67
"files": [
Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
11
module.exports = {
2-
extends: ["next", "turbo", "prettier", "eslint:recommended"],
2+
extends: [
3+
"next",
4+
"turbo",
5+
"prettier",
6+
"eslint:recommended",
7+
"alloy",
8+
"alloy/typescript",
9+
],
310
rules: {
411
"@next/next/no-html-link-for-pages": "off",
512
"no-unused-vars": "off",
13+
"no-unreachable": 1,
614
},
15+
plugins: ["sort-imports-es6-autofix", "import"],
716
};
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
dist
2+
node_modules
3+
.DS_Store
4+
*.pem
5+
npm-debug.log*
6+
yarn-debug.log*
7+
yarn-error.log*
8+
.pnpm-debug.log*
9+
.env
10+
.env.local
11+
.env.development.local
12+
.env.test.local
13+
.env.production.local
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Prisma Client Types Generator
2+
3+
Docs coming soon...
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
module.exports = {
2+
root: true,
3+
extends: ["eslint-config-custom"],
4+
};
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
{
2+
"name": "prisma-client-types-generator",
3+
"version": "0.0.1",
4+
"description": "Generate safe types for the browser and other uses",
5+
"main": "./dist/index.js",
6+
"module": "./dist/index.mjs",
7+
"types": "./dist/index.d.ts",
8+
"scripts": {
9+
"build": "tsup src/index.ts --format esm,cjs --dts --treeshake",
10+
"dev": "pnpm build --watch",
11+
"lint": "eslint src --fix",
12+
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist",
13+
"prepublish": "pnpm build",
14+
"test": "pnpm prisma generate --schema test/schemas/full.prisma",
15+
"release": "pnpm changeset && pnpm changeset version"
16+
},
17+
"files": [
18+
"/dist"
19+
],
20+
"keywords": [
21+
"prisma",
22+
"generator",
23+
"types",
24+
"safe",
25+
"client"
26+
],
27+
"repository": {
28+
"type": "git",
29+
"url": "https://github.com/codeledge/prisma-tools.git",
30+
"directory": "packages/prisma-client-types-generator"
31+
},
32+
"author": "Orlando Groppo <[email protected]>",
33+
"license": "MIT",
34+
"peerDependencies": {
35+
"@prisma/client": ">=5",
36+
"prisma": ">=5"
37+
},
38+
"dependencies": {
39+
"@prisma/generator-helper": "^5.22.0"
40+
},
41+
"devDependencies": {
42+
"@babel/core": "7.26.0",
43+
"@babel/preset-env": "^7.26.0",
44+
"@babel/preset-typescript": "^7.26.0",
45+
"@changesets/cli": "^2.27.10",
46+
"@prisma/client": "^5.22.0",
47+
"@types/jest": "^29.5.14",
48+
"@types/node": "^22.9.3",
49+
"deverything": "^1.10.1",
50+
"eslint-config-custom": "workspace:*",
51+
"jest": "^29.7.0",
52+
"prisma": "^5.22.0",
53+
"ts-node": "^10.9.2",
54+
"tsup": "^8.3.5",
55+
"tsx": "^4.19.2",
56+
"typescript": "^5.7.2"
57+
}
58+
}

0 commit comments

Comments
 (0)