Browse Source

it works!

yarn-workspaces
rozetko 1 year ago
parent
commit
db756fa41c
  1. 1
      packages/react/package.json
  2. 10
      packages/react/vite.config.ts
  3. 3
      yarn.lock

1
packages/react/package.json

@ -18,7 +18,6 @@
"react-dom": "^18.2.0" "react-dom": "^18.2.0"
}, },
"devDependencies": { "devDependencies": {
"@chartwerk/line-pod-original": "npm:@chartwerk/line-pod@0.6.9",
"@types/lodash": "^4.14.201", "@types/lodash": "^4.14.201",
"@types/react": "^18.2.15", "@types/react": "^18.2.15",
"@types/react-dom": "^18.2.7", "@types/react-dom": "^18.2.7",

10
packages/react/vite.config.ts

@ -8,8 +8,11 @@ import { resolve } from 'path';
export default defineConfig({ export default defineConfig({
plugins: [ plugins: [
react(), react(),
dts({ include: ['lib'] }) dts({ include: ['lib'] }),
], ],
optimizeDeps: {
include: ['line-pod'],
},
build: { build: {
copyPublicDir: false, copyPublicDir: false,
lib: { lib: {
@ -18,6 +21,9 @@ export default defineConfig({
}, },
rollupOptions: { rollupOptions: {
external: ['react', 'react/jsx-runtime'], external: ['react', 'react/jsx-runtime'],
} },
commonjsOptions: {
include: [/line-pod/],
},
} }
}); });

3
yarn.lock

@ -286,7 +286,7 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"@chartwerk/line-pod-original@npm:@chartwerk/line-pod@0.6.9, @chartwerk/line-pod@workspace:.": "@chartwerk/line-pod@workspace:.":
version: 0.0.0-use.local version: 0.0.0-use.local
resolution: "@chartwerk/line-pod@workspace:." resolution: "@chartwerk/line-pod@workspace:."
languageName: unknown languageName: unknown
@ -3869,7 +3869,6 @@ __metadata:
version: 0.0.0-use.local version: 0.0.0-use.local
resolution: "react-line-pod@workspace:packages/react" resolution: "react-line-pod@workspace:packages/react"
dependencies: dependencies:
"@chartwerk/line-pod-original": "npm:@chartwerk/line-pod@0.6.9"
"@types/lodash": ^4.14.201 "@types/lodash": ^4.14.201
"@types/react": ^18.2.15 "@types/react": ^18.2.15
"@types/react-dom": ^18.2.7 "@types/react-dom": ^18.2.7

Loading…
Cancel
Save