From 88a3491b1cb1314a7dcbe3f4c27dfbde236d0069 Mon Sep 17 00:00:00 2001 From: Benjamin F Date: Thu, 1 Sep 2022 04:59:20 -0700 Subject: [PATCH] Use data property for config. --- designs/albert/src/index.mjs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/designs/albert/src/index.mjs b/designs/albert/src/index.mjs index 1d898a7b5fe..a42d6d54527 100644 --- a/designs/albert/src/index.mjs +++ b/designs/albert/src/index.mjs @@ -1,5 +1,5 @@ import { Design } from '@freesewing/core' -import { name, version } from '../pkg.mjs' +import { data } from '../data.mjs' import { front } from './front.mjs' import { pocket } from './pocket.mjs' import { strap } from './strap.mjs' @@ -7,7 +7,7 @@ import { strap } from './strap.mjs' // crossBox macro export const crossBox = { name: 'crossbox', - version, + version: data.version, macros: { crossBox: function (so) { let id = this.getId() @@ -65,8 +65,7 @@ export const crossBox = { // Setup our new design const Albert = new Design({ - name, - version, + data, parts: [ front, pocket, strap ], })