Skip to content

Commit faefab9

Browse files
committed
Fix publish workflow and Biome check issues
1 parent 12d67bf commit faefab9

22 files changed

Lines changed: 132 additions & 152 deletions

File tree

.changeset/config.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
{
22
"$schema": "https://unpkg.com/@changesets/config@2.3.1/schema.json",
3-
"changelog": [
4-
"@changesets/changelog-github",
5-
{ "repo": "yanthomasdev/lunaria" }
6-
],
3+
"changelog": ["@changesets/changelog-github", { "repo": "yanthomasdev/lunaria" }],
74

85
"commit": false,
96
"fixed": [],

.github/workflows/publish-preview.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,6 @@ jobs:
3131
run: pnpm i
3232

3333
- name: Build Packages
34-
run: pnpm run build
34+
run: pnpm run build:core
3535

36-
- run: pnpx pkg-pr-new publish --compact './packages/*'
36+
- run: pnpx pkg-pr-new publish --compact './packages/core'

biome.json

Lines changed: 51 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,53 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/1.8.3/schema.json",
3-
"organizeImports": {
4-
"enabled": true
5-
},
6-
"formatter": {
7-
"indentStyle": "tab",
8-
"indentWidth": 2,
9-
"lineWidth": 100,
10-
"formatWithErrors": true
11-
},
12-
"linter": {
13-
"enabled": true,
14-
"rules": {
15-
"recommended": true,
16-
"style": {
17-
"useNodejsImportProtocol": "error"
18-
}
19-
}
20-
},
21-
"javascript": {
22-
"formatter": {
23-
"trailingCommas": "all",
24-
"quoteStyle": "single",
25-
"semicolons": "always"
26-
}
27-
},
28-
"json": {
29-
"parser": {
30-
"allowComments": true,
31-
"allowTrailingCommas": true
32-
},
33-
"formatter": {
34-
"trailingCommas": "none"
35-
}
36-
},"vcs": {
37-
"clientKind": "git",
38-
"enabled": true,
39-
"useIgnoreFile": true
40-
},
41-
"overrides": [
42-
{
43-
"include": ["package.json"],
44-
"json": {
45-
"formatter": {
46-
"lineWidth": 1
47-
}
48-
}
49-
}
50-
]
2+
"$schema": "https://biomejs.dev/schemas/1.8.3/schema.json",
3+
"organizeImports": {
4+
"enabled": true
5+
},
6+
"formatter": {
7+
"indentStyle": "tab",
8+
"indentWidth": 2,
9+
"lineWidth": 100,
10+
"formatWithErrors": true
11+
},
12+
"linter": {
13+
"enabled": true,
14+
"rules": {
15+
"recommended": true,
16+
"style": {
17+
"useNodejsImportProtocol": "error"
18+
}
19+
}
20+
},
21+
"javascript": {
22+
"formatter": {
23+
"trailingCommas": "all",
24+
"quoteStyle": "single",
25+
"semicolons": "always"
26+
}
27+
},
28+
"json": {
29+
"parser": {
30+
"allowComments": true,
31+
"allowTrailingCommas": true
32+
},
33+
"formatter": {
34+
"indentStyle": "space",
35+
"trailingCommas": "none"
36+
}
37+
},
38+
"vcs": {
39+
"clientKind": "git",
40+
"enabled": true,
41+
"useIgnoreFile": true
42+
},
43+
"overrides": [
44+
{
45+
"include": ["package.json"],
46+
"json": {
47+
"formatter": {
48+
"lineWidth": 1
49+
}
50+
}
51+
}
52+
]
5153
}

docs/astro.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import starlight from '@astrojs/starlight';
22
import { defineConfig } from 'astro/config';
3-
import starlightLinksValidator from 'starlight-links-validator';
43
import starlightBlog from 'starlight-blog';
4+
import starlightLinksValidator from 'starlight-links-validator';
55

66
const site = 'https://lunaria.dev/';
77

docs/src/components/ShowcaseCard.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
2-
import type { ImageMetadata } from 'astro';
32
import { Image } from 'astro:assets';
3+
import type { ImageMetadata } from 'astro';
44
import MediaCard from './MediaCard.astro';
55
66
interface Props {
@@ -11,7 +11,7 @@ interface Props {
1111
const { href, title } = Astro.props;
1212
1313
const thumbnails = import.meta.glob<{ default: ImageMetadata }>(
14-
'../assets/showcase/*{.png,.jpg,.jpeg,.webp,.avif}'
14+
'../assets/showcase/*{.png,.jpg,.jpeg,.webp,.avif}',
1515
);
1616
const thumbnail = thumbnails[`../assets/showcase/${Astro.props.thumbnail}`];
1717
if (!thumbnail) {

docs/src/components/ShowcaseSites.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
2-
import Card from './ShowcaseCard.astro';
32
import FluidGrid from './FluidGrid.astro';
3+
import Card from './ShowcaseCard.astro';
44
---
55

66
<FluidGrid>

docs/src/content/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { docsSchema, i18nSchema } from '@astrojs/starlight/schema';
21
import { defineCollection } from 'astro:content';
2+
import { docsSchema, i18nSchema } from '@astrojs/starlight/schema';
33
import { blogSchema } from 'starlight-blog/schema';
44

55
export const collections = {

examples/nextra/theme.config.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { DocsThemeConfig } from 'nextra-theme-docs';
1+
import type { DocsThemeConfig } from 'nextra-theme-docs';
22

33
const config: DocsThemeConfig = {
44
logo: <span>My Project</span>,

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"license": "MIT",
66
"scripts": {
77
"build": "pnpm turbo build --filter=!lunaria-docs",
8-
"dev": "pnpm turbo dev --filter=!lunaria-docs",
8+
"build:core": "pnpm turbo build --filter=@lunariajs/core",
9+
"dev": "pnpm turbo dev --filter=lunaria-docs",
910
"test": "pnpm turbo test",
1011
"docs": "pnpm --filter lunaria-docs dev"
1112
},

packages/core/src/config/config.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import { ConfigNotFound } from '../errors/errors.js';
2-
import { LunariaConfigSchema } from './schema.js';
31
import * as find from 'empathic/find';
4-
import { moduleLoader } from '../files/loaders.js';
2+
import { ConfigNotFound } from '../errors/errors.js';
53
import { parseWithFriendlyErrors } from '../errors/index.js';
4+
import { moduleLoader } from '../files/loaders.js';
5+
import { LunariaConfigSchema } from './schema.js';
66
import type { LunariaConfig, LunariaUserConfig } from './types.js';
77

88
// Paths to search for the Lunaria config file,

0 commit comments

Comments
 (0)