diff --git a/lerna.json b/lerna.json index 440e163..3fb2a78 100644 --- a/lerna.json +++ b/lerna.json @@ -1,5 +1,5 @@ { - "$schema": "node_modules/lerna/schemas/lerna-schema.json", - "npmClient": "pnpm", - "version": "0.0.0" + "$schema": "node_modules/lerna/schemas/lerna-schema.json", + "npmClient": "pnpm", + "version": "0.0.0" } diff --git a/package.json b/package.json index 11408f9..5e874c4 100644 --- a/package.json +++ b/package.json @@ -1,26 +1,26 @@ { - "private": "true", - "workspaces": [ - "packages/*" - ], - "packageManager": "pnpm@8.6.2", - "scripts": { - "build": "lerna run build", - "check": "prettier . --check && lerna run lint,test", - "lint": "prettier . --check && lerna run lint", - "lint:fix": "prettier . --write && lerna run lint:fix", - "test": "lerna run test" - }, - "devDependencies": { - "lerna": "^7.1.4", - "prettier": "^3.0.0" - }, - "pnpm": { - "patchedDependencies": { - "tsup@7.2.0": "patches/tsup@7.2.0.patch" - }, - "overrides": { - "has": "npm:@nolyfill/has@latest" - } - } + "private": "true", + "workspaces": [ + "packages/*" + ], + "packageManager": "pnpm@8.6.2", + "scripts": { + "build": "lerna run build", + "check": "prettier . --check && lerna run lint,test", + "lint": "prettier . --check && lerna run lint", + "lint:fix": "prettier . --write && lerna run lint:fix", + "test": "lerna run test" + }, + "devDependencies": { + "lerna": "^7.1.4", + "prettier": "^3.0.0" + }, + "pnpm": { + "patchedDependencies": { + "tsup@7.2.0": "patches/tsup@7.2.0.patch" + }, + "overrides": { + "has": "npm:@nolyfill/has@latest" + } + } } diff --git a/packages/ends-with-miao/package.json b/packages/ends-with-miao/package.json index a440feb..852e2c8 100644 --- a/packages/ends-with-miao/package.json +++ b/packages/ends-with-miao/package.json @@ -1,27 +1,27 @@ { - "name": "ends-with-miao", - "version": "1.0.0", - "description": "", - "author": "pinkchampagne", - "license": "AGPL-3.0", - "private": true, - "module": "./dist/index.js", - "types": "./dist/index.d.ts", - "scripts": { - "build": "rimraf dist && tsc -p ./tsconfig.json", - "test": "jest", - "test:watch": "jest --watchAll" - }, - "devDependencies": { - "@babel/core": "^7.21.4", - "@babel/preset-env": "^7.21.4", - "@babel/preset-typescript": "^7.21.4", - "@types/jest": "^29.5.1", - "babel-jest": "^29.5.0", - "eslint-config-ewm": "workspace:*", - "jest": "^29.5.0", - "rimraf": "^5.0.1", - "typescript": "^5.0.4", - "tsconfig": "workspace:*" - } + "name": "ends-with-miao", + "version": "1.0.0", + "description": "", + "author": "pinkchampagne", + "license": "AGPL-3.0", + "private": true, + "module": "./dist/index.js", + "types": "./dist/index.d.ts", + "scripts": { + "build": "rimraf dist && tsc -p ./tsconfig.json", + "test": "jest", + "test:watch": "jest --watchAll" + }, + "devDependencies": { + "@babel/core": "^7.21.4", + "@babel/preset-env": "^7.21.4", + "@babel/preset-typescript": "^7.21.4", + "@types/jest": "^29.5.1", + "babel-jest": "^29.5.0", + "eslint-config-ewm": "workspace:*", + "jest": "^29.5.0", + "rimraf": "^5.0.1", + "typescript": "^5.0.4", + "tsconfig": "workspace:*" + } } diff --git a/packages/ends-with-miao/tsconfig.json b/packages/ends-with-miao/tsconfig.json index 9902148..0d00d87 100644 --- a/packages/ends-with-miao/tsconfig.json +++ b/packages/ends-with-miao/tsconfig.json @@ -1,9 +1,9 @@ { - "extends": "tsconfig", - "include": ["src"], - "compilerOptions": { - "declarationMap": true, - "outDir": "dist", - "types": ["@types/jest"] - } + "extends": "tsconfig", + "include": ["src"], + "compilerOptions": { + "declarationMap": true, + "outDir": "dist", + "types": ["@types/jest"] + } } diff --git a/packages/prettier-config/package.json b/packages/prettier-config/package.json index efd20aa..c95ccf0 100644 --- a/packages/prettier-config/package.json +++ b/packages/prettier-config/package.json @@ -1,9 +1,9 @@ { - "name": "prettier-config", - "version": "1.0.1", - "main": "index.cjs", - "license": "MIT", - "peerDependencies": { - "prettier": ">= 3" - } + "name": "prettier-config", + "version": "1.0.1", + "main": "index.cjs", + "license": "MIT", + "peerDependencies": { + "prettier": ">= 3" + } } diff --git a/packages/tsconfig/package.json b/packages/tsconfig/package.json index aac2fc0..4a026f0 100644 --- a/packages/tsconfig/package.json +++ b/packages/tsconfig/package.json @@ -1,15 +1,15 @@ { - "name": "tsconfig", - "version": "1.0.0", - "description": "", - "author": "pinkchampagne", - "license": "MIT", - "private": true, - "main": "tsconfig.json", - "files": [ - "tsconfig.json" - ], - "peerDependencies": { - "typescript": ">=5" - } + "name": "tsconfig", + "version": "1.0.0", + "description": "", + "author": "pinkchampagne", + "license": "MIT", + "private": true, + "main": "tsconfig.json", + "files": [ + "tsconfig.json" + ], + "peerDependencies": { + "typescript": ">=5" + } } diff --git a/packages/tsconfig/tsconfig.json b/packages/tsconfig/tsconfig.json index 5dc5824..c983da8 100644 --- a/packages/tsconfig/tsconfig.json +++ b/packages/tsconfig/tsconfig.json @@ -1,15 +1,15 @@ { - "compilerOptions": { - "allowSyntheticDefaultImports": true, - "allowUmdGlobalAccess": true, - "declaration": true, - "esModuleInterop": true, - "module": "ESNext", - "moduleResolution": "node", - "noFallthroughCasesInSwitch": true, - "noImplicitOverride": true, - "resolveJsonModule": true, - "strict": true, - "target": "ESNext" - } + "compilerOptions": { + "allowSyntheticDefaultImports": true, + "allowUmdGlobalAccess": true, + "declaration": true, + "esModuleInterop": true, + "module": "ESNext", + "moduleResolution": "node", + "noFallthroughCasesInSwitch": true, + "noImplicitOverride": true, + "resolveJsonModule": true, + "strict": true, + "target": "ESNext" + } } diff --git a/packages/userscript/package.json b/packages/userscript/package.json index 5749a72..c9a7b1f 100644 --- a/packages/userscript/package.json +++ b/packages/userscript/package.json @@ -1,10 +1,11 @@ { "name": "userscript", "version": "0.2.0", - "description": "将网页中的每一个句子结尾都加上「喵」字作为结尾的篡改猴脚本喵。", - "license": "AGPL-3.0", "private": "true", + "description": "将网页中的每一个句子结尾都加上「喵」字作为结尾的篡改猴脚本喵。", "author": "pinkchampagne", + "license": "AGPL-3.0", + "homepage": "https://github.com/p-toy-factory/ends-with-miao#readme", "repository": { "type": "git", "url": "git+https://github.com/p-toy-factory/ends-with-miao.git" @@ -12,7 +13,6 @@ "bugs": { "url": "https://github.com/p-toy-factory/ends-with-miao/issues" }, - "homepage": "https://github.com/p-toy-factory/ends-with-miao#readme", "scripts": { "build": "webpack", "lint": "env ESLINT_USE_FLAT_CONFIG=true eslint . --cache", diff --git a/packages/userscript/src/index.js b/packages/userscript/src/index.js index fcfed35..b914fc4 100644 --- a/packages/userscript/src/index.js +++ b/packages/userscript/src/index.js @@ -26,5 +26,4 @@ function miao() { requestIdleCallback(miao); // @ts-ignore -// eslint-disable-next-line no-undef GM_registerMenuCommand("手动触发", miao); diff --git a/packages/userscript/webpack.config.js b/packages/userscript/webpack.config.js index 37b0d9f..fab4119 100644 --- a/packages/userscript/webpack.config.js +++ b/packages/userscript/webpack.config.js @@ -1,5 +1,5 @@ const packageJson = require("./package.json"); -const path = require("path"); +const path = require("node:path"); const TerserPlugin = require("terser-webpack-plugin"); const webpack = require("webpack");