@1adybug/prettier 0.0.9 → 0.0.10

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.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -100,7 +100,7 @@ const config = {
100
100
  const type = getModuleType(path);
101
101
  let dir = "";
102
102
  if ("absolute" === type) dir = getResolvedPathDir(src_resolveAlias(path));
103
- if ("relative" === type && !!filepath) dir = getResolvedPathDir(resolve(filepath, path));
103
+ if ("relative" === type && !!filepath) dir = getResolvedPathDir(resolve(filepath, "../", path));
104
104
  const info = {
105
105
  type,
106
106
  dir
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@1adybug/prettier",
3
- "version": "0.0.9",
3
+ "version": "0.0.10",
4
4
  "description": "推荐的 Prettier 配置",
5
5
  "keywords": [
6
6
  "prettier",
@@ -38,9 +38,9 @@
38
38
  "dependencies": {
39
39
  "prettier-plugin-tailwindcss": "^0.7.1",
40
40
  "tsconfig-paths": "^4.2.0",
41
- "@1adybug/prettier-plugin-block-padding": "0.0.12",
42
41
  "@1adybug/prettier-plugin-remove-braces": "0.0.6",
43
- "@1adybug/prettier-plugin-sort-imports": "0.0.20"
42
+ "@1adybug/prettier-plugin-sort-imports": "0.0.20",
43
+ "@1adybug/prettier-plugin-block-padding": "0.0.12"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@rslib/core": "^0.18.2",