Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
mrjvs committed Mar 17, 2024
2 parents 2fad26f + 64c6a5b commit 2cf0d99
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 6 deletions.
3 changes: 2 additions & 1 deletion apps/docs/theme.config.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {
site,
siteTemplate,
social,
type SiteComponent,
} from '@neato/guider/theme';
import { Logo } from 'components/logo';

Expand Down Expand Up @@ -266,4 +267,4 @@ export default defineTheme([
}),
],
}),
]);
]) satisfies SiteComponent[];
4 changes: 3 additions & 1 deletion apps/docs/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
"noEmit": true,
"incremental": true,
"resolveJsonModule": true,
"jsx": "preserve"
"jsx": "preserve",
"moduleResolution": "Bundler",
"module": "esnext"
},
"include": [
"."
Expand Down
3 changes: 2 additions & 1 deletion examples/guider/kitchen-sink/theme.config.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {
link,
seperator,
site,
type SiteComponent,
} from '@neato/guider/theme';

const siteTemplate = site('docs', {
Expand Down Expand Up @@ -112,4 +113,4 @@ export default defineTheme([
}),
],
}),
]);
]) satisfies SiteComponent[];
4 changes: 3 additions & 1 deletion examples/guider/kitchen-sink/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
"noEmit": true,
"incremental": true,
"resolveJsonModule": true,
"jsx": "preserve"
"jsx": "preserve",
"moduleResolution": "Bundler",
"module": "esnext"
},
"include": [
"."
Expand Down
2 changes: 1 addition & 1 deletion examples/guider/minimal/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"incremental": true,
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "node",
"moduleResolution": "Bundler",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve"
Expand Down
2 changes: 1 addition & 1 deletion packages/guider/src/theme.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export * from './theme/index';
export * from './theme/components/index';
export * from './theme/types';
export type * from './theme/types';
2 changes: 2 additions & 0 deletions packages/guider/src/theme/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { site, type SiteComponent } from './components/site';
import type { GuiderConfig } from './types';

export { type SiteComponent } from './components/site';

export function defineTheme(obj: GuiderConfig): SiteComponent[] {
let sites: SiteComponent[] = [];
if (!Array.isArray(obj)) sites = [site('main', obj)];
Expand Down
1 change: 1 addition & 0 deletions packages/guider/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@
"jsx": "react-jsx",
"module": "ES2022",
"moduleResolution": "Bundler",
"baseUrl": "."
}
}
3 changes: 3 additions & 0 deletions packages/guider/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,15 @@ export default defineConfig([
format: ['esm'],
outExtension: () => ({ js: '.js', dts: '.d.ts' }),
dts: true,
bundle: true,
external: ['@neato/guider', '@neato/guider/shim.guider.virtual'],
},
{
name: 'guider-loader',
entry: ['src/loader.ts'],
format: ['esm'],
outExtension: () => ({ js: '.js', dts: '.d.ts' }),
bundle: true,
dts: true,
external: ['@neato/guider', '@neato/guider/shim.guider.virtual'],
},
Expand All @@ -22,6 +24,7 @@ export default defineConfig([
entry: ['src/client.ts', 'src/theme.ts'],
format: ['esm'],
outExtension: () => ({ js: '.js', dts: '.d.ts' }),
bundle: true,
dts: true,
external: ['@neato/guider', '@neato/guider/shim.guider.virtual'],
},
Expand Down

0 comments on commit 2cf0d99

Please sign in to comment.