Skip to content

Commit 76ae2e4

Browse files
add monorepo stuff
1 parent 91b16f8 commit 76ae2e4

2 files changed

Lines changed: 82 additions & 64 deletions

File tree

package.json

Lines changed: 47 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,49 @@
11
{
2-
"name": "@lix-js/html-diff",
3-
"version": "0.1.0",
4-
"type": "module",
5-
"types": "./dist/index.d.ts",
6-
"publishConfig": {
7-
"access": "public",
8-
"tag": "latest"
9-
},
10-
"exports": {
11-
".": "./dist/index.js",
12-
"./default.css": "./src/default.css"
13-
},
14-
"files": [
15-
"dist",
16-
"src"
17-
],
18-
"scripts": {
19-
"build": "tsc",
20-
"dev": "tsc --watch",
21-
"test": "tsc --noEmit && vitest run",
22-
"test:watch": "vitest",
23-
"format": "prettier . --write",
24-
"docs:dev": "rspress dev",
25-
"docs:build": "rspress build",
26-
"docs:preview": "rspress preview"
27-
},
28-
"devDependencies": {
29-
"@braintree/sanitize-url": "^7.1.1",
30-
"@monaco-editor/react": "^4.7.0",
31-
"@opral/tsconfig": "workspace:*",
32-
"@tailwindcss/postcss": "^4.1.10",
33-
"@types/react": "^19.0.12",
34-
"@types/react-dom": "^19.0.4",
35-
"dedent": "1.5.1",
36-
"prettier": "^3.5.1",
37-
"react": "^19.1.0",
38-
"react-dom": "^19.1.0",
39-
"rspress": "^1.40.2",
40-
"tailwindcss": "^4.1.11",
41-
"typescript": "^5.5.3",
42-
"vite": "^6.2.6",
43-
"vitest": "^3.2.4",
44-
"rspress-plugin-mermaid": "^0.3.0"
45-
},
46-
"dependencies": {
47-
"diff": "^8.0.2",
48-
"parse5": "^7.3.0"
49-
}
2+
"name": "@lix-js/html-diff",
3+
"version": "0.1.0",
4+
"type": "module",
5+
"types": "./dist/index.d.ts",
6+
"publishConfig": {
7+
"access": "public",
8+
"tag": "latest"
9+
},
10+
"exports": {
11+
".": "./dist/index.js",
12+
"./default.css": "./src/default.css"
13+
},
14+
"files": [
15+
"dist",
16+
"src"
17+
],
18+
"scripts": {
19+
"build": "tsc",
20+
"dev": "tsc --watch",
21+
"test": "tsc --noEmit && vitest run",
22+
"test:watch": "vitest",
23+
"format": "prettier . --write",
24+
"docs:dev": "rspress dev",
25+
"docs:build": "rspress build",
26+
"docs:preview": "rspress preview"
27+
},
28+
"devDependencies": {
29+
"@braintree/sanitize-url": "^7.1.1",
30+
"@monaco-editor/react": "^4.7.0",
31+
"@tailwindcss/postcss": "^4.1.10",
32+
"@types/react": "^19.0.12",
33+
"@types/react-dom": "^19.0.4",
34+
"dedent": "1.5.1",
35+
"prettier": "^3.5.1",
36+
"react": "^19.1.0",
37+
"react-dom": "^19.1.0",
38+
"rspress": "^1.40.2",
39+
"tailwindcss": "^4.1.11",
40+
"typescript": "^5.5.3",
41+
"vite": "^6.2.6",
42+
"vitest": "^3.2.4",
43+
"rspress-plugin-mermaid": "^0.3.0"
44+
},
45+
"dependencies": {
46+
"diff": "^8.0.2",
47+
"parse5": "^7.3.0"
48+
}
5049
}

tsconfig.json

Lines changed: 35 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,37 @@
11
{
2-
"extends": "@opral/tsconfig/default",
3-
"include": ["src/**/*"],
4-
"compilerOptions": {
5-
"allowJs": false,
6-
"checkJs": false,
7-
// isolated declarations lead to substantially faster build times
8-
// which is overproportionally useful in a monorepo
9-
// https://devblogs.microsoft.com/typescript/announcing-typescript-5-5/#isolated-declarations
10-
"isolatedDeclarations": true,
11-
"allowImportingTsExtensions": false,
12-
"emitDeclarationOnly": false,
13-
"module": "Node16",
14-
"lib": ["ESNext", "DOM"],
15-
"outDir": "./dist",
16-
"rootDir": "./src"
17-
}
2+
"include": [
3+
"src*"
4+
],
5+
"compilerOptions": {
6+
"allowJs": false,
7+
"checkJs": false,
8+
"isolatedDeclarations": true,
9+
"allowImportingTsExtensions": false,
10+
"emitDeclarationOnly": false,
11+
"module": "Node16",
12+
"lib": [
13+
"ESNext",
14+
"DOM"
15+
],
16+
"outDir": "./dist",
17+
"rootDir": "./src",
18+
"sourceMap": true,
19+
"moduleResolution": "Node16",
20+
"target": "ES2022",
21+
"allowSyntheticDefaultImports": true,
22+
"resolveJsonModule": false,
23+
"declaration": true,
24+
"strict": true,
25+
"forceConsistentCasingInFileNames": true,
26+
"skipLibCheck": true,
27+
"skipDefaultLibCheck": true,
28+
"verbatimModuleSyntax": true,
29+
"noUncheckedIndexedAccess": true,
30+
"declarationMap": true,
31+
"noImplicitAny": true,
32+
"noImplicitReturns": true,
33+
"noFallthroughCasesInSwitch": true,
34+
"noImplicitOverride": true,
35+
"allowUnreachableCode": false
36+
}
1837
}

0 commit comments

Comments
 (0)