+2
-2
.gitignore
+2
-2
.gitignore
+1
README.md
+1
README.md
+1
-1
lib/index.ts
+1
-1
lib/index.ts
···
1
1
// Master exporter for the AT React component library.
2
2
3
-
// Global styles - import this in your app root
4
3
import "./styles.css";
5
4
6
5
// Providers & core primitives
···
35
34
// Types
36
35
export * from "./types/bluesky";
37
36
export * from "./types/leaflet";
37
+
export * from "./types/theme";
38
38
39
39
// Utilities
40
40
export * from "./utils/at-uri";
lib/theme-type.ts
lib/types/theme.ts
lib/theme-type.ts
lib/types/theme.ts
+2
package.json
+2
package.json
+1
src/App.tsx
+1
src/App.tsx
+18
-2
vite.config.ts
+18
-2
vite.config.ts
···
18
18
};
19
19
}
20
20
21
+
const buildDemo = process.env.BUILD_TARGET === 'demo';
22
+
21
23
// https://vite.dev/config/
22
24
export default defineConfig({
23
-
plugins: [react(), dts({ tsconfigPath: './tsconfig.lib.json' }), injectCssImport()],
24
-
build: {
25
+
plugins: buildDemo
26
+
? [react()]
27
+
: [react(), dts({ tsconfigPath: './tsconfig.lib.json' }), injectCssImport()],
28
+
29
+
// Demo app needs to resolve from src
30
+
root: buildDemo ? '.' : undefined,
31
+
32
+
build: buildDemo ? {
33
+
// Demo app build configuration
34
+
outDir: 'demo',
35
+
rollupOptions: {
36
+
input: resolve(__dirname, 'index.html')
37
+
},
38
+
sourcemap: true
39
+
} : {
40
+
// Library build configuration
25
41
lib: {
26
42
entry: resolve(__dirname, 'lib/index.ts'),
27
43
name: 'atproto-ui',