Skip to content

Commit

Permalink
fix(bindgen): remove rollup configurations
Browse files Browse the repository at this point in the history
Replaced by tsc.
  • Loading branch information
thewtex committed Nov 4, 2023
1 parent 40c5d62 commit 84e78df
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 84 deletions.
42 changes: 0 additions & 42 deletions src/bindgen/typescript/resources/rollup.browser.config.js

This file was deleted.

32 changes: 0 additions & 32 deletions src/bindgen/typescript/resources/rollup.node.config.js

This file was deleted.

10 changes: 0 additions & 10 deletions src/bindgen/typescript/write-support-files.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,20 +61,10 @@ function writeSupportFiles(outputDir, forNode, bindgenResource, packageName, pac
const demoJsUtilities = path.join(outputDir, 'test', 'browser', 'demo-app', 'utilities.js')
writeIfOverrideNotPresent(demoJsUtilities, fs.readFileSync(bindgenResource(path.join('demo-app', 'utilities.js')), { encoding: 'utf8', flag: 'r' }))

const rollupConfigPath = path.join(outputDir, 'build', 'rollup.browser.config.js')
if (!fs.existsSync(rollupConfigPath)) {
fs.copyFileSync(bindgenResource('rollup.browser.config.js'), rollupConfigPath)
}

const viteConfigPath = path.join(outputDir, 'build', 'vite.config.js')
if (!fs.existsSync(viteConfigPath)) {
fs.copyFileSync(bindgenResource('vite.config.js'), viteConfigPath)
}
} else {
const rollupConfigPath = path.join(outputDir, 'build', 'rollup.node.config.js')
if (!fs.existsSync(rollupConfigPath)) {
fs.copyFileSync(bindgenResource('rollup.node.config.js'), rollupConfigPath)
}
}

const tsConfigPath = path.join(outputDir, 'tsconfig.json')
Expand Down

0 comments on commit 84e78df

Please sign in to comment.