1
0
Fork 0

chore: Port JSON imports to import assertions

This commit is contained in:
joostdecock 2022-08-25 12:14:16 +02:00
parent d74d900a76
commit 154d117883
52 changed files with 151 additions and 57 deletions

View file

@ -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,

View file

@ -1,4 +1,5 @@
import { version } from '../package.json'
import pkg from '../package.json' assert { type: 'json' }
const { version } = pkg
export default {
version,

View file

@ -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,

View file

@ -1,4 +1,6 @@
import { version } from '../package.json'
import pkg from '../package.json' assert { type: 'json' }
const { version } = pkg
export default {
version,

View file

@ -1,4 +1,6 @@
import { version } from '../package.json'
import pkg from '../package.json' assert { type: 'json' }
const { version } = pkg
export default {
version,

View file

@ -1,4 +1,6 @@
import { version } from '../package.json'
import pkg from '../package.json' assert { type: 'json' }
const { version } = pkg
export default {
version,

View file

@ -1,4 +1,6 @@
import { version } from './package.json'
import pkg from './package.json' assert { type: 'json' }
const { version } = pkg
export default {
version,

View file

@ -1,4 +1,6 @@
import { version } from '../package.json'
import pkg from '../package.json' assert { type: 'json' }
const { version } = pkg
export default {
version,

View file

@ -1,4 +1,6 @@
import { version } from '../package.json'
import pkg from '../package.json' assert { type: 'json' }
const { version } = pkg
export default {
version,

View file

@ -1,4 +1,6 @@
import { version } from '../package.json'
import pkg from '../package.json' assert { type: 'json' }
const { version } = pkg
export default {
version,

View file

@ -1,4 +1,6 @@
import { version } from '../package.json'
import pkg from '../package.json' assert { type: 'json' }
const { version } = pkg
export default {
version,

View file

@ -1,4 +1,6 @@
import { version } from '../package.json'
import pkg from '../package.json' assert { type: 'json' }
const { version } = pkg
export default {
version,

View file

@ -1,4 +1,6 @@
import { version } from '../package.json'
import pkg from '../package.json' assert { type: 'json' }
const { version } = pkg
export default {
version,

View file

@ -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,

View file

@ -1,3 +0,0 @@
import { pctBasedOn } from '@freesewing/core/utils'
console.log(pctBasedOn)

View file

@ -1,4 +1,6 @@
import { version } from '../package.json'
import pkg from '../package.json' assert { type: 'json' }
const { version } = pkg
export default {
version,

View file

@ -1,4 +1,6 @@
import { version } from '../package.json'
import pkg from '../package.json' assert { type: 'json' }
const { version } = pkg
export default {
version,

View file

@ -1,4 +1,6 @@
import { version } from '../package.json'
import pkg from '../package.json' assert { type: 'json' }
const { version } = pkg
export default {
version,

View file

@ -1,4 +1,6 @@
import { version } from '../package.json'
import pkg from '../package.json' assert { type: 'json' }
const { version } = pkg
export default {
version,

View file

@ -1,4 +1,6 @@
import { version } from '../package.json'
import pkg from '../package.json' assert { type: 'json' }
const { version } = pkg
export default {
name: 'hi',

View file

@ -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,

View file

@ -1,4 +1,6 @@
import { version } from '../package.json'
import pkg from '../package.json' assert { type: 'json' }
const { version } = pkg
export default {
version,

View file

@ -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,

View file

@ -1,4 +1,6 @@
import { version } from '../package.json'
import pkg from '../package.json' assert { type: 'json' }
const { version } = pkg
export default {
version,

View file

@ -1,4 +1,6 @@
import { version } from '../package.json'
import pkg from '../package.json' assert { type: 'json' }
const { version } = pkg
export default {
version,

View file

@ -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',

View file

@ -1,4 +1,6 @@
import { version } from '../package.json'
import pkg from '../package.json' assert { type: 'json' }
const { version } = pkg
export default {
version,

View file

@ -1,4 +1,6 @@
import { version } from '../package.json'
import pkg from '../package.json' assert { type: 'json' }
const { version } = pkg
export default {
version,

View file

@ -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,

View file

@ -1,4 +1,6 @@
import { version } from '../package.json'
import pkg from '../package.json' assert { type: 'json' }
const { version } = pkg
export default {
name: 'octoplushy',

View file

@ -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 {

View file

@ -1,4 +1,6 @@
import { version } from '../package.json'
import pkg from '../package.json' assert { type: 'json' }
const { version } = pkg
export default {
version,

View file

@ -1,4 +1,6 @@
import { version } from '../package.json'
import pkg from '../package.json' assert { type: 'json' }
const { version } = pkg
export default {
version,

View file

@ -1,4 +1,6 @@
import { version } from '../package.json'
import pkg from '../package.json' assert { type: 'json' }
const { version } = pkg
export default {
version,

View file

@ -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 {

View file

@ -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 {

View file

@ -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',

View file

@ -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,

View file

@ -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,

View file

@ -1,4 +1,6 @@
import { version } from '../package.json'
import pkg from '../package.json' assert { type: 'json' }
const { version } = pkg
export default {
version,

View file

@ -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,

View file

@ -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 {

View file

@ -1,4 +1,6 @@
import { version } from '../package.json'
import pkg from '../package.json' assert { type: 'json' }
const { version } = pkg
export default {
version,

View file

@ -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 {

View file

@ -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 {

View file

@ -1,4 +1,6 @@
import { version } from '../package.json'
import pkg from '../package.json' assert { type: 'json' }
const { version } = pkg
export default {
version,

View file

@ -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 = {

View file

@ -1,4 +1,6 @@
import { version } from '../package.json'
import pkg from '../package.json' assert { type: 'json' }
const { version } = pkg
export default {
version,

View file

@ -1,4 +1,6 @@
import { version } from '../package.json'
import pkg from '../package.json' assert { type: 'json' }
const { version } = pkg
export default {
version,

View file

@ -1,4 +1,6 @@
import { version } from '../package.json'
import pkg from '../package.json' assert { type: 'json' }
const { version } = pkg
export default {
version,

View file

@ -1,4 +1,6 @@
import { version } from '../package.json'
import pkg from '../package.json' assert { type: 'json' }
const { version } = pkg
export default {
version,

View file

@ -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,