From 40d5e3a3986d941a3fd1a67c98a602b2835b3535 Mon Sep 17 00:00:00 2001 From: jonambas Date: Tue, 4 Jun 2024 19:43:37 -0400 Subject: [PATCH] build: try removing overrides, add react as runtime dep --- .gitignore | 3 ++- libra.config.js | 3 --- package.json | 13 ++++--------- pnpm-lock.yaml | 13 +++++++------ 4 files changed, 13 insertions(+), 19 deletions(-) diff --git a/.gitignore b/.gitignore index e0ce399..2cac651 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,5 @@ node_modules dist .turbo *.tsbuildinfo -styles \ No newline at end of file +styles +.DS_Store \ No newline at end of file diff --git a/libra.config.js b/libra.config.js index 53dc83f..9b4ac35 100644 --- a/libra.config.js +++ b/libra.config.js @@ -9,9 +9,6 @@ export default defineConfig({ outDir: 'dist', viteConfig: () => { return { - build: { - outDir: resolve(process.cwd(), 'dist'), - }, resolve: { alias: { '@styles/css': resolve(__dirname, './styles/css') diff --git a/package.json b/package.json index 081156e..953c569 100644 --- a/package.json +++ b/package.json @@ -25,6 +25,10 @@ "url": "https://github.com/jonambas/sweatpants/issues" }, "homepage": "https://github.com/jonambas/sweatpants#readme", + "dependencies": { + "react": "18.3.1", + "react-dom": "18.3.1" + }, "devDependencies": { "@changesets/cli": "2.27.5", "@pandacss/dev": "0.40.1", @@ -34,8 +38,6 @@ "@types/react-dom": "18.3.0", "framer-motion": "11.2.9", "prettier": "3.2.5", - "react": "18.3.1", - "react-dom": "18.3.1", "rimraf": "5.0.7", "rollup": "4.18.0", "rollup-plugin-bundle-size": "1.0.3", @@ -43,13 +45,6 @@ "rollup-plugin-preserve-directives": "^0.4.0", "typescript": "5.4.5" }, - "overrides": { - "react": "18.3.1", - "react-dom": "18.3.1", - "rollup-plugin-preserve-directives": { - "rollup": "^4.0.0" - } - }, "engines": { "node": "20.x", "pnpm": "9.x" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index df7c132..79871a7 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -7,6 +7,13 @@ settings: importers: .: + dependencies: + react: + specifier: 18.3.1 + version: 18.3.1 + react-dom: + specifier: 18.3.1 + version: 18.3.1(react@18.3.1) devDependencies: '@changesets/cli': specifier: 2.27.5 @@ -32,12 +39,6 @@ importers: prettier: specifier: 3.2.5 version: 3.2.5 - react: - specifier: 18.3.1 - version: 18.3.1 - react-dom: - specifier: 18.3.1 - version: 18.3.1(react@18.3.1) rimraf: specifier: 5.0.7 version: 5.0.7