Skip to content

Commit

Permalink
chore: migrate to biome from rome
Browse files Browse the repository at this point in the history
  • Loading branch information
ssssota committed Sep 12, 2023
1 parent 53971bf commit 864214d
Show file tree
Hide file tree
Showing 9 changed files with 286 additions and 302 deletions.
2 changes: 1 addition & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"recommendations": [
"rome.rome",
"biomejs.biome",
"svelte.svelte-vscode"
]
}
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"editor.defaultFormatter": "rome.rome",
"editor.defaultFormatter": "biomejs.biome",
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll": true,
Expand Down
2 changes: 1 addition & 1 deletion rome.json → biome.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "./node_modules/rome/configuration_schema.json",
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
"linter": {
"enabled": true,
"rules": {
Expand Down
66 changes: 31 additions & 35 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,37 +1,33 @@
{
"name": "typedotenv",
"private": true,
"version": "0.1.0",
"description": "All in One typedotenv (dotenv utility for TypeScript)",
"type": "module",
"scripts": {
"test": "pnpm -r test",
"fmt": "rome format .",
"check": "rome ci .",
"build": "pnpm -r build",
"changeset": "changeset",
"changeset:release": "pnpm build && changeset publish",
"changeset:version": "changeset version && pnpm install --lockfile-only"
},
"repository": {
"type": "git",
"url": "git+https://github.com/ssssota/typedotenv.git"
},
"keywords": [
"dotenv",
"typescript",
"code-generator"
],
"author": "TOMIKAWA Sotaro",
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/ssssota/typedotenv/issues"
},
"homepage": "https://github.com/ssssota/typedotenv#readme",
"packageManager": "[email protected]",
"devDependencies": {
"@changesets/changelog-github": "^0.4.8",
"@changesets/cli": "^2.26.0",
"rome": "^11.0.0"
}
"name": "typedotenv",
"private": true,
"version": "0.1.0",
"description": "All in One typedotenv (dotenv utility for TypeScript)",
"type": "module",
"scripts": {
"test": "pnpm -r test",
"fmt": "biome format .",
"check": "biome ci .",
"build": "pnpm -r build",
"changeset": "changeset",
"changeset:release": "pnpm build && changeset publish",
"changeset:version": "changeset version && pnpm install --lockfile-only"
},
"repository": {
"type": "git",
"url": "git+https://github.com/ssssota/typedotenv.git"
},
"keywords": ["dotenv", "typescript", "code-generator"],
"author": "TOMIKAWA Sotaro",
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/ssssota/typedotenv/issues"
},
"homepage": "https://github.com/ssssota/typedotenv#readme",
"packageManager": "[email protected]",
"devDependencies": {
"@biomejs/biome": "^1.1.2",
"@changesets/changelog-github": "^0.4.8",
"@changesets/cli": "^2.26.0"
}
}
90 changes: 41 additions & 49 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,51 +1,43 @@
{
"name": "@typedotenv/cli",
"version": "0.3.0",
"description": "CLI tool for typedotenv (dotenv utility for TypeScript)",
"type": "module",
"bin": {
"typedotenv": "dist/index.cjs"
},
"files": [
"dist"
],
"scripts": {
"dev": "tsx src/index.ts",
"build": "tsx build.ts",
"test": "pnpm build && vitest run",
"watch": "pnpm build && vitest",
"fmt": "pnpm -w fmt",
"check": "pnpm -w check && tsc --noEmit",
"prepack": "pnpm build"
},
"repository": {
"type": "git",
"url": "git+https://github.com/ssssota/typedotenv.git"
},
"keywords": [
"dotenv",
"typescript",
"code-generator",
"cli",
"tool"
],
"author": "TOMIKAWA Sotaro",
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/ssssota/typedotenv/issues"
},
"homepage": "https://github.com/ssssota/typedotenv#readme",
"packageManager": "[email protected]",
"devDependencies": {
"@types/node": "^18.13.0",
"@commander-js/extra-typings": "^10.0.2",
"@typedotenv/core": "workspace:*",
"commander": "^10.0.0",
"esbuild": "^0.17.8",
"rome": "^11.0.0",
"tsx": "^3.12.3",
"typescript": "^4.9.5",
"vitest": "^0.28.5",
"dotenv": "^16.0.3"
}
"name": "@typedotenv/cli",
"version": "0.3.0",
"description": "CLI tool for typedotenv (dotenv utility for TypeScript)",
"type": "module",
"bin": {
"typedotenv": "dist/index.cjs"
},
"files": ["dist"],
"scripts": {
"dev": "tsx src/index.ts",
"build": "tsx build.ts",
"test": "pnpm build && vitest run",
"watch": "pnpm build && vitest",
"fmt": "pnpm -w fmt",
"check": "pnpm -w check && tsc --noEmit",
"prepack": "pnpm build"
},
"repository": {
"type": "git",
"url": "git+https://github.com/ssssota/typedotenv.git"
},
"keywords": ["dotenv", "typescript", "code-generator", "cli", "tool"],
"author": "TOMIKAWA Sotaro",
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/ssssota/typedotenv/issues"
},
"homepage": "https://github.com/ssssota/typedotenv#readme",
"packageManager": "[email protected]",
"devDependencies": {
"@biomejs/biome": "^1.1.2",
"@types/node": "^18.13.0",
"@commander-js/extra-typings": "^10.0.2",
"@typedotenv/core": "workspace:*",
"commander": "^10.0.0",
"esbuild": "^0.17.8",
"tsx": "^3.12.3",
"typescript": "^4.9.5",
"vitest": "^0.28.5",
"dotenv": "^16.0.3"
}
}
104 changes: 49 additions & 55 deletions packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,57 +1,51 @@
{
"name": "@typedotenv/core",
"version": "0.2.0",
"description": "typedotenv core library (dotenv utility for TypeScript)",
"type": "module",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"require": "./dist/index.cjs",
"import": "./dist/index.js"
},
"./*": "./*"
},
"files": [
"dist"
],
"scripts": {
"clean": "node -e 'fs.rmSync(`dist`, {recursive:true, force:true})'",
"build": "tsup && tsx postbuild.ts",
"test": "vitest run",
"watch": "vitest",
"fmt": "pnpm -w fmt",
"check": "pnpm -w check && tsc --noEmit",
"prepack": "pnpm build"
},
"repository": {
"type": "git",
"url": "git+https://github.com/ssssota/typedotenv.git"
},
"keywords": [
"dotenv",
"typescript",
"code-generator"
],
"author": "TOMIKAWA Sotaro",
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/ssssota/typedotenv/issues"
},
"homepage": "https://github.com/ssssota/typedotenv#readme",
"packageManager": "[email protected]",
"devDependencies": {
"dotenv": "^16.0.3",
"fast-glob": "^3.2.12",
"rome": "^11.0.0",
"tsup": "^6.6.3",
"tsx": "^3.12.3",
"typescript": "^4.9.5",
"vitest": "^0.28.5"
},
"peerDependencies": {
"dotenv": "^16.0.0"
}
"name": "@typedotenv/core",
"version": "0.2.0",
"description": "typedotenv core library (dotenv utility for TypeScript)",
"type": "module",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"require": "./dist/index.cjs",
"import": "./dist/index.js"
},
"./*": "./*"
},
"files": ["dist"],
"scripts": {
"clean": "node -e 'fs.rmSync(`dist`, {recursive:true, force:true})'",
"build": "tsup && tsx postbuild.ts",
"test": "vitest run",
"watch": "vitest",
"fmt": "pnpm -w fmt",
"check": "pnpm -w check && tsc --noEmit",
"prepack": "pnpm build"
},
"repository": {
"type": "git",
"url": "git+https://github.com/ssssota/typedotenv.git"
},
"keywords": ["dotenv", "typescript", "code-generator"],
"author": "TOMIKAWA Sotaro",
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/ssssota/typedotenv/issues"
},
"homepage": "https://github.com/ssssota/typedotenv#readme",
"packageManager": "[email protected]",
"devDependencies": {
"@biomejs/biome": "^1.1.2",
"dotenv": "^16.0.3",
"fast-glob": "^3.2.12",
"tsup": "^6.6.3",
"tsx": "^3.12.3",
"typescript": "^4.9.5",
"vitest": "^0.28.5"
},
"peerDependencies": {
"dotenv": "^16.0.0"
}
}
Loading

0 comments on commit 864214d

Please sign in to comment.