Skip to content

Commit 1e8e44e

Browse files
committed
Refactor code structure for improved readability and maintainability
1 parent d7dee9d commit 1e8e44e

File tree

4 files changed

+19
-497
lines changed

4 files changed

+19
-497
lines changed

packages/nanoframe/package.json

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44
"description": "Electron-like framework using system webviews powered by a Rust core.",
55
"license": "ICL",
66
"type": "module",
7-
"main": "dist/index.cjs",
8-
"module": "dist/index.js",
7+
"main": "dist/index.js",
98
"types": "dist/index.d.ts",
109
"repository": {
1110
"type": "git",
@@ -16,21 +15,13 @@
1615
"bugs": {
1716
"url": "https://github.com/infinitejs/nanoframe/issues"
1817
},
19-
"exports": {
20-
".": {
21-
"types": "./dist/index.d.ts",
22-
"import": "./dist/index.js",
23-
"require": "./dist/index.cjs"
24-
}
25-
},
2618
"files": [
2719
"dist",
2820
"LICENSE",
2921
"README.md"
3022
],
3123
"scripts": {
32-
"build": "tsc -p tsconfig.build.json && tsup src/index.ts --format esm,cjs",
33-
"dev": "tsup src/index.ts --format esm,cjs --watch",
24+
"build": "tsc -p tsconfig.build.json",
3425
"lint": "eslint .",
3526
"test": "vitest run",
3627
"prepare": "husky install"
@@ -53,7 +44,6 @@
5344
"@types/node": "24",
5445
"eslint": "9",
5546
"husky": "9",
56-
"tsup": "8",
5747
"typescript": "5.9.2",
5848
"vitest": "3.2.4"
5949
}
Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,22 @@
11
{
22
"extends": "./tsconfig.json",
33
"compilerOptions": {
4+
"outDir": "dist",
5+
"rootDir": "src",
46
"declaration": true,
5-
"emitDeclarationOnly": true
6-
}
7+
"declarationMap": false,
8+
"sourceMap": false,
9+
"noEmit": false,
10+
"composite": false,
11+
"emitDeclarationOnly": false
12+
},
13+
"include": [
14+
"src/**/*.ts"
15+
],
16+
"exclude": [
17+
"**/*.test.ts",
18+
"**/*.spec.ts",
19+
"node_modules",
20+
"dist"
21+
]
722
}

packages/nanoframe/tsconfig.build.tsbuildinfo

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)