@lionstone-digital/prettier-config-shopify 0.0.2 → 0.0.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lionstone-digital/prettier-config-shopify",
3
- "version": "0.0.2",
3
+ "version": "0.0.4",
4
4
  "description": "Helpful prettier config for projects with Shopify theme",
5
5
  "keywords": [
6
6
  "prettier",
@@ -15,17 +15,17 @@
15
15
  },
16
16
  "license": "MIT",
17
17
  "author": "Frederick Chan",
18
- "type": "module",
19
18
  "exports": {
20
- ".": "./src/index.js"
19
+ ".": "./src/index.cjs"
21
20
  },
22
- "main": "src/index.js",
21
+ "main": "src/index.cjs",
23
22
  "files": [
24
23
  "src"
25
24
  ],
26
25
  "dependencies": {
27
26
  "@shopify/prettier-plugin-liquid": "^1.9.3",
28
- "@lionstone-digital/prettier-config-tailwind": "0.0.2"
27
+ "vue-tsc": "^3.0.1",
28
+ "@lionstone-digital/prettier-config-tailwind": "0.0.3"
29
29
  },
30
30
  "peerDependencies": {
31
31
  "prettier": ">= 3.6.1",
package/src/index.cjs ADDED
@@ -0,0 +1,15 @@
1
+ const prettierConfigTailwind = require('@lionstone-digital/prettier-config-tailwind')
2
+
3
+ module.exports = {
4
+ ...prettierConfigTailwind,
5
+ plugins: [...prettierConfigTailwind.plugins, require.resolve('@shopify/prettier-plugin-liquid')],
6
+ overrides: [
7
+ ...prettierConfigTailwind.overrides,
8
+ {
9
+ files: ['**/*.liquid'],
10
+ options: {
11
+ singleQuote: false
12
+ }
13
+ }
14
+ ]
15
+ }
package/src/index.js DELETED
@@ -1,15 +0,0 @@
1
- import prettierConfigTailwind from '@lionstone-digital/prettier-config-tailwind'
2
- import prettierLiquidPlugin from '@shopify/prettier-plugin-liquid'
3
-
4
- export default {
5
- ...prettierConfigTailwind,
6
- plugins: [...prettierConfigTailwind.plugins, prettierLiquidPlugin],
7
- overrides: [
8
- {
9
- files: ['**/*.css', '**/*.html', '**/*.liquid'],
10
- options: {
11
- singleQuote: false
12
- }
13
- }
14
- ]
15
- }