A discord bot for teal.fm
discord tealfm music

update exports/imports fields in common package.jsons

besaid.zone ec05c509 670c0243

verified
Changed files
+21 -25
apps
packages
+1 -1
.oxfmtrc.json
··· 1 1 { 2 2 "$schema": "./node_modules/oxfmt/configuration_schema.json", 3 - "ignorePatterns": ["*.json", "pnpm-lock.yaml", "**/migrations/**.ts"], 3 + "ignorePatterns": ["pnpm-lock.yaml", "**/migrations/**.ts"], 4 4 "experimentalSortImports": { 5 5 "order": "asc" 6 6 }
+1 -1
apps/web/tsconfig.json
··· 2 2 "extends": "@tealfmbot/tsconfig/tsconfig.node.json", 3 3 "compilerOptions": { 4 4 "outDir": "./dist", 5 - "target": "ESNext", 5 + "target": "ESNext" 6 6 }, 7 7 "exclude": ["node_modules"] 8 8 }
+8 -9
packages/common/package.json
··· 3 3 "version": "0.0.0", 4 4 "private": true, 5 5 "type": "module", 6 + "imports": { 7 + "#*": "./dist/*" 8 + }, 6 9 "exports": { 7 - "./constants": { 8 - "types": "./dist/constants.d.ts", 9 - "import": "./dist/constants.js" 10 - }, 11 - "./logger": { 12 - "types": "./dist/logger.d.ts", 13 - "import": "./dist/logger.js" 14 - } 15 - }, 10 + "./*": { 11 + "types": "./*.ts", 12 + "default": "./dist/*.js" 13 + } 14 + }, 16 15 "scripts": { 17 16 "build:watch": "tsc --watch", 18 17 "build": "tsc",
+1 -2
packages/common/tsconfig.json
··· 3 3 "compilerOptions": { 4 4 "rootDir": ".", 5 5 "declaration": true, 6 - "declarationMap": false, 7 - "emitDeclarationOnly": false, 6 + "declarationMap": true, 8 7 "outDir": "./dist" 9 8 } 10 9 }
+9 -10
packages/database/package.json
··· 3 3 "version": "0.0.0", 4 4 "private": true, 5 5 "type": "module", 6 + "types": "./database.d.ts", 7 + "imports": { 8 + "#*": "./dist/*" 9 + }, 6 10 "exports": { 7 - "./db": { 8 - "types": "./dist/db.d.ts", 9 - "import": "./dist/db.js" 10 - }, 11 - "./types": { 12 - "types": "./dist/types.d.ts", 13 - "import": "./dist/types.js" 14 - } 15 - }, 16 - "types": "./database.d.ts", 11 + "./*": { 12 + "types": "./*.ts", 13 + "default": "./dist/*.js" 14 + } 15 + }, 17 16 "scripts": { 18 17 "build:watch": "tsc --watch", 19 18 "build": "tsc",
+1 -2
packages/database/tsconfig.json
··· 4 4 "compilerOptions": { 5 5 "rootDir": ".", 6 6 "declaration": true, 7 - "declarationMap": false, 8 - "emitDeclarationOnly": false, 7 + "declarationMap": true, 9 8 "outDir": "./dist" 10 9 }, 11 10 "include": ["db.ts", "database.d.ts", "types.ts"]