@xtaskjs/socket-io 1.0.17 → 1.0.19

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,3 @@
1
+ {
2
+ "type": "commonjs"
3
+ }
@@ -0,0 +1,8 @@
1
+ import "reflect-metadata";
2
+ export * from "./types";
3
+ export * from "./tokens";
4
+ export * from "./metadata";
5
+ export * from "./configuration";
6
+ export * from "./decorators";
7
+ export * from "./socket-io.service";
8
+ export * from "./lifecycle";
@@ -0,0 +1,3 @@
1
+ import cjs from "../cjs/index.js";
2
+ export * from "../cjs/index.js";
3
+ export default cjs;
@@ -0,0 +1,3 @@
1
+ {
2
+ "type": "module"
3
+ }
package/package.json CHANGED
@@ -1,16 +1,17 @@
1
1
  {
2
2
  "name": "@xtaskjs/socket-io",
3
- "version": "1.0.17",
3
+ "version": "1.0.19",
4
4
  "description": "Socket.IO integration for xtaskjs.",
5
5
  "author": "Javier Rodriguez Soler",
6
6
  "homepage": "https://xtaskjs.io",
7
- "main": "dist/index.js",
8
- "types": "dist/index.d.ts",
7
+ "main": "dist/cjs/index.js",
8
+ "types": "dist/cjs/index.d.ts",
9
9
  "exports": {
10
10
  ".": {
11
- "types": "./dist/index.d.ts",
12
- "require": "./dist/index.js",
13
- "default": "./dist/index.js"
11
+ "types": "./dist/cjs/index.d.ts",
12
+ "import": "./dist/esm/index.js",
13
+ "require": "./dist/cjs/index.js",
14
+ "default": "./dist/esm/index.js"
14
15
  }
15
16
  },
16
17
  "files": [
@@ -36,25 +37,24 @@
36
37
  "license": "MIT",
37
38
  "dependencies": {
38
39
  "socket.io": "^4.8.1",
39
- "@xtaskjs/core": "^1.0.42"
40
+ "@xtaskjs/core": "^1.0.44"
40
41
  },
41
42
  "peerDependencies": {
42
43
  "reflect-metadata": "^0.1.12 || ^0.2.0"
43
44
  },
44
45
  "devDependencies": {
45
- "@jest/globals": "^30.1.2",
46
- "@types/jest": "^30.0.0",
47
- "jest": "^30.1.3",
48
46
  "nodemon": "^3.1.10",
49
- "ts-jest": "^29.4.4",
50
47
  "ts-node": "^10.9.2",
51
48
  "tsconfig-paths": "^4.2.0",
52
- "typescript": "^5.9.2"
49
+ "typescript": "^5.9.2",
50
+ "vitest": "^2.1.8",
51
+ "@vitest/coverage-v8": "^2.1.8"
53
52
  },
53
+ "module": "dist/esm/index.js",
54
54
  "scripts": {
55
- "build": "pnpm -C ../core build && rm -rf dist && tsc",
56
- "test": "jest --passWithNoTests",
57
- "test:coverage": "jest --coverage --runInBand",
55
+ "build": "rm -rf dist && tsc --outDir dist/cjs && node ../../scripts/postbuild-dual.mjs packages/socket-io",
56
+ "test": "vitest run --passWithNoTests",
57
+ "test:coverage": "vitest run --coverage",
58
58
  "coverage:open": "xdg-open coverage/lcov-report/index.html"
59
59
  }
60
60
  }
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes