🚧 halfway working on esm fix
This commit is contained in:
parent
939ef8f3b1
commit
68aed894d4
21
package.json
21
package.json
|
|
@ -1,17 +1,29 @@
|
||||||
{
|
{
|
||||||
"name": "ytmusic-api",
|
"name": "ytmusic-api",
|
||||||
"version": "5.2.1",
|
"version": "5.2.2-alpha.7",
|
||||||
"description": "YouTube Music API",
|
"description": "YouTube Music API",
|
||||||
"main": "dist/index.js",
|
"main": "./dist/cjs/index.js",
|
||||||
"types": "dist/index.d.ts",
|
"module": "./dist/esm/index.js",
|
||||||
|
"types": "./dist/types/index.d.ts",
|
||||||
|
"files": [
|
||||||
|
"dist"
|
||||||
|
],
|
||||||
"author": "zS1L3NT <dev@zectan.com> (http://www.zectan.com)",
|
"author": "zS1L3NT <dev@zectan.com> (http://www.zectan.com)",
|
||||||
"license": "GPL-3.0",
|
"license": "GPL-3.0",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/zS1L3NT/ts-npm-ytmusic-api"
|
"url": "https://github.com/zS1L3NT/ts-npm-ytmusic-api"
|
||||||
},
|
},
|
||||||
|
"exports": {
|
||||||
|
"./package.json": "./package.json",
|
||||||
|
".": {
|
||||||
|
"types": "./dist/types/index.d.ts",
|
||||||
|
"require": "./dist/cjs/index.js",
|
||||||
|
"import": "./dist/esm/index.js"
|
||||||
|
}
|
||||||
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "tsc && rm tsconfig.tsbuildinfo",
|
"build": "tsup src/index.ts --dts --format cjs,esm --clean --out-dir dist",
|
||||||
"clean": "tsc --noEmit && eslint src --fix && prettier src --write && rm tsconfig.tsbuildinfo"
|
"clean": "tsc --noEmit && eslint src --fix && prettier src --write && rm tsconfig.tsbuildinfo"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
@ -28,6 +40,7 @@
|
||||||
"eslint-config-prettier": "latest",
|
"eslint-config-prettier": "latest",
|
||||||
"eslint-plugin-simple-import-sort": "latest",
|
"eslint-plugin-simple-import-sort": "latest",
|
||||||
"prettier": "latest",
|
"prettier": "latest",
|
||||||
|
"tsup": "^8.0.2",
|
||||||
"typescript": "latest"
|
"typescript": "latest"
|
||||||
},
|
},
|
||||||
"keywords": [
|
"keywords": [
|
||||||
|
|
|
||||||
|
|
@ -3,16 +3,17 @@
|
||||||
/** Transpiler */
|
/** Transpiler */
|
||||||
"target": "esnext",
|
"target": "esnext",
|
||||||
"lib": ["esnext"],
|
"lib": ["esnext"],
|
||||||
"module": "commonjs",
|
"module": "esnext",
|
||||||
"moduleResolution": "node",
|
"moduleResolution": "node",
|
||||||
"esModuleInterop": true,
|
"esModuleInterop": true,
|
||||||
"allowSyntheticDefaultImports": true,
|
"allowSyntheticDefaultImports": true,
|
||||||
|
|
||||||
/** Project */
|
/** Project */
|
||||||
"rootDir": "src",
|
"rootDir": "src",
|
||||||
"outDir": "dist",
|
"outDir": "dist/esm",
|
||||||
"types": ["bun-types"],
|
"types": ["bun-types"],
|
||||||
"declaration": true,
|
"declaration": true,
|
||||||
|
"declarationDir": "dist/types",
|
||||||
|
|
||||||
/** Type Checking */
|
/** Type Checking */
|
||||||
"strict": true,
|
"strict": true,
|
||||||
|
|
@ -31,12 +32,13 @@
|
||||||
"forceConsistentCasingInFileNames": true,
|
"forceConsistentCasingInFileNames": true,
|
||||||
|
|
||||||
/** Other */
|
/** Other */
|
||||||
"noEmit": false,
|
// "noEmit": false,
|
||||||
"allowJs": true,
|
// "allowJs": true,
|
||||||
"jsx": "react-jsx",
|
// "jsx": "react-jsx",
|
||||||
"skipLibCheck": true,
|
// "skipLibCheck": true,
|
||||||
"isolatedModules": true,
|
// "isolatedModules": true,
|
||||||
"incremental": true
|
// "incremental": true
|
||||||
},
|
},
|
||||||
"include": ["src", "src/tests"]
|
"include": ["src"],
|
||||||
|
"exclude": ["src/tests"]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue