@spheceo/zbus 0.0.1

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.
@@ -0,0 +1,21 @@
1
+ name: CI
2
+ on:
3
+ push:
4
+ branches:
5
+ - "**"
6
+
7
+ jobs:
8
+ build:
9
+ runs-on: ubuntu-latest
10
+ steps:
11
+ - uses: actions/checkout@v5
12
+ - uses: pnpm/action-setup@v4
13
+ with:
14
+ version: 10
15
+ - uses: actions/setup-node@v6
16
+ with:
17
+ node-version: 20.x
18
+ cache: pnpm
19
+
20
+ - run: pnpm install --frozen-lockfile
21
+ - run: pnpm run ci
package/package.json ADDED
@@ -0,0 +1,25 @@
1
+ {
2
+ "name": "@spheceo/zbus",
3
+ "version": "0.0.1",
4
+ "main": "./dist/index.js",
5
+ "module": "./dist/index.mjs",
6
+ "types": "./dist/index.d.ts",
7
+ "publishConfig": {
8
+ "access": "public"
9
+ },
10
+ "scripts": {
11
+ "dev": "vitest",
12
+ "test": "vitest run",
13
+ "build": "tsup src/index.ts --format cjs,esm --dts",
14
+ "lint": "tsc",
15
+ "ci": "pnpm run lint && pnpm run test && pnpm run build"
16
+ },
17
+ "devDependencies": {
18
+ "@types/node": "^25.0.3",
19
+ "dotenv": "^17.2.3",
20
+ "tsup": "^8.5.1",
21
+ "tsx": "^4.21.0",
22
+ "typescript": "^5.9.3",
23
+ "vitest": "^4.0.16"
24
+ }
25
+ }
package/src/index.ts ADDED
@@ -0,0 +1 @@
1
+ console.log("Hello World!");
@@ -0,0 +1,7 @@
1
+ import { describe, expect, it } from "vitest"
2
+
3
+ describe("Whatever", () => {
4
+ it("Should pass CI", () => {
5
+ expect(1).toBe(1)
6
+ })
7
+ })
package/tsconfig.json ADDED
@@ -0,0 +1,13 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "es2016",
4
+ "module": "commonjs",
5
+
6
+ "esModuleInterop": true,
7
+ "forceConsistentCasingInFileNames": true,
8
+
9
+ "noEmit": true,
10
+ "strict": true,
11
+ "skipLibCheck": true
12
+ }
13
+ }