|
1 | 1 | {
|
2 |
| - "name": "root", |
3 |
| - "private": true, |
4 |
| - "workspaces": [ |
5 |
| - "package", |
6 |
| - "example-app" |
| 2 | + "name": "create-typed-sdk", |
| 3 | + "version": "0.0.3", |
| 4 | + "description": "A library for quickly created SDKs for your Node.js Typescript backends. No build step, no risk of injecting your server code into your frontend, just sweet, sweet DX goodness.", |
| 5 | + "main": "./dist/cjs/reactSDK.js", |
| 6 | + "module": "./dist/esm/reactSDK.js", |
| 7 | + "types": "./dist/esm/reactSDK.d.ts", |
| 8 | + "repository": { |
| 9 | + "type": "git", |
| 10 | + "url": "https://github.com/scottmas/create-typed-sdk.git" |
| 11 | + }, |
| 12 | + "homepage": "https://github.com/scottmas/create-typed-sdk", |
| 13 | + "author": "scottmas", |
| 14 | + "license": "ISC", |
| 15 | + "files": [ |
| 16 | + "src", |
| 17 | + "dist", |
| 18 | + "core" |
7 | 19 | ],
|
8 |
| - "description": "Monorepo root package.json. Only used because peer dependencies DO NOT play nicely with linking, which we use in the example app.", |
9 | 20 | "scripts": {
|
10 |
| - "build": "yarn --cwd ./package build", |
11 | 21 | "dev": "run-p dev:*",
|
12 |
| - "dev:package": "yarn --cwd ./package dev", |
13 |
| - "dev:example": "yarn --cwd ./example-app dev", |
14 |
| - "publish-to-npm": "(cd package && np patch)" |
| 22 | + "dev:lib": "yarn build && run-p -l 'build:* --watch'", |
| 23 | + "dev:example": "cd example-app && yarn dev", |
| 24 | + "postinstall": "cd example-app && yarn", |
| 25 | + "test": "echo no-tests", |
| 26 | + "build": "run-p build:*", |
| 27 | + "build:cjs": "node build.mjs --format cjs --outdir dist/cjs --platform node", |
| 28 | + "build:esm": "node build.mjs --format esm --outdir dist/esm --platform browser", |
| 29 | + "build:cjs-ts": "tsc --outDir dist/cjs", |
| 30 | + "build:esm-ts": "tsc --outDir dist/esm" |
| 31 | + }, |
| 32 | + "devDependencies": { |
| 33 | + "@typescript-eslint/eslint-plugin": "5.4.0", |
| 34 | + "@typescript-eslint/parser": "5.4.0", |
| 35 | + "esbuild": "0.13.15", |
| 36 | + "eslint": "8.3.0", |
| 37 | + "eslint-plugin-react-hooks": "4.3.0", |
| 38 | + "np": "7.6.0", |
| 39 | + "npm-run-all": "4.1.5", |
| 40 | + "react-query": "3.34.7", |
| 41 | + "typescript": "4.5.2", |
| 42 | + "yargs-parser": "21.0.0" |
15 | 43 | },
|
16 | 44 | "dependencies": {
|
17 |
| - "np": "^7.6.0", |
18 |
| - "npm-run-all": "^4.1.5" |
| 45 | + "axios": "0.24.0", |
| 46 | + "fast-safe-stringify": "2.1.1" |
| 47 | + }, |
| 48 | + "peerDependencies": { |
| 49 | + "react-query": "*" |
| 50 | + }, |
| 51 | + "peerDependenciesMeta": { |
| 52 | + "react-query": { |
| 53 | + "optional": true |
| 54 | + } |
19 | 55 | }
|
20 | 56 | }
|
0 commit comments