@synple.dev/core 0.0.0 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -6,10 +6,14 @@ To install dependencies:
6
6
  bun install
7
7
  ```
8
8
 
9
- To run:
9
+ To build the application:
10
10
 
11
11
  ```bash
12
- bun run index.ts
12
+ bun build
13
13
  ```
14
14
 
15
- This project was created using `bun init` in bun v1.3.14. [Bun](https://bun.com) is a fast all-in-one JavaScript runtime.
15
+ To publish the application:
16
+
17
+ ```bash
18
+ bun publish --access public
19
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synple.dev/core",
3
- "version": "0.0.0",
3
+ "version": "0.1.0",
4
4
  "module": "index.ts",
5
5
  "type": "module",
6
6
  "private": false,
@@ -11,9 +11,12 @@
11
11
  "typescript": "^5"
12
12
  },
13
13
  "dependencies": {
14
- "bunup": "^0.16.32"
14
+ "bunup": "^0.16.32",
15
+ "vitest": "^4.1.8"
15
16
  },
16
17
  "scripts": {
17
- "build": "bunup"
18
+ "build": "bunup",
19
+ "publish": "bun publish --access public",
20
+ "test": "vitest"
18
21
  }
19
22
  }
@@ -0,0 +1,8 @@
1
+ import { describe, expect, it } from "vitest";
2
+ import { hello } from "../src";
3
+
4
+ describe('hello', () => {
5
+ it("Returns the correct message", () => {
6
+ expect(hello()).toEqual("Hello world!")
7
+ })
8
+ })
package/index.ts DELETED
@@ -1 +0,0 @@
1
- console.log("Hello via Bun!");