@reflex-stack/tsp-bun-example 0.1.2 → 0.1.5

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
@@ -8,15 +8,15 @@ For a total of <bundle-size id="total">120b</bundle-size>
8
8
 
9
9
  ## Install
10
10
 
11
- `bun i @zouloux/test-package-2`
11
+ `bun i @reflex-stack/tsp-bun-example`
12
12
 
13
13
  ## Usage
14
14
 
15
15
  ##### Main module
16
- - `import { ... } from "@zouloux/test-package-2"`
16
+ - `import { ... } from "@reflex-stack/tsp-bun-example"`
17
17
 
18
18
  ##### Sub module
19
- - `import { ... } from "@zouloux/test-package-2/submodule"`
19
+ - `import { ... } from "@reflex-stack/tsp-bun-example/submodule"`
20
20
 
21
21
  ## Build commands
22
22
 
@@ -24,8 +24,8 @@ For a total of <bundle-size id="total">120b</bundle-size>
24
24
  - `bun run build`
25
25
  ##### Test
26
26
  - `bun run test`
27
- ##### Publish
28
- - `bun run publish`
27
+ ##### Bump version
28
+ - `bun run bump`
29
29
 
30
30
  ---
31
31
  ## TSP
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reflex-stack/tsp-bun-example",
3
- "version": "0.1.2",
3
+ "version": "0.1.5",
4
4
  "type": "module",
5
5
  "author": "Neo",
6
6
  "license": "MIT",
@@ -30,7 +30,7 @@
30
30
  "scripts": {
31
31
  "build": "tsp build",
32
32
  "test": "tsp build --noSizeReport && tsp test --noIntro",
33
- "publish": "tsp build && tsp test --noIntro && tsp publish --noIntro"
33
+ "bump": "tsp build && tsp test && tsp bump"
34
34
  },
35
35
  "dependencies": {
36
36
  "@reflex-stack/tsp": "0.2.0",
package/tests/test.ts DELETED
@@ -1,27 +0,0 @@
1
- // If you have no tests, uncomment this
2
- // console.log("No test implemented.")
3
- // process.exit(0)
4
-
5
- // Import your code directly from src directory thanks to bun
6
- import { randomFunction } from "../src/index.js"
7
- import { subRandomFunction } from "../src/submodule/index.js"
8
- // Import Bun testing lib
9
- import { describe, test, expect } from "bun:test"
10
-
11
- describe("Main module", () => {
12
- test("Should call random", () => {
13
- const rootResult = randomFunction()
14
- expect(rootResult).toBe(5)
15
- })
16
- })
17
-
18
- describe("Sub module", () => {
19
- test("Should call sub random", () => {
20
- const subResult = subRandomFunction()
21
- expect(subResult).toBe(60)
22
- })
23
- // Test error example
24
- // test("Should fail", () => {
25
- // expect(5).toBe(12)
26
- // })
27
- })