Skip to content

Commit

Permalink
style: new config
Browse files Browse the repository at this point in the history
  • Loading branch information
PinkChampagne17 committed Oct 9, 2023
1 parent 30cabd5 commit d7f0036
Show file tree
Hide file tree
Showing 10 changed files with 96 additions and 97 deletions.
6 changes: 3 additions & 3 deletions lerna.json
Original file line number Diff line number Diff line change
@@ -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"
}
48 changes: 24 additions & 24 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
{
"private": "true",
"workspaces": [
"packages/*"
],
"packageManager": "[email protected]",
"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": {
"[email protected]": "patches/[email protected]"
},
"overrides": {
"has": "npm:@nolyfill/has@latest"
}
}
"private": "true",
"workspaces": [
"packages/*"
],
"packageManager": "[email protected]",
"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": {
"[email protected]": "patches/[email protected]"
},
"overrides": {
"has": "npm:@nolyfill/has@latest"
}
}
}
50 changes: 25 additions & 25 deletions packages/ends-with-miao/package.json
Original file line number Diff line number Diff line change
@@ -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:*"
}
}
14 changes: 7 additions & 7 deletions packages/ends-with-miao/tsconfig.json
Original file line number Diff line number Diff line change
@@ -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"]
}
}
14 changes: 7 additions & 7 deletions packages/prettier-config/package.json
Original file line number Diff line number Diff line change
@@ -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"
}
}
26 changes: 13 additions & 13 deletions packages/tsconfig/package.json
Original file line number Diff line number Diff line change
@@ -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"
}
}
26 changes: 13 additions & 13 deletions packages/tsconfig/tsconfig.json
Original file line number Diff line number Diff line change
@@ -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"
}
}
6 changes: 3 additions & 3 deletions packages/userscript/package.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
{
"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"
},
"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",
Expand Down
1 change: 0 additions & 1 deletion packages/userscript/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,4 @@ function miao() {
requestIdleCallback(miao);

// @ts-ignore
// eslint-disable-next-line no-undef
GM_registerMenuCommand("手动触发", miao);
2 changes: 1 addition & 1 deletion packages/userscript/webpack.config.js
Original file line number Diff line number Diff line change
@@ -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");

Expand Down

0 comments on commit d7f0036

Please sign in to comment.