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,6 +1,5 @@
import { expectType } from 'tsd';
import type { Equatable } from '../../dist/index.js';
import { isEquatable } from '../../src/index.js';
import { isEquatable, type Equatable } from '../../src/index.js';
declare const unknownObj: unknown;

View File

@@ -1,6 +1,5 @@
import { expectType } from 'tsd';
import type { JSONEncodable } from '../../dist/index.js';
import { isJSONEncodable } from '../../src/index.js';
import { isJSONEncodable, type JSONEncodable } from '../../src/index.js';
declare const unknownObj: unknown;

View File

@@ -72,7 +72,7 @@
"prettier": "^3.0.3",
"tsd": "^0.29.0",
"tsup": "^7.2.0",
"turbo": "^1.10.16",
"turbo": "^1.10.17-canary.0",
"typescript": "^5.2.2",
"vitest": "^0.34.6"
},

View File

@@ -4,5 +4,6 @@
"compilerOptions": {
"outDir": "dist-docs"
},
"include": ["src/**/*.ts"]
"include": ["src/**/*.ts"],
"exclude": ["node_modules"]
}

View File

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

View File

@@ -1,5 +1,6 @@
{
"$schema": "https://json.schemastore.org/tsconfig.json",
"extends": "../../tsconfig.json",
"include": ["src/**/*.ts"]
"include": ["src/**/*.ts", "src/**/*.js", "src/**/*.cjs", "src/**/*.mjs", "bin"],
"exclude": ["node_modules"]
}