Merge pull request #44 from DeterminateSystems/tsup-build

Switch to tsup-based build
This commit is contained in:
Graham Christensen 2024-04-21 12:51:08 -04:00 committed by GitHub
commit 6718417fb9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 2814 additions and 3826 deletions

11
.editorconfig Normal file
View file

@ -0,0 +1,11 @@
# https://editorconfig.org
root = true
[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

View file

@ -29,7 +29,7 @@ jobs:
- name: Package
run: nix develop --command pnpm run package
- run: git status --porcelain=v1
- run: test $(git status --porcelain=v1 2>/dev/null | wc -l) -eq 0
- run: git diff --exit-code
test-no-nix:
name: "Test: Nix not installed"

2
.prettierignore Normal file
View file

@ -0,0 +1,2 @@
pnpm-lock.yaml

3
dist/index.d.ts generated vendored
View file

@ -1 +1,2 @@
export {};
export { }

2619
dist/index.js generated vendored

File diff suppressed because it is too large Load diff

1
dist/index.js.map generated vendored Normal file

File diff suppressed because one or more lines are too long

View file

@ -6,7 +6,7 @@
"types": "./dist/index.d.ts",
"type": "module",
"scripts": {
"build": "tsc",
"build": "tsup",
"format": "prettier --write .",
"lint": "eslint src/**/*.ts",
"package": "ncc build",
@ -39,7 +39,7 @@
"@types/node": "^20.12.7",
"@types/tail": "^2.2.3",
"@types/uuid": "^9.0.8",
"@typescript-eslint/eslint-plugin": "^7.6.0",
"@typescript-eslint/eslint-plugin": "^7.7.0",
"@vercel/ncc": "^0.38.1",
"eslint": "^8.57.0",
"eslint-import-resolver-typescript": "^3.6.1",
@ -47,6 +47,7 @@
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-prettier": "^5.1.3",
"prettier": "^3.2.5",
"tsup": "^8.0.2",
"typescript": "^5.4.5"
}
}

File diff suppressed because it is too large Load diff

15
tsup.config.ts Normal file
View file

@ -0,0 +1,15 @@
import { defineConfig } from "tsup";
export default defineConfig({
name: "detsys-ts",
entry: ["src/index.ts"],
format: ["esm"],
target: "node20",
bundle: true,
splitting: false,
sourcemap: true,
clean: true,
dts: {
resolve: true,
},
});