@reflex-stack/tsp-bun-example 0.1.1 → 0.1.4

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
@@ -0,0 +1 @@
1
+ export declare function randomFunction(): number;
package/dist/index.js ADDED
@@ -0,0 +1,5 @@
1
+ // Root index file, export elements here
2
+ // Import nothing from submodule to keep things separated
3
+ export function randomFunction() {
4
+ return 5;
5
+ }
@@ -0,0 +1 @@
1
+ export declare function subRandomFunction(): number;
@@ -0,0 +1,7 @@
1
+ // Sub-module index file, export elements here
2
+ // You can import elements from root
3
+ // Always import with the js extension, event in ts files
4
+ import { randomFunction } from "../index.js";
5
+ export function subRandomFunction() {
6
+ return randomFunction() * 12;
7
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reflex-stack/tsp-bun-example",
3
- "version": "0.1.1",
3
+ "version": "0.1.4",
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",