chore: clean ts-config files
This commit is contained in:
@@ -20,5 +20,5 @@
|
||||
"src/**/*.spec.tsx"
|
||||
],
|
||||
"include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.d.ts", "src/**/*.json"],
|
||||
"references": [{ "path": "../payload" }, { "path": "../translations" }] // db-mongodb depends on payload
|
||||
"references": [{ "path": "../payload" }, { "path": "../translations" }]
|
||||
}
|
||||
|
||||
@@ -20,5 +20,5 @@
|
||||
"src/**/*.spec.tsx"
|
||||
],
|
||||
"include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.d.ts", "src/**/*.json"],
|
||||
"references": [{ "path": "../payload" }, { "path": "../translations" }] // db-postgres depends on payload
|
||||
"references": [{ "path": "../payload" }, { "path": "../translations" }]
|
||||
}
|
||||
|
||||
@@ -21,5 +21,5 @@
|
||||
"src/**/*.spec.tsx"
|
||||
],
|
||||
"include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.d.ts", "src/**/*.json"],
|
||||
"references": [{ "path": "../payload" }] // db-mongodb depends on payload
|
||||
"references": [{ "path": "../payload" }]
|
||||
}
|
||||
|
||||
@@ -20,5 +20,5 @@
|
||||
"src/**/*.spec.tsx"
|
||||
],
|
||||
"include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.d.ts", "src/**/*.json"],
|
||||
"references": [{ "path": "../payload" }] // db-postgres depends on payload
|
||||
"references": [{ "path": "../payload" }]
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Collection, PayloadRequest } from 'payload/types'
|
||||
import type { Collection, PayloadRequest } from 'payload/types'
|
||||
import { APIError } from 'payload/errors'
|
||||
import httpStatus from 'http-status'
|
||||
|
||||
|
||||
@@ -1,36 +1,16 @@
|
||||
{
|
||||
"extends": "../../tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"composite": true, // Make sure typescript knows that this module depends on their references
|
||||
"noEmit": false /* Do not emit outputs. */,
|
||||
"emitDeclarationOnly": true,
|
||||
"outDir": "./dist" /* Specify an output folder for all emitted files. */,
|
||||
"rootDir": "./src" /* Specify the root folder within your source files. */,
|
||||
"sourceMap": true,
|
||||
"allowImportingTsExtensions": true
|
||||
"allowImportingTsExtensions": true,
|
||||
"composite": true // Required for references to work
|
||||
},
|
||||
"exclude": [
|
||||
"dist",
|
||||
"build",
|
||||
"tests",
|
||||
"test",
|
||||
"node_modules",
|
||||
".eslintrc.js",
|
||||
"src/**/*.spec.js",
|
||||
"src/**/*.spec.jsx",
|
||||
"src/**/*.spec.ts",
|
||||
"src/**/*.spec.tsx"
|
||||
],
|
||||
"include": [
|
||||
"src/translations/*.json",
|
||||
"src/**/*.ts",
|
||||
"src/**/*.tsx",
|
||||
"src/**/*.d.ts",
|
||||
"src/**/*.json",
|
||||
"../ui/src/createClientConfig.ts",
|
||||
"../../app/(payload)/admin/login/action.ts",
|
||||
"../payload/src/auth/cookies.ts"
|
||||
],
|
||||
"exclude": ["src/**/*.spec.js", "src/**/*.spec.jsx", "src/**/*.spec.ts", "src/**/*.spec.tsx"],
|
||||
"include": ["src/**/*.ts", "src/**/*.tsx"],
|
||||
"references": [
|
||||
{ "path": "../payload" },
|
||||
{ "path": "../ui" },
|
||||
|
||||
@@ -32,6 +32,5 @@
|
||||
"include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.d.ts", "src/**/*.json"],
|
||||
"ts-node": {
|
||||
"swc": true
|
||||
},
|
||||
"references": [{ "path": "../graphql" }]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,5 +21,5 @@
|
||||
"src/**/*.spec.tsx"
|
||||
],
|
||||
"include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.d.ts", "src/**/*.json"],
|
||||
"references": [{ "path": "../payload" }] // db-mongodb depends on payload
|
||||
"references": [{ "path": "../payload" }]
|
||||
}
|
||||
|
||||
@@ -21,5 +21,5 @@
|
||||
"src/**/*.spec.tsx"
|
||||
],
|
||||
"include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.d.ts", "src/**/*.json"],
|
||||
"references": [{ "path": "../payload" }] // richtext-lexical depends on payload
|
||||
"references": [{ "path": "../payload" }]
|
||||
}
|
||||
|
||||
@@ -27,5 +27,5 @@
|
||||
"src/**/*.json",
|
||||
"src/field/leaves/italic/Italic"
|
||||
],
|
||||
"references": [{ "path": "../payload" }, { "path": "../translations" }, { "path": "../ui" }] // db-mongodb depends on payload
|
||||
"references": [{ "path": "../payload" }, { "path": "../translations" }, { "path": "../ui" }]
|
||||
}
|
||||
|
||||
63
packages/translations/dist/api/index.d.ts
vendored
Normal file
63
packages/translations/dist/api/index.d.ts
vendored
Normal file
@@ -0,0 +1,63 @@
|
||||
export namespace translations {
|
||||
export { ar };
|
||||
export { az };
|
||||
export { bg };
|
||||
export { cs };
|
||||
export { de };
|
||||
export { en };
|
||||
export { es };
|
||||
export { fa };
|
||||
export { fr };
|
||||
export { hr };
|
||||
export { hu };
|
||||
export { it };
|
||||
export { ja };
|
||||
export { ko };
|
||||
export { my };
|
||||
export { nb };
|
||||
export { nl };
|
||||
export { pl };
|
||||
export { pt };
|
||||
export { ro };
|
||||
export { rs };
|
||||
export { rsLatin };
|
||||
export { ru };
|
||||
export { sv };
|
||||
export { th };
|
||||
export { tr };
|
||||
export { ua };
|
||||
export { vi };
|
||||
export { zh };
|
||||
export { zhTw };
|
||||
}
|
||||
import ar from "./ar.json";
|
||||
import az from "./az.json";
|
||||
import bg from "./bg.json";
|
||||
import cs from "./cs.json";
|
||||
import de from "./de.json";
|
||||
import en from "./en.json";
|
||||
import es from "./es.json";
|
||||
import fa from "./fa.json";
|
||||
import fr from "./fr.json";
|
||||
import hr from "./hr.json";
|
||||
import hu from "./hu.json";
|
||||
import it from "./it.json";
|
||||
import ja from "./ja.json";
|
||||
import ko from "./ko.json";
|
||||
import my from "./my.json";
|
||||
import nb from "./nb.json";
|
||||
import nl from "./nl.json";
|
||||
import pl from "./pl.json";
|
||||
import pt from "./pt.json";
|
||||
import ro from "./ro.json";
|
||||
import rs from "./rs.json";
|
||||
import rsLatin from "./rs-latin.json";
|
||||
import ru from "./ru.json";
|
||||
import sv from "./sv.json";
|
||||
import th from "./th.json";
|
||||
import tr from "./tr.json";
|
||||
import ua from "./ua.json";
|
||||
import vi from "./vi.json";
|
||||
import zh from "./zh.json";
|
||||
import zhTw from "./zh-tw.json";
|
||||
//# sourceMappingURL=index.d.ts.map
|
||||
1
packages/translations/dist/api/index.d.ts.map
vendored
Normal file
1
packages/translations/dist/api/index.d.ts.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eAAe,WAAW;eACX,WAAW;eACX,WAAW;eACX,WAAW;eACX,WAAW;eACX,WAAW;eACX,WAAW;eACX,WAAW;eACX,WAAW;eACX,WAAW;eACX,WAAW;eACX,WAAW;eACX,WAAW;eACX,WAAW;eACX,WAAW;eACX,WAAW;eACX,WAAW;eACX,WAAW;eACX,WAAW;eACX,WAAW;eACX,WAAW;oBACN,iBAAiB;eACtB,WAAW;eACX,WAAW;eACX,WAAW;eACX,WAAW;eACX,WAAW;eACX,WAAW;eACX,WAAW;iBACT,cAAc"}
|
||||
63
packages/translations/dist/client/index.d.ts
vendored
Normal file
63
packages/translations/dist/client/index.d.ts
vendored
Normal file
@@ -0,0 +1,63 @@
|
||||
export namespace translations {
|
||||
export { ar };
|
||||
export { az };
|
||||
export { bg };
|
||||
export { cs };
|
||||
export { de };
|
||||
export { en };
|
||||
export { es };
|
||||
export { fa };
|
||||
export { fr };
|
||||
export { hr };
|
||||
export { hu };
|
||||
export { it };
|
||||
export { ja };
|
||||
export { ko };
|
||||
export { my };
|
||||
export { nb };
|
||||
export { nl };
|
||||
export { pl };
|
||||
export { pt };
|
||||
export { ro };
|
||||
export { rs };
|
||||
export { rsLatin };
|
||||
export { ru };
|
||||
export { sv };
|
||||
export { th };
|
||||
export { tr };
|
||||
export { ua };
|
||||
export { vi };
|
||||
export { zh };
|
||||
export { zhTw };
|
||||
}
|
||||
import ar from "./ar.json";
|
||||
import az from "./az.json";
|
||||
import bg from "./bg.json";
|
||||
import cs from "./cs.json";
|
||||
import de from "./de.json";
|
||||
import en from "./en.json";
|
||||
import es from "./es.json";
|
||||
import fa from "./fa.json";
|
||||
import fr from "./fr.json";
|
||||
import hr from "./hr.json";
|
||||
import hu from "./hu.json";
|
||||
import it from "./it.json";
|
||||
import ja from "./ja.json";
|
||||
import ko from "./ko.json";
|
||||
import my from "./my.json";
|
||||
import nb from "./nb.json";
|
||||
import nl from "./nl.json";
|
||||
import pl from "./pl.json";
|
||||
import pt from "./pt.json";
|
||||
import ro from "./ro.json";
|
||||
import rs from "./rs.json";
|
||||
import rsLatin from "./rs-latin.json";
|
||||
import ru from "./ru.json";
|
||||
import sv from "./sv.json";
|
||||
import th from "./th.json";
|
||||
import tr from "./tr.json";
|
||||
import ua from "./ua.json";
|
||||
import vi from "./vi.json";
|
||||
import zh from "./zh.json";
|
||||
import zhTw from "./zh-tw.json";
|
||||
//# sourceMappingURL=index.d.ts.map
|
||||
1
packages/translations/dist/client/index.d.ts.map
vendored
Normal file
1
packages/translations/dist/client/index.d.ts.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eAAe,WAAW;eACX,WAAW;eACX,WAAW;eACX,WAAW;eACX,WAAW;eACX,WAAW;eACX,WAAW;eACX,WAAW;eACX,WAAW;eACX,WAAW;eACX,WAAW;eACX,WAAW;eACX,WAAW;eACX,WAAW;eACX,WAAW;eACX,WAAW;eACX,WAAW;eACX,WAAW;eACX,WAAW;eACX,WAAW;eACX,WAAW;oBACN,iBAAiB;eACtB,WAAW;eACX,WAAW;eACX,WAAW;eACX,WAAW;eACX,WAAW;eACX,WAAW;eACX,WAAW;iBACT,cAAc"}
|
||||
@@ -27,8 +27,7 @@
|
||||
"src/**/*.ts",
|
||||
"src/**/*.tsx",
|
||||
"src/**/*.d.ts",
|
||||
"src/**/*.json",
|
||||
"../next/src/utilities/createClientConfig.ts"
|
||||
"src/**/*.json"
|
||||
],
|
||||
"references": [{ "path": "../payload" }, { "path": "../translations" }] // db-postgres depends on payload
|
||||
"references": [{ "path": "../payload" }, { "path": "../translations" }]
|
||||
}
|
||||
|
||||
@@ -41,8 +41,7 @@
|
||||
"@payloadcms/translations/api": ["./packages/translations/dist/api/index.js"],
|
||||
"@payloadcms/translations/all": ["./packages/translations/dist/all/index.js"],
|
||||
"@payloadcms/next/*": ["./packages/next/src/*"],
|
||||
"@payloadcms/graphql": ["./packages/graphql/src"],
|
||||
"payload-config": ["./test/_community/config.ts"]
|
||||
"@payloadcms/graphql": ["./packages/graphql/src"]
|
||||
}
|
||||
},
|
||||
"exclude": ["dist", "build", "temp", "node_modules"],
|
||||
@@ -50,9 +49,9 @@
|
||||
"composite": true, // Required for references to work
|
||||
"references": [
|
||||
// if your tsconfig is something different
|
||||
{
|
||||
"path": "./packages/db-mongodb"
|
||||
},
|
||||
// {
|
||||
// "path": "./packages/db-mongodb"
|
||||
// },
|
||||
{
|
||||
"path": "./packages/db-postgres"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user