@lukaskj/xmonkey 2.2.5 → 2.2.6
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 +1 -1
- package/dist/build.js +0 -0
- package/package.json +30 -28
package/README.md
CHANGED
|
@@ -112,4 +112,4 @@ xmonkey src/example-console-script.tsx
|
|
|
112
112
|
|
|
113
113
|
### Known bugs
|
|
114
114
|
|
|
115
|
-
- The UiScript render function has a
|
|
115
|
+
- The UiScript render function has a bug that it cannot have any hook or it won't work. The workaround is to return a single component in the UiScript that this component can use any preact hook as usual. See example [here](./examples/src/whatsapp-theme/whatsapp-theme.tsx).
|
package/dist/build.js
CHANGED
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,38 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lukaskj/xmonkey",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.6",
|
|
4
4
|
"author": "lukaskj",
|
|
5
5
|
"license": "ISC",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"clean": "rimraf dist coverage .rollup.cache",
|
|
8
|
-
"prebuild": "pnpm run clean",
|
|
9
|
-
"prepublish": "pnpm run build",
|
|
10
|
-
"build:old": "node esbuild/build.mjs",
|
|
11
|
-
"build": "pnpm build:esm && pnpm build:bin && pnpm copy-styles",
|
|
12
|
-
"build:esm": "tsc -p tsconfig.build.json",
|
|
13
|
-
"build:cjs": "tsc -p tsconfig.build.json --module CommonJS --outDir dist/cjs",
|
|
14
|
-
"build:bin": "esbuild src/build.ts --platform=node --format=cjs --packages=external --bundle --sourcemap=inline --outfile=dist/build.js",
|
|
15
|
-
"build:prod": "pnpm run lint && pnpm run build",
|
|
16
|
-
"build:dev": "DEBUG=1 node esbuild/build.mjs",
|
|
17
|
-
"build:debug": "DEBUG=1 node esbuild/build.mjs",
|
|
18
|
-
"copy-styles": "cp -R src/styles/ dist/styles",
|
|
19
|
-
"dev": "nodemon",
|
|
20
|
-
"start": "tsx ./src/build.ts",
|
|
21
|
-
"format": "prettier --write src/",
|
|
22
|
-
"lint": "tsc --noEmit && eslint \"{src,apps,libs,test}/**/*.{ts,tsx}\" --fix",
|
|
23
|
-
"test": "jest --config ./jest.config.js --maxWorkers=1",
|
|
24
|
-
"test:watch": "pnpm run test -- --watch",
|
|
25
|
-
"test:cov": "pnpm run test -- --coverage",
|
|
26
|
-
"test:debug": "-- node --inspect=0.0.0.0:5001 -r ts-node/register node_modules/jest/bin/jest.js --runInBand --config ./jest.config.js",
|
|
27
|
-
"prepare": "husky"
|
|
28
|
-
},
|
|
29
6
|
"dependencies": {
|
|
30
7
|
"esbuild": "^0.20.1",
|
|
31
8
|
"esbuild-sass-plugin": "^3.1.0",
|
|
32
9
|
"json5": "^2.2.3",
|
|
33
10
|
"postcss": "^8.4.35",
|
|
34
11
|
"postcss-modules": "^6.0.0",
|
|
35
|
-
"preact": "^10.
|
|
12
|
+
"preact": "^10.26.9"
|
|
13
|
+
},
|
|
14
|
+
"peerDependencies": {
|
|
15
|
+
"preact": "^10.26.9"
|
|
36
16
|
},
|
|
37
17
|
"devDependencies": {
|
|
38
18
|
"@faker-js/faker": "^8.4.1",
|
|
@@ -48,12 +28,12 @@
|
|
|
48
28
|
"husky": "^9.0.11",
|
|
49
29
|
"jest": "^29.7.0",
|
|
50
30
|
"lint-staged": "^15.2.2",
|
|
51
|
-
"nodemon": "^3.1.
|
|
31
|
+
"nodemon": "^3.1.10",
|
|
52
32
|
"prettier": "^3.2.5",
|
|
53
33
|
"rimraf": "^5.0.5",
|
|
54
34
|
"ts-jest": "^29.1.2",
|
|
55
35
|
"tslib": "^2.6.2",
|
|
56
|
-
"tsx": "^4.
|
|
36
|
+
"tsx": "^4.20.3",
|
|
57
37
|
"typescript": "^5.3.0"
|
|
58
38
|
},
|
|
59
39
|
"engines": {
|
|
@@ -96,5 +76,27 @@
|
|
|
96
76
|
],
|
|
97
77
|
"bin": {
|
|
98
78
|
"xmonkey": "dist/build.js"
|
|
79
|
+
},
|
|
80
|
+
"scripts": {
|
|
81
|
+
"clean": "rimraf dist coverage .rollup.cache",
|
|
82
|
+
"prebuild": "pnpm run clean",
|
|
83
|
+
"prepublish": "pnpm run build",
|
|
84
|
+
"build:old": "node esbuild/build.mjs",
|
|
85
|
+
"build": "pnpm build:esm && pnpm build:bin && pnpm copy-styles",
|
|
86
|
+
"build:esm": "tsc -p tsconfig.build.json",
|
|
87
|
+
"build:cjs": "tsc -p tsconfig.build.json --module CommonJS --outDir dist/cjs",
|
|
88
|
+
"build:bin": "esbuild src/build.ts --platform=node --format=cjs --packages=external --bundle --sourcemap=inline --outfile=dist/build.js",
|
|
89
|
+
"build:prod": "pnpm run lint && pnpm run build",
|
|
90
|
+
"build:dev": "DEBUG=1 node esbuild/build.mjs",
|
|
91
|
+
"build:debug": "DEBUG=1 node esbuild/build.mjs",
|
|
92
|
+
"copy-styles": "cp -R src/styles/ dist/styles",
|
|
93
|
+
"dev": "nodemon",
|
|
94
|
+
"start": "tsx ./src/build.ts",
|
|
95
|
+
"format": "prettier --write src/",
|
|
96
|
+
"lint": "tsc --noEmit && eslint \"{src,apps,libs,test}/**/*.{ts,tsx}\" --fix",
|
|
97
|
+
"test": "jest --config ./jest.config.js --maxWorkers=1",
|
|
98
|
+
"test:watch": "pnpm run test -- --watch",
|
|
99
|
+
"test:cov": "pnpm run test -- --coverage",
|
|
100
|
+
"test:debug": "-- node --inspect=0.0.0.0:5001 -r ts-node/register node_modules/jest/bin/jest.js --runInBand --config ./jest.config.js"
|
|
99
101
|
}
|
|
100
|
-
}
|
|
102
|
+
}
|