Skip to content

Commit

Permalink
fixes after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
jtoar committed Apr 26, 2023
1 parent f8e6002 commit 7f7c7f5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
1 change: 0 additions & 1 deletion packages/create-redwood-app/.gitignore

This file was deleted.

1 change: 0 additions & 1 deletion packages/tui/.gitignore

This file was deleted.

8 changes: 4 additions & 4 deletions packages/tui/build.mjs
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
// See https://esbuild.github.io/getting-started/#bundling-for-node.

import fs from 'node:fs'

import * as esbuild from 'esbuild'

// Since this is a library, there's no bundling going on here by design.
// Instead we plan for this library to be bundled by leaf packages so-to-speak like create-redwood-app.
const result = await esbuild.build({
entryPoints: ['src/index.ts'],
format: 'cjs',
platform: 'node',
target: ['node18'],
outfile: 'dist/index.js',

// See https://esbuild.github.io/api/#metafile.
// For visualizing the bundle.
// See https://esbuild.github.io/api/#metafile and https://esbuild.github.io/analyze/.
metafile: true,
})

// See https://esbuild.github.io/analyze/.
fs.writeFileSync('meta.json', JSON.stringify(result.metafile))

0 comments on commit 7f7c7f5

Please sign in to comment.