clomie / gas-vue-typescript

Template for Google Apps Script macros and its front-end webapp setup with TypeScript, Vue.js, Vuetify.
48 stars 10 forks source link

Multiple packages setup #18

Closed clomie closed 3 years ago

clomie commented 4 years ago

Would be better to have multiple package setup like yarn workspaces. https://classic.yarnpkg.com/en/docs/workspaces

Want to do:

clomie commented 4 years ago

Tried yarn workspaces but type checking failed on frontend package due to @types/google-apps-script package. Same error as described here: https://github.com/DefinitelyTyped/DefinitelyTyped/issues/32585

This is because the yarn workspaces installs npm modules of all package into the one node_modules directory. The @types/google-apps-script module is installed that is not required for frontend package but required for script package. This causes conflict in the variable console when the type checking on frontend package.

To avoid this error, need keeping node_modules directory are separated. So I decided to not setup yarn workspaces.

clomie commented 3 years ago

nohoist might be helpful.