diff --git a/designs/aaron/config/index.js b/designs/aaron/config/index.js index 79cb08c948f..023dfd869b9 100644 --- a/designs/aaron/config/index.js +++ b/designs/aaron/config/index.js @@ -1,6 +1,7 @@ -import { version } from '../package.json' +import pkg from '../package.json' assert { type: 'json' } import configHelpers from '@freesewing/config-helpers' const { pctBasedOn } = configHelpers +const { version } = pkg export default { version, diff --git a/designs/albert/config/index.js b/designs/albert/config/index.js index f33f56df6a7..f2d9f26268e 100644 --- a/designs/albert/config/index.js +++ b/designs/albert/config/index.js @@ -1,4 +1,5 @@ -import { version } from '../package.json' +import pkg from '../package.json' assert { type: 'json' } +const { version } = pkg export default { version, diff --git a/designs/bee/config/index.js b/designs/bee/config/index.js index 3285ea449dc..06e894a2bcc 100644 --- a/designs/bee/config/index.js +++ b/designs/bee/config/index.js @@ -1,6 +1,8 @@ -import { version } from '../package.json' +import pkg from '../package.json' assert { type: 'json' } import configHelpers from '@freesewing/config-helpers' + const { pctBasedOn } = configHelpers +const { version } = pkg export default { version, diff --git a/designs/bella/config/index.js b/designs/bella/config/index.js index a076f702864..da228086c16 100644 --- a/designs/bella/config/index.js +++ b/designs/bella/config/index.js @@ -1,4 +1,6 @@ -import { version } from '../package.json' +import pkg from '../package.json' assert { type: 'json' } + +const { version } = pkg export default { version, diff --git a/designs/benjamin/config/index.js b/designs/benjamin/config/index.js index dd518910f9c..7d03a8b4156 100644 --- a/designs/benjamin/config/index.js +++ b/designs/benjamin/config/index.js @@ -1,4 +1,6 @@ -import { version } from '../package.json' +import pkg from '../package.json' assert { type: 'json' } + +const { version } = pkg export default { version, diff --git a/designs/bent/config/index.js b/designs/bent/config/index.js index 4cd715cfc17..2620c3b7f95 100644 --- a/designs/bent/config/index.js +++ b/designs/bent/config/index.js @@ -1,4 +1,6 @@ -import { version } from '../package.json' +import pkg from '../package.json' assert { type: 'json' } + +const { version } = pkg export default { version, diff --git a/designs/bob/config.js b/designs/bob/config.js index b0aab856e91..ebebcb6b48c 100644 --- a/designs/bob/config.js +++ b/designs/bob/config.js @@ -1,4 +1,6 @@ -import { version } from './package.json' +import pkg from './package.json' assert { type: 'json' } + +const { version } = pkg export default { version, diff --git a/designs/breanna/config/index.js b/designs/breanna/config/index.js index 3723b463a39..20ad4e9ffd7 100644 --- a/designs/breanna/config/index.js +++ b/designs/breanna/config/index.js @@ -1,4 +1,6 @@ -import { version } from '../package.json' +import pkg from '../package.json' assert { type: 'json' } + +const { version } = pkg export default { version, diff --git a/designs/brian/config/index.js b/designs/brian/config/index.js index 716831764d8..9da7320b456 100644 --- a/designs/brian/config/index.js +++ b/designs/brian/config/index.js @@ -1,4 +1,6 @@ -import { version } from '../package.json' +import pkg from '../package.json' assert { type: 'json' } + +const { version } = pkg export default { version, diff --git a/designs/bruce/config/index.js b/designs/bruce/config/index.js index 57ae292c6fc..39512b7bc40 100644 --- a/designs/bruce/config/index.js +++ b/designs/bruce/config/index.js @@ -1,4 +1,6 @@ -import { version } from '../package.json' +import pkg from '../package.json' assert { type: 'json' } + +const { version } = pkg export default { version, diff --git a/designs/carlita/config/index.js b/designs/carlita/config/index.js index e862339d86d..1d90dc40ef0 100644 --- a/designs/carlita/config/index.js +++ b/designs/carlita/config/index.js @@ -1,4 +1,6 @@ -import { version } from '../package.json' +import pkg from '../package.json' assert { type: 'json' } + +const { version } = pkg export default { version, diff --git a/designs/carlton/config/index.js b/designs/carlton/config/index.js index ccf2810b780..6b5fcbbf5da 100644 --- a/designs/carlton/config/index.js +++ b/designs/carlton/config/index.js @@ -1,4 +1,6 @@ -import { version } from '../package.json' +import pkg from '../package.json' assert { type: 'json' } + +const { version } = pkg export default { version, diff --git a/designs/cathrin/config/index.js b/designs/cathrin/config/index.js index 8fd3416750f..20392b847dd 100644 --- a/designs/cathrin/config/index.js +++ b/designs/cathrin/config/index.js @@ -1,4 +1,6 @@ -import { version } from '../package.json' +import pkg from '../package.json' assert { type: 'json' } + +const { version } = pkg export default { version, diff --git a/designs/charlie/config/index.js b/designs/charlie/config/index.js index 239220addf5..2cbcbeaf8fc 100644 --- a/designs/charlie/config/index.js +++ b/designs/charlie/config/index.js @@ -1,6 +1,8 @@ -import { version } from '../package.json' +import pkg from '../package.json' assert { type: 'json' } import configHelpers from '@freesewing/config-helpers' + const { elastics, pctBasedOn } = configHelpers +const { version } = pkg export default { version, diff --git a/designs/charlie/config/test.mjs b/designs/charlie/config/test.mjs deleted file mode 100644 index 8d7b7797f87..00000000000 --- a/designs/charlie/config/test.mjs +++ /dev/null @@ -1,3 +0,0 @@ -import { pctBasedOn } from '@freesewing/core/utils' - -console.log(pctBasedOn) diff --git a/designs/diana/config/index.js b/designs/diana/config/index.js index c8594c11802..f3911eec7ec 100644 --- a/designs/diana/config/index.js +++ b/designs/diana/config/index.js @@ -1,4 +1,6 @@ -import { version } from '../package.json' +import pkg from '../package.json' assert { type: 'json' } + +const { version } = pkg export default { version, diff --git a/designs/examples/config/index.js b/designs/examples/config/index.js index 46ce41e2218..c7219e59e22 100644 --- a/designs/examples/config/index.js +++ b/designs/examples/config/index.js @@ -1,4 +1,6 @@ -import { version } from '../package.json' +import pkg from '../package.json' assert { type: 'json' } + +const { version } = pkg export default { version, diff --git a/designs/florence/config/index.js b/designs/florence/config/index.js index 199fb5ba2b0..140a4b67fad 100644 --- a/designs/florence/config/index.js +++ b/designs/florence/config/index.js @@ -1,4 +1,6 @@ -import { version } from '../package.json' +import pkg from '../package.json' assert { type: 'json' } + +const { version } = pkg export default { version, diff --git a/designs/florent/config/index.js b/designs/florent/config/index.js index a03a7887b7c..abc20781251 100644 --- a/designs/florent/config/index.js +++ b/designs/florent/config/index.js @@ -1,4 +1,6 @@ -import { version } from '../package.json' +import pkg from '../package.json' assert { type: 'json' } + +const { version } = pkg export default { version, diff --git a/designs/hi/config/index.js b/designs/hi/config/index.js index 97627fa8d64..3e663d73f0a 100644 --- a/designs/hi/config/index.js +++ b/designs/hi/config/index.js @@ -1,4 +1,6 @@ -import { version } from '../package.json' +import pkg from '../package.json' assert { type: 'json' } + +const { version } = pkg export default { name: 'hi', diff --git a/designs/holmes/config/index.js b/designs/holmes/config/index.js index cfeafeb39d2..475207b52c8 100644 --- a/designs/holmes/config/index.js +++ b/designs/holmes/config/index.js @@ -1,6 +1,8 @@ -import { version } from '../package.json' +import pkg from '../package.json' assert { type: 'json' } import configHelpers from '@freesewing/config-helpers' + const { pctBasedOn } = configHelpers +const { version } = pkg export default { version, diff --git a/designs/hortensia/config/index.js b/designs/hortensia/config/index.js index ffa3243077d..c99c9004548 100644 --- a/designs/hortensia/config/index.js +++ b/designs/hortensia/config/index.js @@ -1,4 +1,6 @@ -import { version } from '../package.json' +import pkg from '../package.json' assert { type: 'json' } + +const { version } = pkg export default { version, diff --git a/designs/huey/config/index.js b/designs/huey/config/index.js index c7fe05c5886..964788d6865 100644 --- a/designs/huey/config/index.js +++ b/designs/huey/config/index.js @@ -1,5 +1,7 @@ -import { version } from '../package.json' import { config as brianConfig } from '@freesewing/brian' +import pkg from '../package.json' assert { type: 'json' } + +const { version } = pkg export default { version, diff --git a/designs/hugo/config/index.js b/designs/hugo/config/index.js index 2e2b3534595..8b6e65cd1bd 100644 --- a/designs/hugo/config/index.js +++ b/designs/hugo/config/index.js @@ -1,4 +1,6 @@ -import { version } from '../package.json' +import pkg from '../package.json' assert { type: 'json' } + +const { version } = pkg export default { version, diff --git a/designs/jaeger/config/index.js b/designs/jaeger/config/index.js index 4cc3ba14606..661d70b206c 100644 --- a/designs/jaeger/config/index.js +++ b/designs/jaeger/config/index.js @@ -1,4 +1,6 @@ -import { version } from '../package.json' +import pkg from '../package.json' assert { type: 'json' } + +const { version } = pkg export default { version, diff --git a/designs/legend/config/index.js b/designs/legend/config/index.js index 31b486803e0..b4b045f9ce1 100644 --- a/designs/legend/config/index.js +++ b/designs/legend/config/index.js @@ -1,7 +1,9 @@ -import { version } from '../package.json' +import pkg from '../package.json' assert { type: 'json' } + +const { version } = pkg export default { - version, + version: pkg.version, name: 'legend', design: 'Joost De Cock', code: 'Joost De Cock', diff --git a/designs/lucy/config/index.js b/designs/lucy/config/index.js index 777c86d66fc..a2ef32a1404 100644 --- a/designs/lucy/config/index.js +++ b/designs/lucy/config/index.js @@ -1,4 +1,6 @@ -import { version } from '../package.json' +import pkg from '../package.json' assert { type: 'json' } + +const { version } = pkg export default { version, diff --git a/designs/lunetius/config/index.js b/designs/lunetius/config/index.js index af1cc373960..717d347fbac 100644 --- a/designs/lunetius/config/index.js +++ b/designs/lunetius/config/index.js @@ -1,4 +1,6 @@ -import { version } from '../package.json' +import pkg from '../package.json' assert { type: 'json' } + +const { version } = pkg export default { version, diff --git a/designs/noble/config/index.js b/designs/noble/config/index.js index 7b72fd9f0af..e2af621de62 100644 --- a/designs/noble/config/index.js +++ b/designs/noble/config/index.js @@ -1,7 +1,7 @@ -// import { version } from '../package.json' import Bella from '@freesewing/bella' +import pkg from '../package.json' assert { type: 'json' } -import { version } from '../package.json' +const { version } = pkg export default { ...Bella.config, diff --git a/designs/octoplushy/config/index.js b/designs/octoplushy/config/index.js index 0d8911cc64a..b992ca79a34 100644 --- a/designs/octoplushy/config/index.js +++ b/designs/octoplushy/config/index.js @@ -1,4 +1,6 @@ -import { version } from '../package.json' +import pkg from '../package.json' assert { type: 'json' } + +const { version } = pkg export default { name: 'octoplushy', diff --git a/designs/paco/config/index.js b/designs/paco/config/index.js index e3bf59e2603..53cc53fd1e5 100644 --- a/designs/paco/config/index.js +++ b/designs/paco/config/index.js @@ -1,5 +1,7 @@ -import { version } from '../package.json' +import pkg from '../package.json' assert { type: 'json' } import configHelpers from '@freesewing/config-helpers' + +const { version } = pkg const { elastics, smallsteps, pctBasedOn } = configHelpers export default { diff --git a/designs/penelope/config/index.js b/designs/penelope/config/index.js index d82122b0b8e..e2fc03c213d 100644 --- a/designs/penelope/config/index.js +++ b/designs/penelope/config/index.js @@ -1,4 +1,6 @@ -import { version } from '../package.json' +import pkg from '../package.json' assert { type: 'json' } + +const { version } = pkg export default { version, diff --git a/designs/plugintest/config/index.js b/designs/plugintest/config/index.js index 23bbd6a2d8d..8b4ed05224a 100644 --- a/designs/plugintest/config/index.js +++ b/designs/plugintest/config/index.js @@ -1,4 +1,6 @@ -import { version } from '../package.json' +import pkg from '../package.json' assert { type: 'json' } + +const { version } = pkg export default { version, diff --git a/designs/rendertest/config/index.js b/designs/rendertest/config/index.js index 1c003f58419..5418be2ffb1 100644 --- a/designs/rendertest/config/index.js +++ b/designs/rendertest/config/index.js @@ -1,4 +1,6 @@ -import { version } from '../package.json' +import pkg from '../package.json' assert { type: 'json' } + +const { version } = pkg export default { version, diff --git a/designs/sandy/config/index.js b/designs/sandy/config/index.js index 7895acea059..6dd2fc2c81a 100644 --- a/designs/sandy/config/index.js +++ b/designs/sandy/config/index.js @@ -1,5 +1,7 @@ -import { version } from '../package.json' +import pkg from '../package.json' assert { type: 'json' } import configHelpers from '@freesewing/config-helpers' + +const { version } = pkg const { elastics, pctBasedOn } = configHelpers export default { diff --git a/designs/shin/config/index.js b/designs/shin/config/index.js index 1db9cac7995..188dabc4360 100644 --- a/designs/shin/config/index.js +++ b/designs/shin/config/index.js @@ -1,5 +1,7 @@ -import { version } from '../package.json' +import pkg from '../package.json' assert { type: 'json' } import configHelpers from '@freesewing/config-helpers' + +const { version } = pkg const { elastics, pctBasedOn } = configHelpers export default { diff --git a/designs/simon/config/index.js b/designs/simon/config/index.js index d59d6c70b94..b80e1811da8 100644 --- a/designs/simon/config/index.js +++ b/designs/simon/config/index.js @@ -1,6 +1,8 @@ -import { version } from '../package.json' +import pkg from '../package.json' assert { type: 'json' } import Brian from '@freesewing/brian' +const { version } = pkg + const config = { version, name: 'simon', diff --git a/designs/simone/config/index.js b/designs/simone/config/index.js index 081b5eaa95d..e4fd1d8f04d 100644 --- a/designs/simone/config/index.js +++ b/designs/simone/config/index.js @@ -1,6 +1,8 @@ -import { version } from '../package.json' import { config as simonConfig } from '@freesewing/simon' import Brian from '@freesewing/brian' +import pkg from '../package.json' assert { type: 'json' } + +const { version } = pkg const config = { version, diff --git a/designs/sven/config/index.js b/designs/sven/config/index.js index 772691b40ac..366de8b285e 100644 --- a/designs/sven/config/index.js +++ b/designs/sven/config/index.js @@ -1,5 +1,7 @@ -import { version } from '../package.json' import { config as brianConfig } from '@freesewing/brian' +import pkg from '../package.json' assert { type: 'json' } + +const { version } = pkg export default { version, diff --git a/designs/tamiko/config/index.js b/designs/tamiko/config/index.js index 4af9a0e2e95..91ea8bb404c 100644 --- a/designs/tamiko/config/index.js +++ b/designs/tamiko/config/index.js @@ -1,4 +1,6 @@ -import { version } from '../package.json' +import pkg from '../package.json' assert { type: 'json' } + +const { version } = pkg export default { version, diff --git a/designs/teagan/config/index.js b/designs/teagan/config/index.js index 2bec8bc55e3..43b967a374b 100644 --- a/designs/teagan/config/index.js +++ b/designs/teagan/config/index.js @@ -1,5 +1,7 @@ -import { version } from '../package.json' import { config as brianConfig } from '@freesewing/brian' +import pkg from '../package.json' assert { type: 'json' } + +const { version } = pkg const config = { version, diff --git a/designs/theo/config/index.js b/designs/theo/config/index.js index 190bd88d87a..3770a8b6ee6 100644 --- a/designs/theo/config/index.js +++ b/designs/theo/config/index.js @@ -1,5 +1,7 @@ -import { version } from '../package.json' import configHelpers from '@freesewing/config-helpers' +import pkg from '../package.json' assert { type: 'json' } + +const { version } = pkg const { steps, pctBasedOn } = configHelpers export default { diff --git a/designs/tiberius/config/index.js b/designs/tiberius/config/index.js index 1b71c25ea3d..b0ce7e0465a 100644 --- a/designs/tiberius/config/index.js +++ b/designs/tiberius/config/index.js @@ -1,4 +1,6 @@ -import { version } from '../package.json' +import pkg from '../package.json' assert { type: 'json' } + +const { version } = pkg export default { version, diff --git a/designs/titan/config/index.js b/designs/titan/config/index.js index 8a8d6c1c68e..faa6001e42f 100644 --- a/designs/titan/config/index.js +++ b/designs/titan/config/index.js @@ -1,5 +1,7 @@ -import { version } from '../package.json' import configHelpers from '@freesewing/config-helpers' +import pkg from '../package.json' assert { type: 'json' } + +const { version } = pkg const { elastics, pctBasedOn } = configHelpers export default { diff --git a/designs/trayvon/config/index.js b/designs/trayvon/config/index.js index 7889b4abe4d..2ce1b547b83 100644 --- a/designs/trayvon/config/index.js +++ b/designs/trayvon/config/index.js @@ -1,5 +1,7 @@ -import { version } from '../package.json' import configHelpers from '@freesewing/config-helpers' +import pkg from '../package.json' assert { type: 'json' } + +const { version } = pkg const { smallsteps, pctBasedOn } = configHelpers export default { diff --git a/designs/tutorial/config/index.js b/designs/tutorial/config/index.js index 87c6263d7f6..9c525970e1b 100644 --- a/designs/tutorial/config/index.js +++ b/designs/tutorial/config/index.js @@ -1,4 +1,6 @@ -import { version } from '../package.json' +import pkg from '../package.json' assert { type: 'json' } + +const { version } = pkg export default { version, diff --git a/designs/unice/config/index.js b/designs/unice/config/index.js index af39af98d28..25bc838e8cf 100644 --- a/designs/unice/config/index.js +++ b/designs/unice/config/index.js @@ -1,6 +1,7 @@ -import { version } from '../package.json' import { config as ursulaConfig } from '@freesewing/ursula' +import pkg from '../package.json' assert { type: 'json' } +const { version } = pkg const design = ['Anna Puk', 'Natalia Sayang'] const config = { @@ -15,7 +16,7 @@ const config = { gusset: 'ursulaGusset', front2: 'front', back2: 'back', - gusset2: 'gusset', + gusset2: 'gusset', }, hide: ['ursulaBack', 'ursulaFront', 'ursulaGusset','front', 'back', 'gusset'], parts: ['front','back','gusset','elastic','front2','back2','gusset2'], diff --git a/designs/ursula/config/index.js b/designs/ursula/config/index.js index 8869a22d278..8fd17d5bdeb 100644 --- a/designs/ursula/config/index.js +++ b/designs/ursula/config/index.js @@ -1,4 +1,6 @@ -import { version } from '../package.json' +import pkg from '../package.json' assert { type: 'json' } + +const { version } = pkg export default { version, diff --git a/designs/wahid/config/index.js b/designs/wahid/config/index.js index c032a139fd5..ebf64b7778a 100644 --- a/designs/wahid/config/index.js +++ b/designs/wahid/config/index.js @@ -1,4 +1,6 @@ -import { version } from '../package.json' +import pkg from '../package.json' assert { type: 'json' } + +const { version } = pkg export default { version, diff --git a/designs/walburga/config/index.js b/designs/walburga/config/index.js index beb2ce4fab0..d5f5bf9b4c2 100644 --- a/designs/walburga/config/index.js +++ b/designs/walburga/config/index.js @@ -1,4 +1,6 @@ -import { version } from '../package.json' +import pkg from '../package.json' assert { type: 'json' } + +const { version } = pkg export default { version, diff --git a/designs/waralee/config/index.js b/designs/waralee/config/index.js index 36f00c255cf..0c2409fcb71 100644 --- a/designs/waralee/config/index.js +++ b/designs/waralee/config/index.js @@ -1,4 +1,6 @@ -import { version } from '../package.json' +import pkg from '../package.json' assert { type: 'json' } + +const { version } = pkg export default { version, diff --git a/designs/yuri/config/index.js b/designs/yuri/config/index.js index 3e80fdb0cb8..be3dcdeb3e7 100644 --- a/designs/yuri/config/index.js +++ b/designs/yuri/config/index.js @@ -1,5 +1,7 @@ -import { version } from '../package.json' import { config as brianConfig } from '@freesewing/brian' +import pkg from '../package.json' assert { type: 'json' } + +const { version } = pkg const config = { version,