@blockquote/create-wc 2.8.7 → 2.9.0

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": "@blockquote/create-wc",
3
- "version": "2.8.7",
3
+ "version": "2.9.0",
4
4
  "description": "Web component with Lit scaffolding - Extending Open Web Component",
5
5
  "keywords": [
6
6
  "Lit",
@@ -53,12 +53,12 @@
53
53
  "semver": "^7.7.4"
54
54
  },
55
55
  "devDependencies": {
56
- "@eslint/js": "^9.39.3",
56
+ "@eslint/js": "^9.39.4",
57
57
  "@open-wc/eslint-config": "^13.0.0",
58
- "eslint": "^9.39.3",
58
+ "eslint": "^9.39.4",
59
59
  "eslint-config-prettier": "^10.1.8",
60
60
  "prettier": "^3.8.1",
61
- "globals": "^17.3.0"
61
+ "globals": "^17.4.0"
62
62
  },
63
63
  "engines": {
64
64
  "node": ">=18.20.3"
@@ -68,20 +68,20 @@
68
68
  ]
69
69
  },
70
70
  "devDependencies": {
71
- "@eslint/js": "^9.39.3",
72
- "@html-eslint/eslint-plugin": "^0.57.1",
73
- "@html-eslint/parser": "^0.57.1",
74
- "eslint": "^9.39.3",
71
+ "@eslint/js": "^9.39.4",
72
+ "@html-eslint/eslint-plugin": "^0.58.1",
73
+ "@html-eslint/parser": "^0.58.1",
74
+ "eslint": "^9.39.4",
75
75
  "eslint-config-prettier": "^10.1.8",
76
76
  "eslint-plugin-html": "^8.1.4",
77
77
  "eslint-plugin-import": "^2.32.0",
78
78
  "eslint-plugin-lit": "^2.2.1",
79
79
  "eslint-plugin-lit-a11y": "^5.1.1",
80
80
  "eslint-plugin-wc": "^3.1.0",
81
- "typescript-eslint": "^8.56.1",
82
- "globals": "^17.3.0",
81
+ "typescript-eslint": "^8.57.0",
82
+ "globals": "^17.4.0",
83
83
  "husky": "^9.1.7",
84
- "lint-staged": "^16.3.0",
84
+ "lint-staged": "^16.4.0",
85
85
  "prettier": "^3.8.1",
86
86
  "stylelint": "^17.4.0",
87
87
  "stylelint-config-standard-scss": "^17.0.0"
@@ -43,6 +43,9 @@ const importFilesConfig = [importPlugin.recommended, importPlugin.typescript].ma
43
43
  languageOptions: {
44
44
  ...conf.languageOptions,
45
45
  parser: tsParser,
46
+ parserOptions: {
47
+ tsconfigRootDir: import.meta.dirname,
48
+ },
46
49
  },
47
50
  }));
48
51
 
@@ -146,6 +149,7 @@ const tsFilesConfig = [...tseslint.strict, ...tseslint.stylistic].map((conf) =>
146
149
  `*.conf.${fileTypes}`,
147
150
  ],
148
151
  },
152
+ tsconfigRootDir: import.meta.dirname,
149
153
  },
150
154
  },
151
155
  }),
@@ -29,7 +29,7 @@
29
29
  "devDependencies": {
30
30
  "@blockquote/cem-to-markdown-readme": "^1.0.0",
31
31
  "@blockquote/rollup-plugin-total-bundlesize": "^2.3.1",
32
- "@blockquote/sass-style-template": "^5.0.2",
32
+ "@blockquote/sass-style-template": "^5.1.0",
33
33
  "@custom-elements-manifest/analyzer": "^0.11.0",
34
34
  "@open-wc/semantic-dom-diff": "^0.20.1",
35
35
  "@open-wc/testing-helpers": "^3.0.1",
@@ -43,12 +43,12 @@
43
43
  "chai-a11y-axe": "^1.5.0",
44
44
  "concurrently": "^9.2.1",
45
45
  "sort-package-json": "^3.6.1",
46
- "@vitest/browser-playwright": "^4.0.18",
47
- "@vitest/coverage-istanbul": "^4.0.18",
48
- "@vitest/coverage-v8": "^4.0.18",
49
- "@vitest/ui": "^4.0.18",
50
- "vitest": "^4.0.18",
51
- "vite": "^7.3.1"
46
+ "@vitest/browser-playwright": "^4.1.0",
47
+ "@vitest/coverage-istanbul": "^4.1.0",
48
+ "@vitest/coverage-v8": "^4.1.0",
49
+ "@vitest/ui": "^4.1.0",
50
+ "vitest": "^4.1.0",
51
+ "vite": "^8.0.0"
52
52
  },
53
53
  "publishConfig": {
54
54
  "access": "public"
@@ -28,6 +28,7 @@ const entries = Object.fromEntries(
28
28
 
29
29
  // https://vitejs.dev/config/
30
30
  // https://vite-rollup-plugins.patak.dev/
31
+ // https://github.com/vitest-dev/vitest/commit/78b62ffe#diff-d3e264f3679867e205ed7eeb7622aa3b62bb0c4b1a4aa5a5983cb3aa118fcf3c
31
32
 
32
33
  export default defineConfig(({command}) => ({
33
34
  test: {
@@ -37,6 +38,7 @@ export default defineConfig(({command}) => ({
37
38
  }
38
39
  },
39
40
  include: ['test/**/*.{test,spec}.?(c|m)[jt]s?(x)'],
41
+ forceRerunTriggers: ['**/src/**/*.scss*'],
40
42
  browser: {
41
43
  enabled: true,
42
44
  headless: true,
@@ -60,7 +62,7 @@ export default defineConfig(({command}) => ({
60
62
  coverage: {
61
63
  provider: 'istanbul',
62
64
  reportsDirectory: 'test/coverage/',
63
- reporter: ['lcov', 'json', 'text-summary', 'html'],
65
+ reporter: ['lcov', 'json', 'text-summary'],
64
66
  enabled: true,
65
67
  thresholds: {
66
68
  statements: 80,
@@ -68,25 +70,28 @@ export default defineConfig(({command}) => ({
68
70
  functions: 80,
69
71
  lines: 80,
70
72
  },
71
- include: ['**/src/**/*'],
73
+ include: ['**/src/**/*.{js,ts}'],
72
74
  exclude: ['**/src/**/index.*', '**/src/styles/'],
73
75
  },
74
76
  },
75
- plugins: [...(command === 'build' ? [copy(copyConfig), totalBundlesize()] : [])],
77
+ plugins: [copy(copyConfig), totalBundlesize()],
76
78
  optimizeDeps: {
77
79
  exclude: ['lit', 'lit-html'],
78
80
  },
79
81
  build: {
80
- target: ['chrome71'],
81
82
  outDir: OUT_DIR,
82
- rollupOptions: {
83
+ rolldownOptions: {
83
84
  preserveEntrySignatures: 'exports-only',
85
+ transform: {
86
+ target: ['chrome71'],
87
+ },
84
88
  input: entries,
85
89
  output: {
86
90
  dir: OUT_DIR,
87
91
  entryFileNames: '[name].js',
88
92
  format: 'es',
89
93
  },
94
+ treeshake: true,
90
95
  },
91
96
  },
92
97
  }));
@@ -16,11 +16,25 @@ const entries = Object.fromEntries(
16
16
  export default defineConfig({
17
17
  plugins: [nodeExternals()],
18
18
  build: {
19
- target: ['es2022'],
19
+ rolldownOptions: {
20
+ transform: {
21
+ target: ['es2022'],
22
+ assumptions: {
23
+ setPublicClassFields: true,
24
+ },
25
+ typescript: {
26
+ removeClassFieldsWithoutInitializer: true,
27
+ },
28
+ decorator: {
29
+ legacy: true,
30
+ },
31
+ },
32
+ treeshake: true,
33
+ },
34
+ minify: false,
20
35
  lib: {
21
36
  entry: entries,
22
37
  formats: ['es'],
23
38
  },
24
- minify: false,
25
39
  },
26
40
  });