Skip to content

Commit

Permalink
chore: switch to pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
nonzzz committed Apr 17, 2024
1 parent 29ff204 commit 75e99d3
Show file tree
Hide file tree
Showing 15 changed files with 4,519 additions and 5,449 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
with:
node-version: 20.5.1
- name: Install Dependices
run: yarn install
run: pnpm install

- name: Run Test
run: yarn test
run: pnpm test
Binary file removed .yarn/install-state.gz
Binary file not shown.
15 changes: 0 additions & 15 deletions .yarnrc.yml

This file was deleted.

4 changes: 2 additions & 2 deletions internal/vite-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"types": "dist/index.d.ts",
"module": "dist/index.js",
"scripts": {
"build": "yarn run -T tsup",
"dev": "yarn run -T tsup --watch"
"build": "tsup",
"dev": "tsup --watch"
},
"dependencies": {
"@babel/core": "^7.23.9",
Expand Down
12 changes: 1 addition & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,11 @@
"name": "stylex-extend",
"description": "An unofficial stylexjs extension",
"scripts": {
"preinstall": "node ./scripts/yarn.js",
"test": "yarn workspaces foreach --all run test",
"build": "yarn build:babel-plugin && yarn build:shared",
"build:babel-plugin": "yarn workspace @stylex-extend/babel-plugin run build",
"build:shared": "yarn workspace @stylex-extend/shared run build"
"test": "pnpm -r run test"
},
"workspaces": [
"packages/*",
"examples/*",
"internal/*"
],
"keywords": [],
"author": "kanno",
"license": "MIT",
"packageManager": "[email protected]",
"devDependencies": {
"@stylex-extend/babel-plugin": "workspace:*",
"@stylex-extend/core": "workspace:*",
Expand Down
8 changes: 4 additions & 4 deletions packages/babel-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"scripts": {
"test": "yarn run -T vitest",
"dev": "yarn run -T tsup --watch",
"build": "yarn run -T tsup"
"test": "vitest",
"dev": "tsup --watch",
"build": "tsup"
},
"license": "MIT",
"exports": {
Expand All @@ -20,7 +20,7 @@
"./*": "./*"
},
"devDependencies": {
"@stylex-extend/react": "0.1.3",
"@stylex-extend/react": "workspace:*",
"@types/babel__core": "^7.20.5",
"@types/stylis": "^4.2.5",
"babel-plugin-tester": "^11.0.4"
Expand Down
4 changes: 2 additions & 2 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
"version": "0.1.3",
"license": "MIT",
"scripts": {
"build": "yarn run -T tsup"
"build": "tsup"
},
"dependencies": {
"@stylex-extend/shared": "0.1.3"
"@stylex-extend/shared": "workspace:*"
}
}
2 changes: 1 addition & 1 deletion packages/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"@types/react": "^18.2.69"
},
"dependencies": {
"@stylex-extend/shared": "0.1.3"
"@stylex-extend/shared": "workspace:*"
},
"exports": {
".": "./src/index.js",
Expand Down
4 changes: 2 additions & 2 deletions packages/shared/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
"README.md"
],
"scripts": {
"dev": "yarn run -T tsup --watch",
"build": "yarn run -T tsup"
"dev": "tsup --watch",
"build": "tsup"
},
"dependencies": {
"csstype": "^3.1.3"
Expand Down
3 changes: 1 addition & 2 deletions packages/shared/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,5 @@ export default defineConfig({
entry: ['src/index.ts'],
splitting: false,
dts: true,
format: ['esm', 'cjs'],
clean: true
format: ['esm', 'cjs']
})
2 changes: 1 addition & 1 deletion packages/vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
"vue": "^3.4.21"
},
"dependencies": {
"@stylex-extend/shared": "0.1.3"
"@stylex-extend/shared": "workspace:*"
}
}
Loading

0 comments on commit 75e99d3

Please sign in to comment.