Updated project configuration
This commit is contained in:
parent
425fd57d81
commit
eb1309c5a1
|
|
@ -1,6 +1,6 @@
|
|||
/node_modules
|
||||
/.idea
|
||||
/build
|
||||
config.json
|
||||
*.test.ts
|
||||
.rest
|
||||
**/node_modules
|
||||
**/.idea
|
||||
**/dist
|
||||
**/config.json
|
||||
**/*.test.ts
|
||||
**/.vscode
|
||||
|
|
@ -3,5 +3,5 @@
|
|||
.gitignore
|
||||
.prettierrc
|
||||
.editorconfig
|
||||
nodemon.json
|
||||
tsconfig.json
|
||||
tsconfig.json
|
||||
babel.config.js
|
||||
|
|
@ -1,9 +1,9 @@
|
|||
{
|
||||
"name": "ytmusic-api",
|
||||
"version": "1.0.3",
|
||||
"version": "1.0.4",
|
||||
"description": "YouTube Music API",
|
||||
"main": "build/index.js",
|
||||
"types": "build/index.d.ts",
|
||||
"main": "dist/index.js",
|
||||
"types": "dist/index.d.ts",
|
||||
"author": "zS1L3NT <zechariahtan144@gmail.com> (http://www.zectan.com)",
|
||||
"license": "ISC",
|
||||
"repository": {
|
||||
|
|
|
|||
|
|
@ -138,7 +138,7 @@ export default class YTMusic {
|
|||
const searchParams = new URLSearchParams({
|
||||
...query,
|
||||
alt: "json",
|
||||
key: this.config.INNERTUBE_API_KEY
|
||||
key: this.config.INNERTUBE_API_KEY!
|
||||
})
|
||||
|
||||
const res = await this.client.post(
|
||||
|
|
|
|||
|
|
@ -1,22 +1,43 @@
|
|||
{
|
||||
"compilerOptions": {
|
||||
/** Transpiler */
|
||||
"target": "esnext",
|
||||
"allowSyntheticDefaultImports": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"module": "commonjs",
|
||||
"lib": ["esnext"], // "dom", "dom.iterable", "esnext"
|
||||
"module": "commonjs", // esnext
|
||||
"moduleResolution": "node",
|
||||
"esModuleInterop": true,
|
||||
"allowSyntheticDefaultImports": true,
|
||||
|
||||
/** Project */
|
||||
"rootDir": "src",
|
||||
"outDir": "dist",
|
||||
"typeRoots": ["./node_modules/@types", "./src/@types"],
|
||||
"declaration": true,
|
||||
|
||||
/** Type Checking */
|
||||
"strict": true,
|
||||
"alwaysStrict": true,
|
||||
"noImplicitAny": true,
|
||||
"noUnusedLocals": false,
|
||||
"noUnusedParameters": false,
|
||||
"resolveJsonModule": true,
|
||||
"strictNullChecks": true,
|
||||
"strictFunctionTypes": true,
|
||||
"outDir": "build",
|
||||
"rootDir": "src",
|
||||
"declaration": true
|
||||
"strictBindCallApply": true,
|
||||
"strictPropertyInitialization": true,
|
||||
"noImplicitThis": true,
|
||||
"useUnknownInCatchVariables": true,
|
||||
"noImplicitReturns": true,
|
||||
"noFallthroughCasesInSwitch": true,
|
||||
"noUncheckedIndexedAccess": true,
|
||||
"noImplicitOverride": true,
|
||||
"allowUnusedLabels": true,
|
||||
"resolveJsonModule": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
|
||||
/** Other */
|
||||
// "noEmit": true,
|
||||
// "allowJs": true,
|
||||
// "jsx": "react-jsx",
|
||||
// "skipLibCheck": true,
|
||||
// "isolatedModules": true,
|
||||
// "incremental": true
|
||||
},
|
||||
"exclude": ["**/*.test.*", "**/tests"]
|
||||
"include": ["src"],
|
||||
"exclude": ["src/__tests__"]
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue