Skip to content

Commit

Permalink
build: remove import..assert
Browse files Browse the repository at this point in the history
  • Loading branch information
trezy committed Dec 12, 2024
1 parent 772aa4c commit ce2a8b3
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions rollup.config.mjs
Original file line number Diff line number Diff line change
@@ -1,17 +1,11 @@
// Module imports
import path from 'node:path'
import esbuild from 'rollup-plugin-esbuild'
import sourcemaps from 'rollup-plugin-sourcemaps'
import commonjs from '@rollup/plugin-commonjs'
import esbuild from 'rollup-plugin-esbuild'
import fs from 'node:fs/promises'
import json from '@rollup/plugin-json'
import path from 'node:path'
import resolve from '@rollup/plugin-node-resolve'





// Local imports
import repo from './package.json' assert { type: 'json' }
import sourcemaps from 'rollup-plugin-sourcemaps'



Expand Down Expand Up @@ -48,7 +42,9 @@ const paths = {
library: path.join(process.cwd(), 'lib'),
source: path.join(process.cwd(), 'src'),
}
const external = Object.keys(repo.peerDependencies).map(convertPackageNameToRegExp)
const packageJSONString = await fs.readFile('./package.json', 'utf8')
const packageData = JSON.parse(packageJSONString)
const external = Object.keys(packageData.peerDependencies).map(convertPackageNameToRegExp)



Expand Down

0 comments on commit ce2a8b3

Please sign in to comment.