Skip to content

Commit

Permalink
fix(deps): Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
syfxlin committed Mar 6, 2024
1 parent 4b6b141 commit b991b52
Show file tree
Hide file tree
Showing 17 changed files with 3,385 additions and 1,510 deletions.
28 changes: 0 additions & 28 deletions .eslintrc

This file was deleted.

11 changes: 6 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,15 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup PNPM
uses: pnpm/action-setup@v2.4.0
uses: pnpm/action-setup@v3.0.0
with:
version: 8.1.1
version: 8.12.1
- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
registry-url: "https://registry.npmjs.org"
cache: "pnpm"
cache: pnpm
node-version: 20
registry-url: https://registry.npmjs.org
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build
Expand Down
23 changes: 0 additions & 23 deletions .npmignore

This file was deleted.

3 changes: 0 additions & 3 deletions .prettierrc

This file was deleted.

11 changes: 0 additions & 11 deletions build.config.ts

This file was deleted.

2 changes: 1 addition & 1 deletion demo/App.css.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { styled } from "../src/styled";
import { styled } from "../src";
import { theme } from "./theme.css.ts";

export const container = styled.css`
Expand Down
9 changes: 7 additions & 2 deletions demo/App.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
import { container } from "./App.css.ts";
import { useState } from "react";
import { container } from "./App.css.ts";

export default function App() {
const [theme, setTheme] = useState<string>("light-theme");
return (
<div className={theme}>
<button onClick={() => setTheme((t) => (t === "light-theme" ? "dark-theme" : "light-theme"))}>{theme}</button>
<button
onClick={() =>
setTheme(t => (t === "light-theme" ? "dark-theme" : "light-theme"))}
>
{theme}
</button>
<div className={container}>Test</div>
</div>
);
Expand Down
2 changes: 1 addition & 1 deletion demo/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ import App from "./App.tsx";
ReactDOM.createRoot(document.getElementById("root")!).render(
<React.StrictMode>
<App />
</React.StrictMode>
</React.StrictMode>,
);
2 changes: 1 addition & 1 deletion demo/theme.css.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { createReveTheme } from "../src/theme";
import { createReveTheme } from "../src";

export const theme = createReveTheme({
static: {
Expand Down
8 changes: 8 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import config from "@syfxlin/eslint-config";

export default config({
jsx: true,
react: true,
typescript: true,
formatters: true,
});
78 changes: 39 additions & 39 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,18 @@
{
"name": "@syfxlin/reve",
"type": "module",
"version": "0.0.0-semantic-release",
"description": "Support for css-prop-like API and flexible theme system for vanilla-extract.",
"author": "Otstar Lin <i@ixk.me>",
"license": "MIT",
"homepage": "https://github.com/syfxlin/reve#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/syfxlin/reve.git"
},
"bugs": {
"url": "https://github.com/syfxlin/reve/issues"
},
"keywords": [
"vanilla-extract",
"styled-components",
Expand All @@ -13,59 +22,50 @@
"publishConfig": {
"access": "public"
},
"scripts": {
"dev": "vite",
"build": "unbuild",
"watch": "unbuild --stub"
},
"main": "./dist/index.cjs",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"exports": {
".": {
"import": "./dist/index.mjs",
"require": "./dist/index.cjs",
"types": "./dist/index.d.ts"
"import": {
"types": "./dist/index.d.mts",
"default": "./dist/index.mjs"
},
"require": {
"types": "./dist/index.d.cts",
"default": "./dist/index.cjs"
}
}
},
"main": "./dist/index.cjs",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"files": [
"dist"
],
"repository": {
"type": "git",
"url": "git+https://github.com/syfxlin/reve.git"
"scripts": {
"dev": "vite",
"build": "bunchee",
"watch": "bunchee --watch"
},
"bugs": {
"url": "https://github.com/syfxlin/reve/issues"
"peerDependencies": {
"@vanilla-extract/css": "^1.12.0"
},
"homepage": "https://github.com/syfxlin/reve#readme",
"dependencies": {
"@vanilla-extract/css-utils": "^0.1.3",
"@vanilla-extract/dynamic": "^2.0.3",
"clsx": "^2.0.0",
"stylis": "^4.3.0"
},
"peerDependencies": {
"@vanilla-extract/css": "^1.12.0"
"@vanilla-extract/dynamic": "^2.1.0",
"clsx": "^2.1.0",
"stylis": "^4.3.1"
},
"devDependencies": {
"@types/react": "^18.2.21",
"@types/react-dom": "^18.2.7",
"@types/stylis": "^4.2.0",
"@typescript-eslint/eslint-plugin": "^6.6.0",
"@typescript-eslint/parser": "^6.6.0",
"@vanilla-extract/vite-plugin": "^3.9.0",
"@vitejs/plugin-react": "^4.0.4",
"eslint": "^8.48.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-prettier": "^5.0.0",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.4.3",
"prettier": "^3.0.3",
"@syfxlin/eslint-config": "^1.0.4",
"@types/react": "^18.2.63",
"@types/react-dom": "^18.2.20",
"@types/stylis": "^4.2.5",
"@vanilla-extract/vite-plugin": "^4.0.4",
"@vitejs/plugin-react": "^4.2.1",
"bunchee": "^4.4.8",
"eslint": "^8.57.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"typescript": "^5.2.2",
"unbuild": "^2.0.0",
"vite": "^4.4.9"
"typescript": "^5.3.3",
"vite": "^5.1.5"
}
}
Loading

0 comments on commit b991b52

Please sign in to comment.