kopia lustrzana https://github.com/transitive-bullshit/chatgpt-api
old-agentic-v1^2
rodzic
9e68e1a1ee
commit
56ea243d3d
25
package.json
25
package.json
|
@ -6,21 +6,32 @@
|
||||||
"repository": "transitive-bullshit/agentic",
|
"repository": "transitive-bullshit/agentic",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
|
"source": "./src/index.ts",
|
||||||
|
"types": "./build/index.d.ts",
|
||||||
|
"exports": {
|
||||||
|
".": {
|
||||||
|
"import": "./build/index.js",
|
||||||
|
"require": "./build/index.cjs",
|
||||||
|
"types": "./build/index.d.ts",
|
||||||
|
"default": "./build/index.js"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"files": [
|
||||||
|
"build"
|
||||||
|
],
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=14"
|
"node": ">=14"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "run-s build:*",
|
"build": "tsup",
|
||||||
"build:tsup": "lerna run build --no-private",
|
"dev": "tsup --watch",
|
||||||
"build:tsc": "tsc --build",
|
"clean": "del build",
|
||||||
"deploy": "lerna run deploy",
|
|
||||||
"clean": "del packages/*/build",
|
|
||||||
"prebuild": "run-s clean",
|
"prebuild": "run-s clean",
|
||||||
|
"predev": "run-s clean",
|
||||||
|
"pretest": "run-s build",
|
||||||
"prepare": "husky install",
|
"prepare": "husky install",
|
||||||
"pre-commit": "lint-staged",
|
"pre-commit": "lint-staged",
|
||||||
"pretest": "run-s build",
|
|
||||||
"test": "run-p test:*",
|
"test": "run-p test:*",
|
||||||
"test:unit": "ava",
|
|
||||||
"test:prettier": "prettier '**/*.{js,jsx,ts,tsx}' --check"
|
"test:prettier": "prettier '**/*.{js,jsx,ts,tsx}' --check"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
|
@ -0,0 +1,20 @@
|
||||||
|
{
|
||||||
|
"compilerOptions": {
|
||||||
|
"target": "es2020",
|
||||||
|
"lib": ["esnext"],
|
||||||
|
"allowJs": true,
|
||||||
|
"skipLibCheck": true,
|
||||||
|
"strict": false,
|
||||||
|
"forceConsistentCasingInFileNames": true,
|
||||||
|
"esModuleInterop": true,
|
||||||
|
"module": "esnext",
|
||||||
|
"moduleResolution": "node",
|
||||||
|
"resolveJsonModule": true,
|
||||||
|
"isolatedModules": true,
|
||||||
|
"baseUrl": ".",
|
||||||
|
"outDir": "build",
|
||||||
|
"noEmit": true
|
||||||
|
},
|
||||||
|
"exclude": ["node_modules", "build"],
|
||||||
|
"include": ["**/*.ts"]
|
||||||
|
}
|
|
@ -0,0 +1,16 @@
|
||||||
|
import { defineConfig } from 'tsup'
|
||||||
|
|
||||||
|
export default defineConfig([
|
||||||
|
{
|
||||||
|
entry: ['src/index.ts'],
|
||||||
|
outDir: 'build',
|
||||||
|
target: 'node16',
|
||||||
|
platform: 'node',
|
||||||
|
format: ['esm', 'cjs'],
|
||||||
|
splitting: false,
|
||||||
|
sourcemap: true,
|
||||||
|
minify: false,
|
||||||
|
shims: true,
|
||||||
|
dts: true
|
||||||
|
}
|
||||||
|
])
|
Ładowanie…
Reference in New Issue