Skip to content

Commit

Permalink
Merge pull request #82 from DeterminateSystems/tsup-build
Browse files Browse the repository at this point in the history
Switch to tsup for building
  • Loading branch information
lucperkins authored May 2, 2024
2 parents 330a0ca + 337589f commit 10f43c0
Show file tree
Hide file tree
Showing 7 changed files with 772 additions and 1,507 deletions.
2 changes: 2 additions & 0 deletions dist/index.d.ts

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

1,482 changes: 752 additions & 730 deletions dist/index.js

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion dist/main.d.ts

This file was deleted.

773 changes: 0 additions & 773 deletions dist/main.js

This file was deleted.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
"name": "nix-installer-action",
"version": "1.0.0",
"description": "You can use [`nix-installer`](https://github.com/DeterminateSystems/nix-installer) as a Github Action:",
"main": "./dist/main.js",
"types": "./dist/main.d.ts",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"type": "module",
"scripts": {
"build": "tsc",
"build": "tsup",
"format": "prettier --write .",
"check-fmt": "prettier --check .",
"lint": "eslint src/**/*.ts",
Expand Down
File renamed without changes.
15 changes: 15 additions & 0 deletions tsup.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { defineConfig } from "tsup";
import { name } from "./package.json";

export default defineConfig({
name,
entry: ["src/index.ts"],
format: ["esm"],
target: "node20",
bundle: true,
splitting: false,
clean: true,
dts: {
resolve: true,
},
});

0 comments on commit 10f43c0

Please sign in to comment.