Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 2
trim_trailing_whitespace = true

[*.md]
trim_trailing_whitespace = false
24 changes: 24 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: CI

on:
pull_request:

permissions:
contents: read

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
with:
bun-version: "1.3.14"
- name: Install dependencies
run: bun install --frozen-lockfile
- name: Type check
run: bun run typecheck
- name: Test
run: bun test
- name: Build
run: bun run build
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Changelog

All notable changes to this project will be documented in this file.

## [Unreleased]

### Added

- Continuous integration checks for typechecking, tests, and builds.
- EditorConfig defaults for consistent formatting.

### Fixed

- Build package artifacts before creating an npm package.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@
"dev:cli": "bun run src/cli/index.ts",
"dev:mcp": "bun run src/mcp/index.ts",
"dev:daemon": "bun run src/daemon/index.ts",
"prepack": "bun run build",
"prepublishOnly": "bun run build",
"postinstall": "mkdir -p $HOME/.hasna/dispatch 2>/dev/null || true"
},
Expand Down
1 change: 1 addition & 0 deletions src/scaffold.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ describe("scaffold", () => {
expect(pkg.type).toBe("module");
expect(pkg.license).toBe("Apache-2.0");
expect(pkg.publishConfig.access).toBe("public");
expect(pkg.scripts.prepack).toBe("bun run build");
});

test("exposes the three binaries", () => {
Expand Down
Loading