build: fix the messy dependency graph

This commit is contained in:
iCrawl
2023-11-09 00:13:01 +01:00
parent e5f3f3130e
commit aad82f088b
105 changed files with 655 additions and 438 deletions

View File

@@ -1,4 +0,0 @@
{
"extends": "./api-extractor.json",
"mainEntryPointFilePath": "<projectFolder>/dist-docs/index.d.ts"
}

View File

@@ -1,3 +0,0 @@
{
"extends": "../../api-extractor.json"
}

View File

@@ -5,7 +5,7 @@
"description": "",
"scripts": {
"test": "vitest run --config ../../vitest.config.ts",
"build": "vite build",
"build": "tsc --noEmit && vite build",
"lint": "prettier --check . && cross-env TIMING=1 eslint --format=pretty src",
"format": "prettier --write . && cross-env TIMING=1 eslint --fix --format=pretty src",
"prepack": "pnpm run build && pnpm run lint",
@@ -82,7 +82,7 @@
"prettier": "^3.0.3",
"prop-types": "^15.8.1",
"storybook": "^7.5.3",
"turbo": "^1.10.16",
"turbo": "^1.10.17-canary.0",
"typescript": "^5.2.2",
"unocss": "^0.57.2",
"vite": "^4.5.0",

View File

@@ -4,5 +4,23 @@
"compilerOptions": {
"allowJs": true
},
"include": ["*.ts", "*.tsx", "*.js", "*.cjs", "*.mjs", "src", ".storybook"]
"include": [
"*.ts",
"*.tsx",
"*.js",
"*.jsx",
"*.cjs",
"*.mjs",
"src/**/*.ts",
"src/**/*.tsx",
"src/**/*.js",
"src/**/*.jsx",
"src/**/*.cjs",
"src/**/*.mjs",
"bin",
"scripts",
"__tests__",
"__mocks__"
],
"exclude": ["node_modules"]
}

View File

@@ -2,15 +2,15 @@
"$schema": "https://json.schemastore.org/tsconfig.json",
"extends": "../../tsconfig.json",
"compilerOptions": {
"lib": ["ESNext", "DOM", "DOM.Iterable"],
"jsx": "preserve",
"baseUrl": ".",
"outDir": "dist",
"noEmit": true,
"skipLibCheck": true,
"paths": {
"~/*": ["./src/*"]
}
},
"include": ["src/**/*.ts", "src/**/*.tsx", ".ladle/**/*.tsx", "types.d.ts"],
"include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.js", "src/**/*.jsx", "src/**/*.cjs", "src/**/*.mjs", "bin"],
"exclude": ["node_modules"]
}