@kyh/prettier-config 0.1.9 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @kyh/prettier-config
2
2
 
3
+ ## 1.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - update gitignore location
8
+
9
+ ## 1.0.0
10
+
11
+ ### Major Changes
12
+
13
+ - update to eslint 9
14
+
3
15
  ## 0.1.9
4
16
 
5
17
  ### Patch Changes
package/base.js CHANGED
@@ -1,16 +1,19 @@
1
- import { promises as fs } from "fs";
2
- import { join } from "path";
1
+ import * as fs from "node:fs";
2
+ import * as path from "node:path";
3
3
 
4
4
  const fileExists = async (filePath) => {
5
5
  try {
6
- await fs.access(filePath);
6
+ await fs.promises.access(filePath);
7
7
  return true;
8
8
  } catch {
9
9
  return false;
10
10
  }
11
11
  };
12
12
 
13
- const tailwindConfigPath = join(process.cwd(), "packages/tailwind/src/web.ts");
13
+ const tailwindConfigPath = path.join(
14
+ process.cwd(),
15
+ "packages/tailwind/src/web.ts",
16
+ );
14
17
  const tailwindConfigExists = await fileExists(tailwindConfigPath);
15
18
 
16
19
  /** @typedef {import("prettier").Config} PrettierConfig */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kyh/prettier-config",
3
- "version": "0.1.9",
3
+ "version": "1.0.1",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -9,17 +9,17 @@
9
9
  ".": "./base.js"
10
10
  },
11
11
  "dependencies": {
12
- "@ianvs/prettier-plugin-sort-imports": "^4.3.0",
13
- "prettier": "^3.3.2",
14
- "prettier-plugin-tailwindcss": "^0.6.5"
12
+ "@ianvs/prettier-plugin-sort-imports": "^4.3.1",
13
+ "prettier": "^3.3.3",
14
+ "prettier-plugin-tailwindcss": "^0.6.6"
15
15
  },
16
16
  "devDependencies": {
17
- "typescript": "^5.5.2",
18
- "@kyh/tsconfig": "^0.1.9"
17
+ "typescript": "^5.5.4",
18
+ "@kyh/tsconfig": "^1.0.1"
19
19
  },
20
20
  "prettier": "@kyh/prettier-config",
21
21
  "scripts": {
22
- "clean": "rm -rf .turbo node_modules",
22
+ "clean": "git clean -xdf .cache .nitro .output .turbo .vercel node_modules",
23
23
  "format": "prettier --check . --ignore-path ../../.gitignore",
24
24
  "typecheck": "tsc --noEmit"
25
25
  }
package/tsconfig.json CHANGED
@@ -1,8 +1,5 @@
1
1
  {
2
2
  "extends": "@kyh/tsconfig/base.json",
3
- "compilerOptions": {
4
- "tsBuildInfoFile": "node_modules/.cache/tsbuildinfo.json"
5
- },
6
3
  "include": ["."],
7
4
  "exclude": ["node_modules"]
8
5
  }
@@ -1,6 +0,0 @@
1
-
2
- > @kyh/prettier-config@0.1.3 format /Users/kyh/Documents/Projects/template/tooling/prettier
3
- > prettier --check . --ignore-path ../../.gitignore "--write" "--cache" "--cache-location" "node_modules/.cache/.prettiercache"
4
-
5
- Checking formatting...
6
- All matched files use Prettier code style!