Skip to content

Commit

Permalink
clarify script
Browse files Browse the repository at this point in the history
  • Loading branch information
silesky committed Jul 12, 2024
1 parent 4eeb18e commit 3786f9e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/browser/scripts/vendor/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@
*/
const { execSync } = require('node:child_process')
const path = require('node:path')

const { createTSFromJSLib } = require('./helpers')
const configPath = 'scripts/vendor/webpack.config.vendor.js'

// build tsub.js with webpack
const configPath = path.join(__dirname, 'webpack.config.vendor.js')
execSync(`yarn webpack --config ${configPath}`, { stdio: 'inherit' })

// create tsub.ts artifact and move to source directory
const tsubInputBundlePath = path.join(__dirname, 'dist.vendor', 'tsub.js')
const tsubOutputVendorDir = 'src/vendor/tsub'
createTSFromJSLib(tsubInputBundlePath, tsubOutputVendorDir, {
Expand Down

0 comments on commit 3786f9e

Please sign in to comment.