diff --git a/bun.lock b/bun.lock index b08d78d..81e26a2 100644 --- a/bun.lock +++ b/bun.lock @@ -14,7 +14,6 @@ "node-gyp": "^12.2.0", "prebuildify": "^6.0.1", "prettier": "^3.8.2", - "rimraf": "^6.1.3", "typescript": "^6.0.2", }, }, @@ -134,8 +133,6 @@ "p-map": ["p-map@7.0.4", "", {}, "sha512-tkAQEw8ysMzmkhgw8k+1U/iPhWNhykKnSk4Rd5zLoPJCuJaGRPo6YposrZgaxHKzDHdDWWZvE/Sk7hsL2X/CpQ=="], - "package-json-from-dist": ["package-json-from-dist@1.0.1", "", {}, "sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw=="], - "path-expression-matcher": ["path-expression-matcher@1.5.0", "", {}, "sha512-cbrerZV+6rvdQrrD+iGMcZFEiiSrbv9Tfdkvnusy6y0x0GKBXREFg/Y65GhIfm0tnLntThhzCnfKwp1WRjeCyQ=="], "path-key": ["path-key@3.1.1", "", {}, "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q=="], @@ -154,8 +151,6 @@ "readable-stream": ["readable-stream@3.6.2", "", { "dependencies": { "inherits": "^2.0.3", "string_decoder": "^1.1.1", "util-deprecate": "^1.0.1" } }, "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA=="], - "rimraf": ["rimraf@6.1.3", "", { "dependencies": { "glob": "^13.0.3", "package-json-from-dist": "^1.0.1" }, "bin": "dist/esm/bin.mjs" }, "sha512-LKg+Cr2ZF61fkcaK1UdkH2yEBBKnYjTyWzTJT6KNPcSPaiT7HSdhtMXQuN5wkTX0Xu72KQ1l8S42rlmexS2hSA=="], - "safe-buffer": ["safe-buffer@5.2.1", "", {}, "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ=="], "safer-buffer": ["safer-buffer@2.1.2", "", {}, "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg=="], diff --git a/package.json b/package.json index 14f7554..bf9160d 100644 --- a/package.json +++ b/package.json @@ -3,12 +3,12 @@ "version": "1.0.1", "upstream": "v1.0a", "description": "Lightweight and cross-platform native GUI toolkit", - "main": "lib/index.js", + "main": "dist/index.js", "type": "module", "scripts": { "install": "node-gyp-build", - "bindgen": "node scripts/bindgen.js && prettier --write lib/", - "update": "rimraf deps/milsko.tar.gz deps/milsko/ && node scripts/download.js" + "build": "tsc && node-gyp rebuild", + "bindgen": "node scripts/bindgen.js && prettier --write lib/" }, "repository": { "type": "git", @@ -36,7 +36,6 @@ "node-gyp": "^12.2.0", "prebuildify": "^6.0.1", "prettier": "^3.8.2", - "rimraf": "^6.1.3", "typescript": "^6.0.2" }, "dependencies": { diff --git a/tsconfig.json b/tsconfig.json index 8b49187..eb9671c 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -2,18 +2,16 @@ "compilerOptions": { "rootDir": "./lib", "outDir": "./dist", - "module": "es2020", + "module": "commonjs", "target": "esnext", "types": ["node"], "allowJs": true, - "declaration": true, - "noUncheckedIndexedAccess": true, - "exactOptionalPropertyTypes": true, - "noImplicitReturns": true, + "esModuleInterop": true, + "forceConsistentCasingInFileNames": true, "strict": true, - "verbatimModuleSyntax": true, - "noUncheckedSideEffectImports": true, - "skipLibCheck": true + "skipLibCheck": true, + "declaration": true, + "isolatedModules": true }, "exclude": ["scripts"] }