Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

monorepo issue #17

Open
ljwrer opened this issue Apr 14, 2022 · 0 comments
Open

monorepo issue #17

ljwrer opened this issue Apr 14, 2022 · 0 comments

Comments

@ljwrer
Copy link
Owner

ljwrer commented Apr 14, 2022

  1. 多pkg共享global.d.ts问题
    抽取types pkg,通过三斜线指令引入
  2. npm publish未替换workspace依赖
    使用npm v7,npm v8与pnpm v7不兼容
    Pnpm publish doesn't work correctly with workspaces and npm 8.5.0 pnpm/pnpm#4348
  3. jest esmodule编译慢
    使用单线程,或者直接使用vitest
  4. eslint config不能自动安装依赖
    peerdeps声明依赖,编写脚本安装
  5. vue,react jsx不兼容
    preserveSymlinks
    Make JSX typings an optional install as they conflict with React TSX vuejs/core#1033
  6. taro storybook pnpm不兼容
    public-hoist-pattern
  7. story book client error
    viteFinal
    "Singleton client API not yet initialized" storybookjs/storybook#10887 (comment)
  8. story book react版本不匹配
    pnpm readPackage hook
    或者 Support yarn’s resolutions package.json field pnpm/pnpm#1221
  9. jsx runtime打包问题
lib:
external: ['react/jsx-runtime']
app:
optimizeDeps: {
    include: ['react/jsx-runtime'],
  },
  1. 共享viteconfig entry问题
    使用process.cwd()
  2. vite fileName问题
    使用函数返回
  3. external问题
    使用autoExternal
  4. webstorm不识别vitest问题
    安装vitest插件 并在每个pkg把vitest作为dev deps
  5. eslint no match files
"lint": "eslint \"**/*.{ts,tsx}\""

https://stackoverflow.com/questions/54543063/how-can-i-suppress-the-no-files-matching-the-pattern-message-in-eslint
15. npm publish 和 pack不一致
root目录添加.npmignore
17. d.ts生成目录问题
使用entryRoot
qmhc/vite-plugin-dts#66

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant