@bettergi/create-script
Advanced tools
+2
-2
| { | ||
| "name": "@bettergi/create-script", | ||
| "version": "0.2.3", | ||
| "version": "0.2.4", | ||
| "description": "搭建您的第一个 BetterGI 脚本项目", | ||
@@ -39,3 +39,3 @@ "type": "module", | ||
| "@types/git-config": "^0.0.32", | ||
| "@types/node": "^25.0.6", | ||
| "@types/node": "^25.0.9", | ||
| "rimraf": "^6.1.2", | ||
@@ -42,0 +42,0 @@ "typescript": "^5.9.3" |
@@ -18,4 +18,5 @@ import eslint from "@eslint/js"; | ||
| rules: { | ||
| "@typescript-eslint/no-explicit-any": "off", | ||
| "@typescript-eslint/no-floating-promises": ["error", { ignoreIIFE: true }], | ||
| "@typescript-eslint/no-explicit-any": "off", | ||
| "@typescript-eslint/no-redundant-type-constituents": "off", | ||
| "@typescript-eslint/no-unsafe-assignment": "off", | ||
@@ -22,0 +23,0 @@ "@typescript-eslint/no-unsafe-call": "off", |
@@ -17,9 +17,9 @@ { | ||
| "devDependencies": { | ||
| "@bettergi/cli": "^0.2.6", | ||
| "@bettergi/cli": "^0.2.9", | ||
| "@bettergi/types": "^0.1.10", | ||
| "@bettergi/utils": "^0.1.25", | ||
| "@bettergi/utils": "^0.1.27", | ||
| "@eslint/js": "^9.39.2", | ||
| "eslint": "^9.39.2", | ||
| "typescript": "^5.9.3", | ||
| "typescript-eslint": "^8.52.0" | ||
| "typescript-eslint": "^8.53.0" | ||
| }, | ||
@@ -26,0 +26,0 @@ "engines": { |
@@ -1,4 +0,4 @@ | ||
| import { type ExtractSettingsMap, type Settings } from "@bettergi/cli"; | ||
| import { defineSettings } from "@bettergi/cli"; | ||
| const settings = [ | ||
| const settings = defineSettings([ | ||
| { | ||
@@ -16,11 +16,10 @@ type: "checkbox", | ||
| } | ||
| ] as const satisfies Settings; | ||
| ]); | ||
| export default settings as Settings; | ||
| /** 覆写设置类型定义 */ | ||
| export type SettingsMap = ExtractSettingsMap<typeof settings>; | ||
| /** 覆写脚本设置类型定义 */ | ||
| type GlobalSettings = typeof settings & Record<string, any>; | ||
| declare global { | ||
| var settings: Record<string, any> & SettingsMap; | ||
| var settings: GlobalSettings; | ||
| } | ||
| export default settings; |
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
24373
0.01%558
0.18%