|
28 | 28 | "node": ">=20.0.0" |
29 | 29 | }, |
30 | 30 | "type": "module", |
31 | | - "main": "dist/cjs/index.js", |
32 | | - "module": "dist/esm/index.js", |
| 31 | + "main": "dist/index.js", |
| 32 | + "module": "dist/index.js", |
33 | 33 | "typesVersions": { |
34 | 34 | "<5.4": { |
35 | 35 | "*": [ |
|
39 | 39 | }, |
40 | 40 | "files": [ |
41 | 41 | "dist", |
42 | | - "helpers", |
43 | | - "migration.d.ts", |
44 | | - "migration.js", |
45 | | - "outdated-typescript.d.ts", |
46 | | - "readonly.d.ts", |
47 | | - "readonly.js" |
| 42 | + "outdated-typescript.d.ts" |
48 | 43 | ], |
49 | 44 | "exports": { |
50 | 45 | ".": { |
51 | 46 | "types@<5.4": "./outdated-typescript.d.ts", |
52 | | - "import": "./dist/esm/index.js", |
53 | | - "require": "./dist/cjs/index.js", |
54 | | - "default": "./dist/cjs/index.js" |
| 47 | + "default": "./dist/index.js" |
55 | 48 | }, |
56 | | - "./helpers/postgres": { |
57 | | - "import": "./dist/esm/helpers/postgres.js", |
58 | | - "require": "./dist/cjs/helpers/postgres.js", |
59 | | - "default": "./dist/cjs/helpers/postgres.js" |
60 | | - }, |
61 | | - "./helpers/mysql": { |
62 | | - "import": "./dist/esm/helpers/mysql.js", |
63 | | - "require": "./dist/cjs/helpers/mysql.js", |
64 | | - "default": "./dist/cjs/helpers/mysql.js" |
65 | | - }, |
66 | | - "./helpers/mssql": { |
67 | | - "import": "./dist/esm/helpers/mssql.js", |
68 | | - "require": "./dist/cjs/helpers/mssql.js", |
69 | | - "default": "./dist/cjs/helpers/mssql.js" |
70 | | - }, |
71 | | - "./helpers/sqlite": { |
72 | | - "import": "./dist/esm/helpers/sqlite.js", |
73 | | - "require": "./dist/cjs/helpers/sqlite.js", |
74 | | - "default": "./dist/cjs/helpers/sqlite.js" |
75 | | - }, |
76 | | - "./migration": { |
77 | | - "import": "./dist/esm/migration/index.js", |
78 | | - "require": "./dist/cjs/migration/index.js", |
79 | | - "default": "./dist/cjs/migration/index.js" |
80 | | - }, |
81 | | - "./readonly": { |
82 | | - "import": "./dist/esm/readonly/index.js", |
83 | | - "require": "./dist/cjs/readonly/index.js", |
84 | | - "default": "./dist/cjs/readonly/index.js" |
85 | | - } |
| 49 | + "./helpers/mssql": "./dist/helpers/mssql.js", |
| 50 | + "./helpers/mysql": "./dist/helpers/mysql.js", |
| 51 | + "./helpers/postgres": "./dist/helpers/postgres.js", |
| 52 | + "./helpers/sqlite": "./dist/helpers/sqlite.js", |
| 53 | + "./migration": "./dist/migration/index.js", |
| 54 | + "./readonly": "./dist/readonly/index.js" |
86 | 55 | }, |
87 | 56 | "sideEffects": false, |
88 | 57 | "scripts": { |
89 | | - "clean": "rm -rf dist & rm -rf test/node/dist & rm -rf test/browser/bundle.js & rm -rf helpers", |
| 58 | + "clean": "rm -rf dist & rm -rf test/node/dist & rm -rf test/browser/bundle.js", |
90 | 59 | "bench:ts": "pnpm build && node --experimental-strip-types ./test/ts-benchmarks/index.ts", |
91 | 60 | "test": "pnpm build && pnpm test:node:build && pnpm test:node:run && pnpm test:typings && pnpm test:esmimports && pnpm test:exports", |
92 | 61 | "test:node:build": "tsc -p test/node", |
|
99 | 68 | "test:deno": "deno run --allow-env --allow-read --allow-net --no-lock test/deno/local.test.ts && deno run --allow-env --allow-read --allow-net --no-lock test/deno/cdn.test.ts", |
100 | 69 | "test:typings": "tsd test/typings", |
101 | 70 | "test:esmimports": "node scripts/check-esm-imports.cjs", |
102 | | - "test:esbuild": "esbuild --bundle --platform=node --external:pg-native dist/esm/index.js --outfile=/dev/null", |
| 71 | + "test:esbuild": "esbuild --bundle --platform=node --external:pg-native dist/index.js --outfile=/dev/null", |
103 | 72 | "test:exports": "attw --pack . && node scripts/check-exports.cjs", |
104 | 73 | "test:jsdocs": "deno check --doc-only --no-lock --unstable-sloppy-imports --config=\"deno.check.json\" ./src", |
105 | 74 | "test:outdatedts": "pnpm build && cd test/outdated-ts && pnpm i && pnpm test", |
106 | 75 | "lint:deno": "deno lint --config=\"deno.lint.json\" ./src", |
107 | 76 | "prettier": "prettier --write 'src/**/*.ts' 'test/**/*.ts'", |
108 | | - "build": "pnpm clean && (pnpm build:esm & pnpm build:cjs) && pnpm script:module-fixup && pnpm script:copy-interface-doc", |
109 | | - "build:esm": "tsc -p tsconfig.json && pnpm script:add-deno-type-references", |
110 | | - "build:cjs": "tsc -p tsconfig-cjs.json", |
111 | | - "script:module-fixup": "node scripts/module-fixup.cjs", |
| 77 | + "build": "pnpm clean && tsc && pnpm script:add-deno-type-references && pnpm script:copy-interface-doc", |
112 | 78 | "script:copy-interface-doc": "node scripts/copy-interface-documentation.cjs", |
113 | 79 | "script:add-deno-type-references": "node scripts/add-deno-type-references.cjs", |
114 | 80 | "script:align-versions": "node --experimental-strip-types scripts/align-versions.mts", |
|
0 commit comments