Skip to content

Commit ce88e51

Browse files
authored
build: use workspace version in template projects (#3338)
1 parent b215616 commit ce88e51

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+1533
-19457
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,3 +309,6 @@ vite.config.mts.timestamp-*
309309

310310
# Claude
311311
*.prompt.md
312+
313+
# Solid Start
314+
.vinxi

bun.lock

Lines changed: 1349 additions & 732 deletions
Large diffs are not rendered by default.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"private": true,
55
"workspaces": [
66
"packages/*",
7+
"templates/**",
78
"scripts",
89
"website"
910
],

packages/react/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"name": "@ark-ui/react",
3+
"type": "module",
34
"version": "4.9.2",
45
"description": "A collection of unstyled, accessible UI components for React, utilizing state machines for seamless interaction.",
56
"keywords": [
@@ -53,13 +54,12 @@
5354
"bugs": {
5455
"url": "https://github.com/chakra-ui/ark/issues"
5556
},
56-
"type": "module",
5757
"files": [
5858
"dist"
5959
],
6060
"exports": {
6161
".": "./src/index.ts",
62-
"./anatomy": "./src/components/anatomy/anatomy.ts",
62+
"./anatomy": "./src/components/anatomy.ts",
6363
"./collection": "./src/components/collection.ts",
6464
"./environment": "./src/providers/environment/index.ts",
6565
"./factory": "./src/components/factory.ts",

packages/solid/package.json

Lines changed: 8 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"name": "@ark-ui/solid",
3+
"type": "module",
34
"version": "4.10.2",
45
"description": "A collection of unstyled, accessible UI components for Solid, utilizing state machines for seamless interaction.",
56
"keywords": [
@@ -52,56 +53,17 @@
5253
"bugs": {
5354
"url": "https://github.com/chakra-ui/ark/issues"
5455
},
55-
"type": "module",
56-
"main": "dist/index.js",
57-
"module": "dist/index.js",
58-
"types": "dist/index.d.ts",
5956
"files": [
6057
"dist"
6158
],
6259
"exports": {
63-
".": {
64-
"source": "./src/index.tsx",
65-
"types": "./dist/index.d.ts",
66-
"solid": "./dist/index.jsx",
67-
"default": "./dist/index.js"
68-
},
69-
"./anatomy": {
70-
"source": "./src/components/anatomy.ts",
71-
"types": "./dist/components/anatomy.d.ts",
72-
"solid": "./dist/components/anatomy.jsx",
73-
"default": "./dist/components/anatomy.js"
74-
},
75-
"./collection": {
76-
"source": "./src/components/collection.ts",
77-
"types": "./dist/components/collection.d.ts",
78-
"solid": "./dist/components/collection.jsx",
79-
"default": "./dist/components/collection.js"
80-
},
81-
"./factory": {
82-
"source": "./src/components/factory.tsx",
83-
"types": "./dist/components/factory.d.ts",
84-
"solid": "./dist/components/factory.jsx",
85-
"default": "./dist/components/factory.js"
86-
},
87-
"./environment": {
88-
"source": "./src/providers/environment/index.tsx",
89-
"types": "./dist/providers/environment/index.d.ts",
90-
"solid": "./dist/providers/environment/index.jsx",
91-
"default": "./dist/providers/environment/index.js"
92-
},
93-
"./locale": {
94-
"source": "./src/providers/locale/index.tsx",
95-
"types": "./dist/providers/locale/index.d.ts",
96-
"solid": "./dist/providers/locale/index.jsx",
97-
"default": "./dist/providers/locale/index.js"
98-
},
99-
"./*": {
100-
"source": "./src/components/*/index.tsx",
101-
"types": "./dist/components/*/index.d.ts",
102-
"solid": "./dist/components/*/index.jsx",
103-
"default": "./dist/components/*/index.js"
104-
}
60+
".": "./src/index.tsx",
61+
"./anatomy": "./src/components/anatomy.ts",
62+
"./collection": "./src/components/collection.ts",
63+
"./environment": "./src/providers/environment/index.tsx",
64+
"./factory": "./src/components/factory.tsx",
65+
"./locale": "./src/providers/locale/index.tsx",
66+
"./*": "./src/components/*/index.tsx"
10567
},
10668
"scripts": {
10769
"build": "NODE_OPTIONS=\"--max-old-space-size=8192\" tsup",
@@ -115,17 +77,6 @@
11577
"prepack": "clean-package",
11678
"postpack": "clean-package restore"
11779
},
118-
"clean-package": {
119-
"remove": [
120-
"exports.\\..source",
121-
"exports.\\./anatomy.source",
122-
"exports.\\./collection.source",
123-
"exports.\\./factory.source",
124-
"exports.\\./environment.source",
125-
"exports.\\./locale.source",
126-
"exports.\\./*.source"
127-
]
128-
},
12980
"publishConfig": {
13081
"access": "public"
13182
},

packages/svelte/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ description: All notable changes will be documented in this file.
66

77
## [Unreleased]
88

9-
### Change
9+
### Changed
1010

1111
- Replaced custom ID generator with `$props.id()` rune.
1212

packages/tsconfig.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
"noPropertyAccessFromIndexSignature": true,
2121
"noUnusedLocals": true,
2222
"noUnusedParameters": true,
23-
"customConditions": ["source"],
2423
"types": ["vitest/globals"]
2524
}
2625
}

packages/vue/package.json

Lines changed: 8 additions & 92 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"name": "@ark-ui/vue",
3+
"type": "module",
34
"version": "4.9.2",
45
"description": "A collection of unstyled, accessible UI components for Vue, utilizing state machines for seamless interaction.",
56
"keywords": [
@@ -52,91 +53,17 @@
5253
"bugs": {
5354
"url": "https://github.com/chakra-ui/ark/issues"
5455
},
55-
"type": "module",
56-
"main": "dist/index.cjs",
57-
"module": "dist/index.js",
58-
"types": "dist/index.d.ts",
5956
"files": [
6057
"dist"
6158
],
6259
"exports": {
63-
".": {
64-
"source": "./src/index.ts",
65-
"import": {
66-
"types": "./dist/index.d.ts",
67-
"default": "./dist/index.js"
68-
},
69-
"require": {
70-
"types": "./dist/index.d.cts",
71-
"default": "./dist/index.cjs"
72-
}
73-
},
74-
"./anatomy": {
75-
"source": "./src/components/anatomy.ts",
76-
"import": {
77-
"types": "./dist/components/anatomy.d.ts",
78-
"default": "./dist/components/anatomy.js"
79-
},
80-
"require": {
81-
"types": "./dist/components/anatomy.d.cts",
82-
"default": "./dist/components/anatomy.cjs"
83-
}
84-
},
85-
"./collection": {
86-
"source": "./src/components/collection.ts",
87-
"import": {
88-
"types": "./dist/components/collection.d.ts",
89-
"default": "./dist/components/collection.js"
90-
},
91-
"require": {
92-
"types": "./dist/components/collection.d.cts",
93-
"default": "./dist/components/collection.cjs"
94-
}
95-
},
96-
"./factory": {
97-
"source": "./src/components/factory.ts",
98-
"import": {
99-
"types": "./dist/components/factory.d.ts",
100-
"default": "./dist/components/factory.js"
101-
},
102-
"require": {
103-
"types": "./dist/components/factory.d.cts",
104-
"default": "./dist/components/factory.cjs"
105-
}
106-
},
107-
"./environment": {
108-
"source": "./src/providers/environment/index.ts",
109-
"import": {
110-
"types": "./dist/providers/environment/index.d.ts",
111-
"default": "./dist/providers/environment/index.js"
112-
},
113-
"require": {
114-
"types": "./dist/providers/environment/index.d.cts",
115-
"default": "./dist/providers/environment/index.cjs"
116-
}
117-
},
118-
"./locale": {
119-
"source": "./src/providers/locale/index.ts",
120-
"import": {
121-
"types": "./dist/providers/locale/index.d.ts",
122-
"default": "./dist/providers/locale/index.js"
123-
},
124-
"require": {
125-
"types": "./dist/providers/locale/index.d.cts",
126-
"default": "./dist/providers/locale/index.cjs"
127-
}
128-
},
129-
"./*": {
130-
"source": "./src/components/*/index.ts",
131-
"import": {
132-
"types": "./dist/components/*/index.d.ts",
133-
"default": "./dist/components/*/index.js"
134-
},
135-
"require": {
136-
"types": "./dist/components/*/index.d.cts",
137-
"default": "./dist/components/*/index.cjs"
138-
}
139-
}
60+
".": "./src/index.ts",
61+
"./anatomy": "./src/components/anatomy.ts",
62+
"./collection": "./src/components/collection.ts",
63+
"./environment": "./src/providers/environment/index.ts",
64+
"./factory": "./src/components/factory.ts",
65+
"./locale": "./src/providers/locale/index.ts",
66+
"./*": "./src/components/*/index.ts"
14067
},
14168
"scripts": {
14269
"build": "vite build",
@@ -150,17 +77,6 @@
15077
"prepack": "clean-package",
15178
"postpack": "clean-package restore"
15279
},
153-
"clean-package": {
154-
"remove": [
155-
"exports.\\..source",
156-
"exports.\\./anatomy.source",
157-
"exports.\\./collection.source",
158-
"exports.\\./factory.source",
159-
"exports.\\./environment.source",
160-
"exports.\\./locale.source",
161-
"exports.\\./*.source"
162-
]
163-
},
16480
"publishConfig": {
16581
"access": "public"
16682
},

renovate.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,5 @@
2929
"matchPackagePrefixes": ["lucide"]
3030
}
3131
],
32-
"ignoreDeps": ["@types/node", "@ark-ui/solid"],
33-
"ignorePaths": ["templates/**"]
32+
"ignoreDeps": ["@types/node", "@ark-ui/solid"]
3433
}

templates/react/next-js/.eslintrc.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

templates/react/next-js/.gitignore

Lines changed: 0 additions & 36 deletions
This file was deleted.

templates/react/next-js/README.md

Lines changed: 42 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,42 @@
1-
# Ark UI | Next.js Template
1+
This is a [Next.js](https://nextjs.org) project bootstrapped with
2+
[`create-next-app`](https://nextjs.org/docs/app/api-reference/cli/create-next-app).
3+
4+
## Getting Started
5+
6+
First, run the development server:
7+
8+
```bash
9+
npm run dev
10+
# or
11+
yarn dev
12+
# or
13+
pnpm dev
14+
# or
15+
bun dev
16+
```
17+
18+
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
19+
20+
You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.
21+
22+
This project uses [`next/font`](https://nextjs.org/docs/app/building-your-application/optimizing/fonts) to automatically
23+
optimize and load [Geist](https://vercel.com/font), a new font family for Vercel.
24+
25+
## Learn More
26+
27+
To learn more about Next.js, take a look at the following resources:
28+
29+
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
30+
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
31+
32+
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js) - your feedback and contributions
33+
are welcome!
34+
35+
## Deploy on Vercel
36+
37+
The easiest way to deploy your Next.js app is to use the
38+
[Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme)
39+
from the creators of Next.js.
40+
41+
Check out our [Next.js deployment documentation](https://nextjs.org/docs/app/building-your-application/deploying) for
42+
more details.

templates/react/next-js/next-env.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/// <reference types="next" />
2+
/// <reference types="next/image-types/global" />
3+
4+
// NOTE: This file should not be edited
5+
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.

templates/react/next-js/next.config.js

Lines changed: 0 additions & 4 deletions
This file was deleted.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import type { NextConfig } from 'next'
2+
3+
const nextConfig: NextConfig = {
4+
/* config options here */
5+
}
6+
7+
export default nextConfig

0 commit comments

Comments
 (0)