@esmate/prettier 1.0.6 → 1.0.8

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/dist/index.js CHANGED
@@ -1,5 +1,3 @@
1
- import * as __WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__ from "node:path";
2
- import * as __WEBPACK_EXTERNAL_MODULE_globby__ from "globby";
3
1
  import * as __WEBPACK_EXTERNAL_MODULE__utils_js_d88b7fe1__ from "./utils.js";
4
2
  function defineConfig(options, config) {
5
3
  const defaultConfig = {
@@ -18,19 +16,15 @@ function defineConfig(options, config) {
18
16
  const plugins = config?.plugins || [];
19
17
  const overrides = config?.overrides || [];
20
18
  {
21
- const rootDir = (0, __WEBPACK_EXTERNAL_MODULE__utils_js_d88b7fe1__.findRootDir)();
22
19
  const ignores = [
23
20
  "pnpm-lock.yaml",
24
21
  "package-lock.json"
25
22
  ];
26
- if (options?.ignores) for (const pattern of options.ignores){
27
- const files = (0, __WEBPACK_EXTERNAL_MODULE_globby__.globbySync)(__WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__["default"].join(rootDir, pattern)).map((file)=>file.replace(rootDir + __WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__["default"].sep, ""));
28
- ignores.push(...files);
29
- }
23
+ if (options?.ignores) ignores.push(...options.ignores);
30
24
  overrides.push({
31
25
  files: ignores,
32
26
  options: {
33
- requirePragma: true
27
+ rangeEnd: 0
34
28
  }
35
29
  });
36
30
  }
package/dist/utils.js CHANGED
@@ -1,7 +1,7 @@
1
- import * as __WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__ from "node:path";
1
+ import * as __WEBPACK_EXTERNAL_MODULE_find_up_69e9ea2b__ from "find-up";
2
2
  import * as __WEBPACK_EXTERNAL_MODULE_make_synchronized_25569d3e__ from "make-synchronized";
3
+ import * as __WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__ from "node:path";
3
4
  import * as __WEBPACK_EXTERNAL_MODULE_prettier__ from "prettier";
4
- import * as __WEBPACK_EXTERNAL_MODULE_find_up_69e9ea2b__ from "find-up";
5
5
  const utils = (0, __WEBPACK_EXTERNAL_MODULE_make_synchronized_25569d3e__["default"])(import.meta, async (defaultConfig = {})=>{
6
6
  const configFile = await (0, __WEBPACK_EXTERNAL_MODULE_prettier__.resolveConfigFile)();
7
7
  if (configFile) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@esmate/prettier",
3
3
  "type": "module",
4
- "version": "1.0.6",
4
+ "version": "1.0.8",
5
5
  "description": "Prettier configuration for humans.",
6
6
  "license": "MIT",
7
7
  "repository": {
@@ -33,15 +33,17 @@
33
33
  "globby": "^14.1.0",
34
34
  "make-synchronized": "^0.7.2",
35
35
  "prettier-plugin-astro": "^0.14.1",
36
- "prettier-plugin-svelte": "^3.4.0",
37
- "prettier-plugin-tailwindcss": "^0.6.11"
36
+ "prettier-plugin-svelte": "^3.4.1",
37
+ "prettier-plugin-tailwindcss": "^0.6.14"
38
38
  },
39
39
  "devDependencies": {
40
+ "@esmate/eslint": "^1.2.2",
41
+ "@esmate/prettier": "^1.0.6",
40
42
  "@rslib/core": "^0.7.1",
41
- "@types/node": "^22.8.1",
42
- "eslint": "^9.27.0",
43
- "prettier": "^3.5.3",
44
- "typescript": "^5.8.3"
43
+ "@types/node": "^22.19.3",
44
+ "eslint": "^9.39.2",
45
+ "prettier": "^3.7.4",
46
+ "typescript": "^5.9.3"
45
47
  },
46
48
  "scripts": {
47
49
  "build": "rslib build",