twd-js 0.5.2 → 0.7.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.
@@ -0,0 +1,18 @@
1
+ import { rmSync as o } from "fs";
2
+ import { resolve as e } from "path";
3
+ function c() {
4
+ return {
5
+ name: "remove-mock-sw",
6
+ apply: "build",
7
+ closeBundle() {
8
+ try {
9
+ o(e("dist/mock-sw.js")), console.log("🧹 Removed mock-sw.js from build");
10
+ } catch {
11
+ console.log("🧹 No mock-sw.js found in build");
12
+ }
13
+ }
14
+ };
15
+ }
16
+ export {
17
+ c as removeMockServiceWorker
18
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "twd-js",
3
- "version": "0.5.2",
3
+ "version": "0.7.0",
4
4
  "description": "Test While Developing (TWD) - in-browser testing",
5
5
  "license": "MIT",
6
6
  "author": "BRIKEV",
@@ -23,6 +23,21 @@
23
23
  "types": "./dist/index.d.ts",
24
24
  "import": "./dist/twd.es.js",
25
25
  "require": "./dist/twd.umd.js"
26
+ },
27
+ "./runner": {
28
+ "types": "./dist/runner.d.ts",
29
+ "import": "./dist/runner.es.js",
30
+ "require": "./dist/runner.umd.js"
31
+ },
32
+ "./vite-plugin": {
33
+ "types": "./dist/vite-plugin.d.ts",
34
+ "import": "./dist/vite-plugin.es.js",
35
+ "require": "./dist/vite-plugin.umd.js"
36
+ },
37
+ "./runner-ci": {
38
+ "types": "./dist/runner-ci.d.ts",
39
+ "import": "./dist/runner-ci.es.js",
40
+ "require": "./dist/runner-ci.umd.js"
26
41
  }
27
42
  },
28
43
  "files": [
@@ -73,5 +88,8 @@
73
88
  "mock-service-worker",
74
89
  "frontend-testing",
75
90
  "typescript"
76
- ]
77
- }
91
+ ],
92
+ "dependencies": {
93
+ "chalk": "^5.6.2"
94
+ }
95
+ }