1
0
Fork 0

chore: Switched to default inport for version

The previous import of the version number from package.json
looked like a named import, but was actually object destructuring
that was supported by the rollup json plugin.

This causes issues when importing patterns with webpack (as we
do with our new NextJS based frontend) so this commit switches
to importing JSON as the default export, which is also ok with webpack
This commit is contained in:
Joost De Cock 2022-01-23 13:22:13 +01:00
parent be89dbb8e8
commit 2a220392d4
47 changed files with 93 additions and 105 deletions

View file

@ -1,10 +1,8 @@
import { version } from '../package.json'
// ?? 🤔 ?? --> https://en.freesewing.dev/packages/core/config
import pkg from '../package.json'
export default {
name: 'tutorial',
version,
version: pkg.version,
design: 'joostdecock',
code: 'joostdecock',
department: 'accessorties',