Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: egoist/tsup
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v6.3.0
Choose a base ref
...
head repository: egoist/tsup
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v6.4.0
Choose a head ref
  • 5 commits
  • 10 files changed
  • 3 contributors

Commits on Nov 3, 2022

  1. feat: respect target config in tsconfig.json (#757)

    Co-authored-by: EGOIST <0x142857@gmail.com>
    await-ovo and egoist authored Nov 3, 2022
    Copy the full SHA
    906f124 View commit details
  2. Copy the full SHA
    44d3d47 View commit details
  3. fix: use rollup v3, closes #749

    egoist committed Nov 3, 2022
    Copy the full SHA
    9ce5c13 View commit details
  4. Copy the full SHA
    6cbbea1 View commit details
  5. feat: rebuild when package.json dependencies changed (#759)

    Co-authored-by: EGOIST <hi@egoist.dev>
    await-ovo and egoist authored Nov 3, 2022
    1
    Copy the full SHA
    d4b317b View commit details
Showing with 198 additions and 94 deletions.
  1. +4 −4 package.json
  2. +61 −49 pnpm-lock.yaml
  3. +6 −5 src/cli-main.ts
  4. +22 −15 src/esbuild/index.ts
  5. +25 −5 src/index.ts
  6. +25 −3 src/load.ts
  7. +2 −1 src/plugin.ts
  8. +3 −3 src/rollup.ts
  9. +9 −9 test/__snapshots__/index.test.ts.snap
  10. +41 −0 test/index.test.ts
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -26,7 +26,7 @@
"build-fast": "npm run build -- --no-dts"
},
"dependencies": {
"bundle-require": "^3.1.0",
"bundle-require": "^3.1.2",
"cac": "^6.7.12",
"chokidar": "^3.5.1",
"debug": "^4.3.1",
@@ -36,13 +36,13 @@
"joycon": "^3.0.1",
"postcss-load-config": "^3.0.1",
"resolve-from": "^5.0.0",
"rollup": "^2.74.1",
"rollup": "^3.2.5",
"source-map": "0.8.0-beta.0",
"sucrase": "^3.20.3",
"tree-kill": "^1.2.2"
},
"devDependencies": {
"@rollup/plugin-json": "4.1.0",
"@rollup/plugin-json": "5.0.1",
"@swc/core": "1.2.218",
"@types/debug": "4.1.7",
"@types/flat": "5.0.2",
@@ -57,7 +57,7 @@
"postcss-simple-vars": "6.0.3",
"prettier": "2.5.1",
"resolve": "1.20.0",
"rollup-plugin-dts": "4.2.1",
"rollup-plugin-dts": "5.0.0",
"rollup-plugin-hashbang": "2.2.2",
"strip-json-comments": "4.0.0",
"svelte": "3.46.4",
110 changes: 61 additions & 49 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 6 additions & 5 deletions src/cli-main.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { readFileSync } from 'fs'
import { join } from 'path'
import { cac } from 'cac'
import flat from 'flat'
import { Format, Options } from '.'
import { version } from '../package.json'
import { slash } from './utils'

function ensureArray(input: string): string[] {
@@ -58,7 +57,10 @@ export async function main(options: Options = {}) {
'Replace a global variable with an import from another file'
)
.option('--define.* <value>', 'Define compile-time constants')
.option('--external <name>', 'Mark specific packages / package.json (dependencies and peerDependencies) as external')
.option(
'--external <name>',
'Mark specific packages / package.json (dependencies and peerDependencies) as external'
)
.option('--global-name <name>', 'Global variable name for iife format')
.option('--jsxFactory <jsxFactory>', 'Name of JSX factory function', {
default: 'React.createElement',
@@ -145,8 +147,7 @@ export async function main(options: Options = {}) {

cli.help()

const pkgPath = join(__dirname, '../package.json')
cli.version(JSON.parse(readFileSync(pkgPath, 'utf8')).version)
cli.version(version)

cli.parse(process.argv, { run: false })
await cli.runMatchedCommand()
Loading