Skip to content

Commit 96ce3ef

Browse files
chore: specify JSON module type in tsup configs
1 parent 3345c51 commit 96ce3ef

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/client/tsup.config.browser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import {defineConfig} from 'tsup'
22
import {esbuildGzipOutJsPlugin} from '../../scripts/esbuild-gzip-js'
33
import {readFile} from 'fs/promises'
4-
import pkg from './package.json'
4+
import pkg from './package.json' with {type: 'json'}
55

66
const minify = !(process.env.ESBUILD_MINIFY === '0')
77

packages/client/tsup.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import {defineConfig} from 'tsup'
22
import {esbuildGzipOutJsPlugin} from '../../scripts/esbuild-gzip-js'
3-
import pkg from './package.json'
3+
import pkg from './package.json' with {type: 'json'}
44

55
const minify = !(process.env.ESBUILD_MINIFY === '0')
66

0 commit comments

Comments
 (0)