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: tinylibs/tinyexec
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 0.3.2
Choose a base ref
...
head repository: tinylibs/tinyexec
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 1.0.0
Choose a head ref
  • 1 commit
  • 3 files changed
  • 1 contributor

Commits on Mar 18, 2025

  1. feat: migrate to ESM-only build (#47)

    Switches the build setup to only output ESM now that `require(esm)` is a
    thing.
    43081j authored Mar 18, 2025

    Verified

    This commit was signed with the committer’s verified signature.
    serhalp Philippe Serhal
    Copy the full SHA
    da5f619 View commit details
Showing with 11 additions and 9 deletions.
  1. +9 −0 .github/workflows/ci.yml
  2. +1 −8 package.json
  3. +1 −1 tsup.config.ts
9 changes: 9 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -39,3 +39,12 @@ jobs:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run test
if: matrix.node-version != 'latest'
# TODO (43081j): remove the following once there's some way to
# tell node not to try run typescript sources in a way that doesn't
# break <23 node
- run: npm run test
name: "npm run test (without type stripping)"
env:
NODE_OPTIONS: --no-experimental-strip-types
if: matrix.node-version == 'latest'
9 changes: 1 addition & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -5,10 +5,7 @@
"description": "A minimal library for executing processes in Node",
"main": "./dist/main.js",
"files": [
"dist",
"!dist/node_modules",
"!dist/cjs/test",
"!dist/esm/test"
"dist"
],
"scripts": {
"build": "npm run build:types && tsup",
@@ -54,10 +51,6 @@
"import": {
"types": "./dist/main.d.ts",
"default": "./dist/main.js"
},
"require": {
"types": "./dist/main.d.cts",
"default": "./dist/main.cjs"
}
},
"./package.json": "./package.json"
2 changes: 1 addition & 1 deletion tsup.config.ts
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@ import { defineConfig } from "tsup";
export default defineConfig({
entryPoints: ["src/main.ts"],
outDir: "dist",
format: ["esm", "cjs"],
format: ["esm"],
tsconfig: "./tsconfig.json",
target: "es2022",
minify: false,