diff --git a/config/templates/design/config.js b/config/templates/design/config.js index 15ba5ec2fb0..62bc46fff91 100644 --- a/config/templates/design/config.js +++ b/config/templates/design/config.js @@ -1,4 +1,4 @@ -import { version } from './package.json' +import { version } from './package.json' assert { type: 'json' } export default { name: '{{name}}', diff --git a/packages/core/src/pattern.js b/packages/core/src/pattern.js index 49bf5a3d25a..cd90f293793 100644 --- a/packages/core/src/pattern.js +++ b/packages/core/src/pattern.js @@ -8,7 +8,7 @@ import pack from 'bin-pack' import Store from './store' import Hooks from './hooks' import Attributes from './attributes' -import pkg from '../package.json' +import pkg from '../package.json' assert { type: 'json' } export default function Pattern(config = { options: {} }) { // Default settings diff --git a/packages/core/src/svg.js b/packages/core/src/svg.js index 69f07f0b1d1..2d4d1de42e4 100644 --- a/packages/core/src/svg.js +++ b/packages/core/src/svg.js @@ -1,6 +1,6 @@ import Attributes from './attributes' import { round } from './utils' -import pkg from '../package.json' +import pkg from '../package.json' assert { type: 'json' } function Svg(pattern) { this.openGroups = [] diff --git a/packages/new-design/templates/from-bella/design/config.js b/packages/new-design/templates/from-bella/design/config.js index 707c07528bb..b7ef2e64d8d 100644 --- a/packages/new-design/templates/from-bella/design/config.js +++ b/packages/new-design/templates/from-bella/design/config.js @@ -1,4 +1,4 @@ -import { version } from '../package.json' +import { version } from '../package.json' assert { type: 'json' } import { config as bellaConfig } from '@freesewing/bella' export default { diff --git a/packages/new-design/templates/from-bent/design/config.js b/packages/new-design/templates/from-bent/design/config.js index 94d5b2e9b67..aa4acb58967 100644 --- a/packages/new-design/templates/from-bent/design/config.js +++ b/packages/new-design/templates/from-bent/design/config.js @@ -1,4 +1,4 @@ -import { version } from '../package.json' +import { version } from '../package.json' assert { type: 'json' } import { config as bentConfig } from '@freesewing/bent' export default { diff --git a/packages/new-design/templates/from-breanna/design/config.js b/packages/new-design/templates/from-breanna/design/config.js index 5bc4acfa07f..9c0b341550c 100644 --- a/packages/new-design/templates/from-breanna/design/config.js +++ b/packages/new-design/templates/from-breanna/design/config.js @@ -1,4 +1,4 @@ -import { version } from '../package.json' +import { version } from '../package.json' assert { type: 'json' } import { config as breannaConfig } from '@freesewing/breanna' export default { diff --git a/packages/new-design/templates/from-brian/design/config.js b/packages/new-design/templates/from-brian/design/config.js index 3a2cc07d93a..2c9a8a20e98 100644 --- a/packages/new-design/templates/from-brian/design/config.js +++ b/packages/new-design/templates/from-brian/design/config.js @@ -1,4 +1,4 @@ -import { version } from '../package.json' +import { version } from '../package.json' assert { type: 'json' } import { config as brianConfig } from '@freesewing/brian' export default { diff --git a/packages/new-design/templates/from-scratch/design/config.js b/packages/new-design/templates/from-scratch/design/config.js index f07668082e5..f060b8db59a 100644 --- a/packages/new-design/templates/from-scratch/design/config.js +++ b/packages/new-design/templates/from-scratch/design/config.js @@ -1,4 +1,4 @@ -import { version } from '../package.json' +import { version } from '../package.json' assert { type: 'json' } export default { name: '{{name}}', diff --git a/packages/new-design/templates/from-titan/design/config.js b/packages/new-design/templates/from-titan/design/config.js index 326abe62ce9..705af99f4c4 100644 --- a/packages/new-design/templates/from-titan/design/config.js +++ b/packages/new-design/templates/from-titan/design/config.js @@ -1,4 +1,4 @@ -import { version } from '../package.json' +import { version } from '../package.json' assert { type: 'json' } import { config as titanConfig } from '@freesewing/titan' export default { diff --git a/plugins/plugin-banner/src/index.js b/plugins/plugin-banner/src/index.js index c7f459c0d13..a8dd3a416c0 100644 --- a/plugins/plugin-banner/src/index.js +++ b/plugins/plugin-banner/src/index.js @@ -1,4 +1,4 @@ -import pkg from '../package.json' +import pkg from '../package.json' assert { type: 'json' } export default { name: pkg.name, diff --git a/plugins/plugin-bartack/src/index.js b/plugins/plugin-bartack/src/index.js index a096bd4102e..bf12467f3c7 100644 --- a/plugins/plugin-bartack/src/index.js +++ b/plugins/plugin-bartack/src/index.js @@ -1,4 +1,4 @@ -import pkg from '../package.json' +import pkg from '../package.json' assert { type: 'json' } import bartack from './bartack' export default { diff --git a/plugins/plugin-bundle/src/index.js b/plugins/plugin-bundle/src/index.js index ef4871fda38..adc1d7b2416 100644 --- a/plugins/plugin-bundle/src/index.js +++ b/plugins/plugin-bundle/src/index.js @@ -13,7 +13,7 @@ import scalebox from '@freesewing/plugin-scalebox' import round from '@freesewing/plugin-round' import sprinkle from '@freesewing/plugin-sprinkle' import measurements from '@freesewing/plugin-measurements' -import pkg from '../package.json' +import pkg from '../package.json' assert { type: 'json' } const bundledPlugins = [ banner, diff --git a/plugins/plugin-bust/src/index.js b/plugins/plugin-bust/src/index.js index f9b23b40b92..7529abd8d03 100644 --- a/plugins/plugin-bust/src/index.js +++ b/plugins/plugin-bust/src/index.js @@ -1,4 +1,4 @@ -import pkg from '../package.json' +import pkg from '../package.json' assert { type: 'json' } export default { name: pkg.name, diff --git a/plugins/plugin-buttons/src/index.js b/plugins/plugin-buttons/src/index.js index f0e9b2864fb..5c432839e7a 100644 --- a/plugins/plugin-buttons/src/index.js +++ b/plugins/plugin-buttons/src/index.js @@ -1,7 +1,7 @@ import button from './button' import buttonhole from './buttonhole' import snaps from './snaps' -import pkg from '../package.json' +import pkg from '../package.json' assert { type: 'json' } export default { name: pkg.name, diff --git a/plugins/plugin-cutonfold/src/index.js b/plugins/plugin-cutonfold/src/index.js index 0ad5cead348..764f4aa55f9 100644 --- a/plugins/plugin-cutonfold/src/index.js +++ b/plugins/plugin-cutonfold/src/index.js @@ -1,5 +1,5 @@ import markers from './lib/markers' -import pkg from '../package.json' +import pkg from '../package.json' assert { type: 'json' } export default { name: pkg.name, diff --git a/plugins/plugin-dimension/src/index.js b/plugins/plugin-dimension/src/index.js index e54db57280b..0e7f8f131d9 100644 --- a/plugins/plugin-dimension/src/index.js +++ b/plugins/plugin-dimension/src/index.js @@ -1,5 +1,5 @@ import markers from './lib/markers' -import pkg from '../package.json' +import pkg from '../package.json' assert { type: 'json' } const prefix = '__paperless' diff --git a/plugins/plugin-flip/src/index.js b/plugins/plugin-flip/src/index.js index b64563bb8d6..3878d3f263b 100644 --- a/plugins/plugin-flip/src/index.js +++ b/plugins/plugin-flip/src/index.js @@ -1,4 +1,4 @@ -import pkg from '../package.json' +import pkg from '../package.json' assert { type: 'json' } export default { name: pkg.name, diff --git a/plugins/plugin-gore/src/index.js b/plugins/plugin-gore/src/index.js index 023e90e4c45..a74bb6e4cd3 100644 --- a/plugins/plugin-gore/src/index.js +++ b/plugins/plugin-gore/src/index.js @@ -1,4 +1,4 @@ -import pkg from '../package.json' +import pkg from '../package.json' assert { type: 'json' } export default { name: pkg.name, diff --git a/plugins/plugin-grainline/src/index.js b/plugins/plugin-grainline/src/index.js index 422019bfdc9..3550616431a 100644 --- a/plugins/plugin-grainline/src/index.js +++ b/plugins/plugin-grainline/src/index.js @@ -1,5 +1,5 @@ import markers from './markers' -import pkg from '../package.json' +import pkg from '../package.json' assert { type: 'json' } const dflts = { text: 'grainline', diff --git a/plugins/plugin-i18n/src/index.js b/plugins/plugin-i18n/src/index.js index abd932fabae..5fb83440d6b 100644 --- a/plugins/plugin-i18n/src/index.js +++ b/plugins/plugin-i18n/src/index.js @@ -1,4 +1,4 @@ -import pkg from '../package.json' +import pkg from '../package.json' assert { type: 'json' } export default { name: pkg.name, diff --git a/plugins/plugin-logo/src/index.js b/plugins/plugin-logo/src/index.js index 0026d1c6420..a28a74e785f 100644 --- a/plugins/plugin-logo/src/index.js +++ b/plugins/plugin-logo/src/index.js @@ -1,5 +1,5 @@ import logo from './logo' -import pkg from '../package.json' +import pkg from '../package.json' assert { type: 'json' } export {logo} diff --git a/plugins/plugin-measurements/src/index.js b/plugins/plugin-measurements/src/index.js index 2479cbdb0c7..d19bd8d8e03 100644 --- a/plugins/plugin-measurements/src/index.js +++ b/plugins/plugin-measurements/src/index.js @@ -1,4 +1,4 @@ -import pkg from '../package.json' +import pkg from '../package.json' assert { type: 'json' } export default { name: pkg.name, diff --git a/plugins/plugin-mirror/src/index.js b/plugins/plugin-mirror/src/index.js index 52ac4b51dbf..16d82fa9027 100644 --- a/plugins/plugin-mirror/src/index.js +++ b/plugins/plugin-mirror/src/index.js @@ -1,4 +1,4 @@ -import pkg from '../package.json' +import pkg from '../package.json' assert { type: 'json' } const lineValues = (start, end) => { const { x: x1, y: y1 } = start diff --git a/plugins/plugin-notches/src/index.js b/plugins/plugin-notches/src/index.js index a3151e9d7bb..44f300736ba 100644 --- a/plugins/plugin-notches/src/index.js +++ b/plugins/plugin-notches/src/index.js @@ -1,4 +1,4 @@ -import pkg from '../package.json' +import pkg from '../package.json' assert { type: 'json' } const notches = '' diff --git a/plugins/plugin-round/src/index.js b/plugins/plugin-round/src/index.js index 960479277ff..e00534bb1e3 100644 --- a/plugins/plugin-round/src/index.js +++ b/plugins/plugin-round/src/index.js @@ -1,4 +1,4 @@ -import pkg from '../package.json' +import pkg from '../package.json' assert { type: 'json' } export default { name: pkg.name, diff --git a/plugins/plugin-scalebox/src/index.js b/plugins/plugin-scalebox/src/index.js index f4d2dd8518a..21b9610a48f 100644 --- a/plugins/plugin-scalebox/src/index.js +++ b/plugins/plugin-scalebox/src/index.js @@ -1,4 +1,4 @@ -import pkg from '../package.json' +import pkg from '../package.json' assert { type: 'json' } import scalebox from './scalebox' import miniscale from './miniscale' diff --git a/plugins/plugin-sprinkle/src/index.js b/plugins/plugin-sprinkle/src/index.js index 032748a8390..15535a79c26 100644 --- a/plugins/plugin-sprinkle/src/index.js +++ b/plugins/plugin-sprinkle/src/index.js @@ -1,4 +1,4 @@ -import pkg from '../package.json' +import pkg from '../package.json' assert { type: 'json' } export default { name: pkg.name, diff --git a/plugins/plugin-svgattr/src/index.js b/plugins/plugin-svgattr/src/index.js index e24529ca7a6..affaa02ad5f 100644 --- a/plugins/plugin-svgattr/src/index.js +++ b/plugins/plugin-svgattr/src/index.js @@ -1,4 +1,4 @@ -import pkg from '../package.json' +import pkg from '../package.json' assert { type: 'json' } export default { name: pkg.name, diff --git a/plugins/plugin-theme/src/index.js b/plugins/plugin-theme/src/index.js index 00be62a346a..bfe315f952b 100644 --- a/plugins/plugin-theme/src/index.js +++ b/plugins/plugin-theme/src/index.js @@ -1,4 +1,4 @@ -import pkg from '../package.json' +import pkg from '../package.json' assert { type: 'json' } import gridMetric from './defs/grid-metric' import gridImperial from './defs/grid-imperial' import draft from './lib/draft' diff --git a/plugins/plugin-title/src/index.js b/plugins/plugin-title/src/index.js index 7bf5d068404..eb0db0ca9ce 100644 --- a/plugins/plugin-title/src/index.js +++ b/plugins/plugin-title/src/index.js @@ -1,4 +1,4 @@ -import pkg from '../package.json' +import pkg from '../package.json' assert { type: 'json' } const style = ` text.title-nr { diff --git a/plugins/plugin-versionfree-svg/src/index.js b/plugins/plugin-versionfree-svg/src/index.js index 1de52a8137d..3c0811993f4 100644 --- a/plugins/plugin-versionfree-svg/src/index.js +++ b/plugins/plugin-versionfree-svg/src/index.js @@ -1,4 +1,4 @@ -import pkg from '../package.json' +import pkg from '../package.json' assert { type: 'json' } export default { name: pkg.name, diff --git a/scripts/add-software.mjs b/scripts/add-software.mjs index aecb2d8b832..5c506c58730 100644 --- a/scripts/add-software.mjs +++ b/scripts/add-software.mjs @@ -6,7 +6,7 @@ import { banner } from './banner.mjs' import mustache from 'mustache' import { execSync } from 'child_process' // Software -import designs from '../config/software/designs.json' +import designs from '../config/software/designs.json' assert { type: 'json' } const type = process.argv[2] diff --git a/sites/lab/components/version-picker.js b/sites/lab/components/version-picker.js index 2bc7bca2551..d25b30aa388 100644 --- a/sites/lab/components/version-picker.js +++ b/sites/lab/components/version-picker.js @@ -1,7 +1,7 @@ import React from 'react' import VersionsIcon from 'shared/components/icons/versions.js' import { useTranslation } from 'next-i18next' -import versions from 'site/versions.json' +import versions from 'site/versions.json' assert { type: 'json' } import useVersion from 'site/hooks/useVersion.js' import {Picker, PickerLink} from 'shared/components/picker' diff --git a/sites/lab/page-templates/design-list.js b/sites/lab/page-templates/design-list.js index 9feecf2ede3..94bc72433b0 100644 --- a/sites/lab/page-templates/design-list.js +++ b/sites/lab/page-templates/design-list.js @@ -5,7 +5,7 @@ import { useTranslation } from 'next-i18next' import { formatVersionTitle } from 'site/components/version-picker.js' import Layout from 'site/components/layouts/bare' import { PageTitle } from 'shared/components/layouts/default' -import availableVersions from 'site/available-versions.json' +import availableVersions from 'site/available-versions.json' assert { type: 'json' } const DesignLinks = ({ list, prefix='', version=false }) => { const { t } = useTranslation(['patterns']) diff --git a/sites/lab/pages/v/index.js b/sites/lab/pages/v/index.js index d99dffe9d56..91ef8ba8b4e 100644 --- a/sites/lab/pages/v/index.js +++ b/sites/lab/pages/v/index.js @@ -5,7 +5,7 @@ import Link from 'next/link' import { formatVersionTitle } from 'site/components/version-picker.js' import Layout from 'site/components/layouts/bare' import { PageTitle } from 'shared/components/layouts/default' -import availableVersions from 'site/available-versions.json' +import availableVersions from 'site/available-versions.json' assert { type: 'json' } const DesignLinks = ({ list, prefix='', version=false }) => (