create-windowless-app 11.0.0 → 11.0.2

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 CHANGED
@@ -29,17 +29,17 @@ Pre-Requisites for template to work:
29
29
  ## Quick Overview
30
30
 
31
31
  ```sh
32
- npx create-windowsless-app my-app
32
+ npx create-windowless-app my-app
33
33
  ```
34
34
  Note: There's an open issue regarding running npx on Windows when the user folder path contains a space.
35
35
  For more info and a workaround: [npx#146](https://github.com/zkat/npx/issues/146)
36
36
 
37
37
  <details><summary>Or with npm</summary>
38
38
  <p>
39
- You can install create-windowsless-app globally:
39
+ You can install create-windowless-app globally:
40
40
 
41
41
  ```sh
42
- npm install -g create-windowsless-app
42
+ npm install -g create-windowless-app
43
43
  ```
44
44
 
45
45
  And then you can run:
package/dist/cliParser.js CHANGED
@@ -30,6 +30,7 @@ const validateInput = (argv) => {
30
30
  return argv;
31
31
  };
32
32
  const parseCommand = (argv) => __awaiter(void 0, void 0, void 0, function* () {
33
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
33
34
  const command = (0, yargs_1.default)((0, helpers_1.hideBin)(argv))
34
35
  .command("* [projectName]", "project name", (yargs) => {
35
36
  return yargs.positional("projectName", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-windowless-app",
3
- "version": "11.0.0",
3
+ "version": "11.0.2",
4
4
  "description": "Create a windowless NodeJS app",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -9,7 +9,7 @@
9
9
  },
10
10
  "scripts": {
11
11
  "prepare": "npm run husky-install && npx fix-lockfile-integrity",
12
- "husky-install": "git config --get core.hookspath || husky install",
12
+ "husky-install": "git config --get core.hookspath || husky",
13
13
  "prebuild": "npm run test",
14
14
  "build": "npm run build:no-test",
15
15
  "build:no-test": "npm run tsc && npm run add-shebang && npm run package",
@@ -56,51 +56,51 @@
56
56
  },
57
57
  "homepage": "https://github.com/yoavain/create-windowless-app#readme",
58
58
  "devDependencies": {
59
- "@tsconfig/node20": "20.1.1",
60
- "@types/cross-spawn": "6.0.3",
61
- "@types/fs-extra": "11.0.1",
62
- "@types/inquirer": "8.2.6",
63
- "@types/jest": "29.5.4",
64
- "@types/mock-fs": "4.13.1",
65
- "@types/node": "20.5.1",
66
- "@types/node-notifier": "8.0.2",
67
- "@types/validate-npm-package-name": "4.0.0",
59
+ "@tsconfig/node20": "20.1.4",
60
+ "@types/cross-spawn": "6.0.6",
61
+ "@types/fs-extra": "11.0.4",
62
+ "@types/inquirer": "8.2.10",
63
+ "@types/jest": "29.5.12",
64
+ "@types/mock-fs": "4.13.4",
65
+ "@types/node": "20.12.8",
66
+ "@types/node-notifier": "8.0.5",
67
+ "@types/validate-npm-package-name": "4.0.2",
68
68
  "@types/winston": "2.4.4",
69
- "@typescript-eslint/eslint-plugin": "5.62.0",
70
- "@typescript-eslint/parser": "5.62.0",
69
+ "@typescript-eslint/eslint-plugin": "7.8.0",
70
+ "@typescript-eslint/parser": "7.8.0",
71
71
  "add-shebang": "0.1.0",
72
- "copy-webpack-plugin": "11.0.0",
72
+ "copy-webpack-plugin": "12.0.2",
73
73
  "cross-env": "7.0.3",
74
74
  "del": "6.1.1",
75
- "eslint": "8.49.0",
76
- "eslint-plugin-import": "2.28.1",
77
- "eslint-plugin-jest": "27.2.3",
78
- "eslint-plugin-node": "11.1.0",
75
+ "eslint": "8.57.0",
76
+ "eslint-plugin-import": "2.29.1",
77
+ "eslint-plugin-jest": "28.4.0",
78
+ "eslint-plugin-n": "17.4.0",
79
79
  "eslint-plugin-security": "1.7.1",
80
80
  "global-npm": "0.5.0",
81
- "husky": "8.0.3",
81
+ "husky": "9.0.11",
82
82
  "jest": "29.7.0",
83
- "lint-staged": "13.3.0",
83
+ "lint-staged": "15.2.2",
84
84
  "mock-fs": "5.2.0",
85
85
  "mocked-env": "1.3.5",
86
86
  "node-notifier": "10.0.1",
87
87
  "nyc": "15.1.0",
88
88
  "postject": "1.0.0-alpha.6",
89
- "prettier": "3.0.3",
90
- "rimraf": "5.0.1",
89
+ "prettier": "3.2.5",
90
+ "rimraf": "5.0.5",
91
91
  "tmp-promise": "3.0.3",
92
- "ts-jest": "29.1.1",
93
- "ts-loader": "9.4.4",
94
- "ts-node": "10.9.1",
95
- "typescript": "5.2.2",
96
- "webpack": "5.88.2",
92
+ "ts-jest": "29.1.2",
93
+ "ts-loader": "9.5.1",
94
+ "ts-node": "10.9.2",
95
+ "typescript": "5.4.5",
96
+ "webpack": "5.91.0",
97
97
  "webpack-cli": "5.1.4",
98
- "winston": "3.10.0"
98
+ "winston": "3.13.0"
99
99
  },
100
100
  "dependencies": {
101
101
  "chalk": "4.1.2",
102
102
  "cross-spawn": "7.0.3",
103
- "fs-extra": "11.1.1",
103
+ "fs-extra": "11.2.0",
104
104
  "inquirer": "8.2.6",
105
105
  "validate-npm-package-name": "5.0.0",
106
106
  "yargs": "17.7.2"
@@ -32,6 +32,7 @@ const logger: winston.Logger = winston.createLogger({
32
32
  // Notifier init
33
33
  const snoreToastPath: string = executable.endsWith(".exe") ? path.resolve(executable, "../", "snoretoast-x64.exe") : null;
34
34
  let notifierOptions: Option = { withFallback: false, customPath: snoreToastPath };
35
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
35
36
  const notifier: any = new WindowsToaster(notifierOptions);
36
37
 
37
38
  // Log message
@@ -39,7 +40,7 @@ logger.log("info", `"${AppName}" started with ${argv ? argv.join("; ") : "no arg
39
40
  logger.log("info", `Notifier started with options ${JSON.stringify(notifierOptions)}`);
40
41
 
41
42
  // Notify
42
- const notification: any = { title: `${AppName}`, message: "Hello World", actions: ["Log", "Close"] };
43
+ const notification = { title: `${AppName}`, message: "Hello World", actions: ["Log", "Close"] };
43
44
  notifier.notify(notification);
44
45
  notifier.on("log", () => {
45
46
  const file: string = path.join(__dirname, "..", filename);