Skip to content

Commit 9fbef3c

Browse files
use latest tsdown 0.16.4 (#573)
* chore(deps): update tsdown to v0.16.4 * fix: mark fixedExtensions explicitly * chore: ignore postcss-html * changeset * mjs * chore: update snapshot (github-actions) --------- Co-authored-by: robo-miku[bot] <185786754+robo-miku[bot]@users.noreply.github.com>
1 parent b7aa0ff commit 9fbef3c

File tree

11 files changed

+228
-148
lines changed

11 files changed

+228
-148
lines changed

.changeset/loud-falcons-behave.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
"@virtual-live-lab/stylelint-config": patch
3+
"@virtual-live-lab/prettier-config": patch
4+
"@virtual-live-lab/eslint-config": patch
5+
---
6+
7+
build: align to tsdown 0.16.4

packages/eslint-config/package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,21 @@
33
"version": "2.3.1",
44
"description": "ESLint configuration for Virtual Live Lab",
55
"type": "module",
6-
"main": "./dist/index.js",
7-
"module": "./dist/index.js",
8-
"types": "./dist/index.d.ts",
6+
"main": "./dist/index.mjs",
7+
"module": "./dist/index.mjs",
8+
"types": "./dist/index.d.mts",
99
"exports": {
1010
".": {
11-
"types": "./dist/index.d.ts",
12-
"import": "./dist/index.js"
11+
"types": "./dist/index.d.mts",
12+
"import": "./dist/index.mjs"
1313
},
1414
"./addons/*": {
15-
"types": "./dist/addons/*.d.ts",
16-
"import": "./dist/addons/*.js"
15+
"types": "./dist/addons/*.d.mts",
16+
"import": "./dist/addons/*.mjs"
1717
},
1818
"./presets/*": {
19-
"types": "./dist/presets/*.d.ts",
20-
"import": "./dist/presets/*.js"
19+
"types": "./dist/presets/*.d.mts",
20+
"import": "./dist/presets/*.mjs"
2121
}
2222
},
2323
"files": [

packages/eslint-config/tsdown.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ export default defineConfig({
66
entry: ["./src/index.ts", "./src/addons/**/*.ts", "./src/presets/**/*.ts"],
77
format: "esm",
88
minify: "dce-only",
9+
fixedExtension: true,
910
nodeProtocol: true,
1011
outDir: "dist",
1112
publint: true,

packages/prettier-config/package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@
33
"version": "2.0.22",
44
"description": "Prettier configuration for Virtual Live Lab",
55
"type": "module",
6-
"main": "./dist/index.js",
7-
"module": "./dist/index.js",
8-
"types": "./dist/index.d.ts",
6+
"main": "./dist/index.mjs",
7+
"module": "./dist/index.mjs",
8+
"types": "./dist/index.d.mts",
99
"exports": {
1010
".": {
11-
"types": "./dist/index.d.ts",
12-
"import": "./dist/index.js"
11+
"types": "./dist/index.d.mts",
12+
"import": "./dist/index.mjs"
1313
},
1414
"./astro": {
15-
"types": "./dist/astro.d.ts",
16-
"import": "./dist/astro.js"
15+
"types": "./dist/astro.d.mts",
16+
"import": "./dist/astro.mjs"
1717
}
1818
},
1919
"files": [

packages/prettier-config/test/snapshot.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ describe("Test Prettier config with snapshot", () => {
55
describe("normal preset", () => {
66
it("matches snapshot", async () => {
77
const options = await prettier.resolveConfig("index.ts", {
8-
config: `${import.meta.dirname}/../dist/index.js`,
8+
config: `${import.meta.dirname}/../dist/index.mjs`,
99
});
1010

1111
expect(options).toMatchSnapshot();
@@ -15,15 +15,15 @@ describe("Test Prettier config with snapshot", () => {
1515
describe("astro preset", () => {
1616
it("matches snapshot with normal file", async () => {
1717
const options = await prettier.resolveConfig("index.ts", {
18-
config: `${import.meta.dirname}/../dist/astro.js`,
18+
config: `${import.meta.dirname}/../dist/astro.mjs`,
1919
});
2020

2121
expect(options).toMatchSnapshot();
2222
});
2323

2424
it("matches snapshot with astro file", async () => {
2525
const options = await prettier.resolveConfig("index.astro", {
26-
config: `${import.meta.dirname}/../dist/astro.js`,
26+
config: `${import.meta.dirname}/../dist/astro.mjs`,
2727
});
2828

2929
expect(options).toMatchSnapshot();

packages/prettier-config/tsdown.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ export default defineConfig({
88
minify: "dce-only",
99
nodeProtocol: true,
1010
outDir: "dist",
11+
fixedExtension: true,
1112
publint: true,
1213
unused: true,
1314
});

packages/stylelint-config/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
"version": "4.0.1",
44
"description": "Stylelint configuration for Virtual Live Lab",
55
"type": "module",
6-
"main": "./dist/index.js",
7-
"module": "./dist/index.js",
8-
"types": "./dist/index.d.ts",
6+
"main": "./dist/index.mjs",
7+
"module": "./dist/index.mjs",
8+
"types": "./dist/index.d.mts",
99
"exports": {
1010
".": {
11-
"types": "./dist/index.d.ts",
12-
"import": "./dist/index.js"
11+
"types": "./dist/index.d.mts",
12+
"import": "./dist/index.mjs"
1313
}
1414
},
1515
"files": [

packages/stylelint-config/test/__snapshots__/snapshot.test.ts.snap

Lines changed: 36 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ exports[`Test stylelint preset with snapshot > astro preset > should match snaps
249249
},
250250
],
251251
"layer-name-pattern": [
252-
"^([a-z][a-z0-9]*)(-[a-z0-9]+)*$",
252+
"^([a-z][a-z0-9]*)([.-][a-z0-9]+)*$",
253253
{
254254
"message": [Function],
255255
},
@@ -533,6 +533,9 @@ exports[`Test stylelint preset with snapshot > astro preset > should match snaps
533533
},
534534
{
535535
"properties": [
536+
"base-palette",
537+
"override-colors",
538+
"font-palette",
536539
"color",
537540
"-webkit-text-fill-color",
538541
"-webkit-text-stroke",
@@ -550,12 +553,17 @@ exports[`Test stylelint preset with snapshot > astro preset > should match snaps
550553
"word-spacing",
551554
"letter-spacing",
552555
"hyphens",
556+
"hyphenate-character",
557+
"line-break",
553558
"word-break",
554559
"text-wrap",
560+
"text-wrap-mode",
561+
"text-wrap-style",
555562
"word-wrap",
556563
"overflow-wrap",
557564
"tab-size",
558565
"white-space",
566+
"white-space-collapse",
559567
],
560568
},
561569
{
@@ -842,12 +850,15 @@ exports[`Test stylelint preset with snapshot > astro preset > should match snaps
842850
"flood-color",
843851
"flood-opacity",
844852
"lighting-color",
853+
"marker",
845854
"marker-start",
846855
"marker-mid",
847856
"marker-end",
848857
"stop-color",
849858
"stop-opacity",
859+
"paint-order",
850860
"shape-rendering",
861+
"text-rendering",
851862
],
852863
},
853864
{
@@ -1264,7 +1275,7 @@ exports[`Test stylelint preset with snapshot > astro preset > should match snaps
12641275
},
12651276
],
12661277
"layer-name-pattern": [
1267-
"^([a-z][a-z0-9]*)(-[a-z0-9]+)*$",
1278+
"^([a-z][a-z0-9]*)([.-][a-z0-9]+)*$",
12681279
{
12691280
"message": [Function],
12701281
},
@@ -1548,6 +1559,9 @@ exports[`Test stylelint preset with snapshot > astro preset > should match snaps
15481559
},
15491560
{
15501561
"properties": [
1562+
"base-palette",
1563+
"override-colors",
1564+
"font-palette",
15511565
"color",
15521566
"-webkit-text-fill-color",
15531567
"-webkit-text-stroke",
@@ -1565,12 +1579,17 @@ exports[`Test stylelint preset with snapshot > astro preset > should match snaps
15651579
"word-spacing",
15661580
"letter-spacing",
15671581
"hyphens",
1582+
"hyphenate-character",
1583+
"line-break",
15681584
"word-break",
15691585
"text-wrap",
1586+
"text-wrap-mode",
1587+
"text-wrap-style",
15701588
"word-wrap",
15711589
"overflow-wrap",
15721590
"tab-size",
15731591
"white-space",
1592+
"white-space-collapse",
15741593
],
15751594
},
15761595
{
@@ -1857,12 +1876,15 @@ exports[`Test stylelint preset with snapshot > astro preset > should match snaps
18571876
"flood-color",
18581877
"flood-opacity",
18591878
"lighting-color",
1879+
"marker",
18601880
"marker-start",
18611881
"marker-mid",
18621882
"marker-end",
18631883
"stop-color",
18641884
"stop-opacity",
1885+
"paint-order",
18651886
"shape-rendering",
1887+
"text-rendering",
18661888
],
18671889
},
18681890
{
@@ -2279,7 +2301,7 @@ exports[`Test stylelint preset with snapshot > normal preset > should match snap
22792301
},
22802302
],
22812303
"layer-name-pattern": [
2282-
"^([a-z][a-z0-9]*)(-[a-z0-9]+)*$",
2304+
"^([a-z][a-z0-9]*)([.-][a-z0-9]+)*$",
22832305
{
22842306
"message": [Function],
22852307
},
@@ -2563,6 +2585,9 @@ exports[`Test stylelint preset with snapshot > normal preset > should match snap
25632585
},
25642586
{
25652587
"properties": [
2588+
"base-palette",
2589+
"override-colors",
2590+
"font-palette",
25662591
"color",
25672592
"-webkit-text-fill-color",
25682593
"-webkit-text-stroke",
@@ -2580,12 +2605,17 @@ exports[`Test stylelint preset with snapshot > normal preset > should match snap
25802605
"word-spacing",
25812606
"letter-spacing",
25822607
"hyphens",
2608+
"hyphenate-character",
2609+
"line-break",
25832610
"word-break",
25842611
"text-wrap",
2612+
"text-wrap-mode",
2613+
"text-wrap-style",
25852614
"word-wrap",
25862615
"overflow-wrap",
25872616
"tab-size",
25882617
"white-space",
2618+
"white-space-collapse",
25892619
],
25902620
},
25912621
{
@@ -2872,12 +2902,15 @@ exports[`Test stylelint preset with snapshot > normal preset > should match snap
28722902
"flood-color",
28732903
"flood-opacity",
28742904
"lighting-color",
2905+
"marker",
28752906
"marker-start",
28762907
"marker-mid",
28772908
"marker-end",
28782909
"stop-color",
28792910
"stop-opacity",
2911+
"paint-order",
28802912
"shape-rendering",
2913+
"text-rendering",
28812914
],
28822915
},
28832916
{

packages/stylelint-config/tsdown.config.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,12 @@ export default defineConfig({
66
entry: ["./src/index.ts", "./src/astro.ts"],
77
format: "esm",
88
minify: "dce-only",
9+
fixedExtension: true,
910
nodeProtocol: true,
1011
outDir: "dist",
1112
publint: true,
12-
unused: true,
13+
unused: {
14+
// Required by stylelint-config-html
15+
ignore: ["postcss-html"],
16+
},
1317
});

0 commit comments

Comments
 (0)