Skip to content

Commit

Permalink
Convert to pnpm workspace (pacocoursey#18)
Browse files Browse the repository at this point in the history
* convert to pnpm workspace

* update website build script to build cmdk first

* oops fix typo

* remove readme simlink, just copy it before publishing
  • Loading branch information
pacocoursey authored Aug 8, 2022
1 parent 61168ee commit a46b392
Show file tree
Hide file tree
Showing 11 changed files with 222 additions and 238 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<p align="center">
<img src="./website/public/og.png" />
<img src="./website/public/og.png" />
</p>

# ⌘K ![cmdk minzip package size](https://img.shields.io/bundlephobia/minzip/cmdk) ![cmdk package version](https://img.shields.io/npm/v/cmdk.svg?colorB=green)
Expand Down
28 changes: 28 additions & 0 deletions cmdk/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"name": "cmdk",
"version": "0.1.16",
"license": "MIT",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"files": [
"dist"
],
"scripts": {
"prepublishOnly": "cp ../README.md . && pnpm build",
"postpublish": "rm README.md",
"build": "tsup src",
"dev": "tsup src --watch"
},
"peerDependencies": {
"react": "^18.0.0",
"react-dom": "^18.0.0"
},
"dependencies": {
"@radix-ui/react-dialog": "0.1.7",
"command-score": "0.1.2"
},
"devDependencies": {
"@types/react": "18.0.15"
}
}
File renamed without changes.
1 change: 0 additions & 1 deletion tsup.config.ts → cmdk/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ export default defineConfig({
sourcemap: false,
minify: true,
dts: true,
splitting: true,
format: ['esm', 'cjs'],
loader: {
'.js': 'jsx',
Expand Down
31 changes: 9 additions & 22 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,29 +1,16 @@
{
"name": "cmdk",
"version": "0.1.16",
"license": "MIT",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"files": [
"dist"
],
"name": "cmdk-root",
"private": true,
"scripts": {
"prepublishOnly": "pnpm build",
"build": "tsup src",
"dev": "tsup src --watch",
"build": "pnpm -F cmdk build",
"website": "pnpm -F cmdk-website dev",
"testsite": "pnpm -F cmdk-tests dev",
"test": "playwright test"
},
"peerDependencies": {
"react": "^18.0.0",
"react-dom": "^18.0.0"
},
"dependencies": {
"@radix-ui/react-dialog": "0.1.7",
"command-score": "0.1.2"
},
"devDependencies": {
"@playwright/test": "1.24.1",
"tsup": "6.2.1"
}
"tsup": "5.12.1",
"typescript": "4.6.4"
},
"packageManager": "[email protected]"
}
Loading

0 comments on commit a46b392

Please sign in to comment.