Skip to content

Commit

Permalink
build: set up build script
Browse files Browse the repository at this point in the history
  • Loading branch information
0xyaco committed Jul 18, 2024
1 parent f291b45 commit 0e8fc5a
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/blocknumber/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dist/
2 changes: 1 addition & 1 deletion packages/blocknumber/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "",
"main": "index.ts",
"scripts": {
"build": "tsc",
"build": "tsc -p tsconfig.build.json",
"lint": "eslint .",
"lint:fix": "pnpm lint --fix",
"format": "prettier --check .",
Expand Down
6 changes: 5 additions & 1 deletion packages/blocknumber/src/helloWorld.spec.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
import { describe, expect, it } from "vitest";

import foo from "./helloWorld";

describe("test", () => {
it("pass", () => {
expect(1).toBe(1);
const result = foo();

expect(result).toBe("bar");
});
});
3 changes: 3 additions & 0 deletions packages/blocknumber/src/helloWorld.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export default function foo() {
return "bar";
}

0 comments on commit 0e8fc5a

Please sign in to comment.