tkeron 0.0.8 → 0.0.9

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/changelog.md CHANGED
@@ -1,3 +1,11 @@
1
+ # v0.0.9
2
+
3
+ - improve testing
4
+
5
+ # v0.0.8
6
+
7
+ - fix cli commands
8
+
1
9
  # v0.0.7
2
10
 
3
11
  - replace commander for @tkeron/commands.
package/dist/main.js CHANGED
@@ -24,7 +24,7 @@ const main = (command = "tkeron", argv) => {
24
24
  const info = `${tkeronWord}\n\n tkeron ${version}\n esbuild ${esbuildV}\n`;
25
25
  if (process.argv.length === 2) {
26
26
  console["log"](info, `\n\n type '${command} help' to see commands\n\n`);
27
- process.exit(0);
27
+ return;
28
28
  }
29
29
  (0, commands_1.getCommands)()
30
30
  .addCommand("init")
package/jest.config.js ADDED
@@ -0,0 +1,8 @@
1
+ /** @type {import('ts-jest').JestConfigWithTsJest} */
2
+ module.exports = {
3
+ preset: "ts-jest",
4
+ testEnvironment: "node",
5
+ verbose: true,
6
+ collectCoverage: true,
7
+ testRegex: ".test.ts$",
8
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tkeron",
3
- "version": "0.0.8",
3
+ "version": "0.0.9",
4
4
  "description": "Micro framework for developing web user interfaces with typescript.",
5
5
  "bin": {
6
6
  "tkeron": "dist/index.js",
@@ -11,8 +11,7 @@
11
11
  "build": "tsc",
12
12
  "start": "node dist/index.js",
13
13
  "tk": "npm run build && node dist/index.js",
14
- "test": "rm -rf dist && npm run build && jest --roots dist --detectOpenHandles --coverage --coverageReporters=\"json-summary\" --verbose ",
15
- "coverage": "rm -rf dist && npm run build && jest --roots dist --detectOpenHandles --verbose --coverage ",
14
+ "test": "jest ",
16
15
  "cicd": "node dist/cicd.js",
17
16
  "lint": "prettier --write ."
18
17
  },
@@ -33,6 +32,7 @@
33
32
  "@types/jsdom": "^20.0.1",
34
33
  "jest": "^29.3.1",
35
34
  "prettier": "^3.0.3",
35
+ "ts-jest": "^29.1.1",
36
36
  "typescript": "^4.9.4"
37
37
  },
38
38
  "keywords": [