@raisenow/tamaro-cli 1.0.18 → 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.
@@ -1,20 +1,3 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
3
- var __hasOwnProp = Object.prototype.hasOwnProperty;
4
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
5
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6
- var __spreadValues = (a, b) => {
7
- for (var prop in b || (b = {}))
8
- if (__hasOwnProp.call(b, prop))
9
- __defNormalProp(a, prop, b[prop]);
10
- if (__getOwnPropSymbols)
11
- for (var prop of __getOwnPropSymbols(b)) {
12
- if (__propIsEnum.call(b, prop))
13
- __defNormalProp(a, prop, b[prop]);
14
- }
15
- return a;
16
- };
17
-
18
1
  // node_modules/tsup/assets/esm_shims.js
19
2
  import { fileURLToPath } from "url";
20
3
  import path from "path";
@@ -231,7 +214,6 @@ var assertEnvValid = (env) => {
231
214
  };
232
215
 
233
216
  export {
234
- __spreadValues,
235
217
  logTitle,
236
218
  logError,
237
219
  logCommand,
package/dist/cli.js CHANGED
@@ -12,112 +12,105 @@ import {
12
12
  resolveBin,
13
13
  resolveOwn,
14
14
  runCommandSync
15
- } from "./chunk-XKMRWPOF.js";
15
+ } from "./chunk-6RQVBAWK.js";
16
16
 
17
17
  // src/cli.ts
18
18
  import { createCommand } from "commander";
19
19
 
20
20
  // package.json
21
- var name = "@raisenow/tamaro-cli";
22
- var version = "1.0.18";
23
- var author = {
24
- name: "RaiseNow",
25
- email: "development@raisenow.com"
26
- };
27
- var type = "module";
28
- var scripts = {
29
- prepare: "npm run build",
30
- start: "npm run dev",
31
- build: "tsup src/cli.ts src/webpack.config.ts --clean --shims --format esm",
32
- "build:watch": "npm run build -- --watch --ignore-watch .idea",
33
- docs: "npx -y http-server . --cors -o /readme.html",
34
- lint: "eslint --fix . && prettier --write ."
35
- };
36
- var bin = "dist/cli.js";
37
- var engines = {
38
- node: ">=16",
39
- npm: ">=8"
40
- };
41
- var dependencies = {
42
- "@babel/cli": "^7.17.10",
43
- "@babel/core": "^7.18.2",
44
- "@babel/plugin-proposal-decorators": "^7.18.2",
45
- "@babel/plugin-syntax-dynamic-import": "^7.8.3",
46
- "@babel/plugin-transform-runtime": "^7.18.2",
47
- "@babel/preset-env": "^7.18.2",
48
- "@babel/preset-react": "^7.17.12",
49
- "@babel/preset-typescript": "^7.17.12",
50
- "@babel/runtime-corejs3": "^7.18.3",
51
- "@pmmmwh/react-refresh-webpack-plugin": "^0.5.7",
52
- "@statoscope/webpack-plugin": "^5.20.1",
53
- "@types/columnify": "^1.5.1",
54
- "@types/lodash": "^4.14.182",
55
- "@types/node": "^17.0.41",
56
- "@types/node-notifier": "^8.0.2",
57
- "@types/resolve-bin": "^0.4.1",
58
- "@types/webpack-config-utils": "^2.3.1",
59
- "@typescript-eslint/eslint-plugin": "^5.27.1",
60
- "@typescript-eslint/parser": "^5.27.1",
61
- autoprefixer: "^10.4.7",
62
- "babel-loader": "^8.2.5",
63
- "babel-plugin-lodash": "^3.3.4",
64
- chalk: "^5.0.1",
65
- "clean-webpack-plugin": "^4.0.0",
66
- columnify: "^1.6.0",
67
- commander: "^9.3.0",
68
- "copy-webpack-plugin": "^11.0.0",
69
- "core-js": "^3.22.8",
70
- "css-loader": "^6.7.1",
71
- "css-minimizer-webpack-plugin": "^4.0.0",
72
- dotenv: "^16.0.1",
73
- "dotenv-expand": "^8.0.3",
74
- "escape-string-regexp": "^5.0.0",
75
- eslint: "^8.17.0",
76
- "eslint-config-prettier": "^8.5.0",
77
- "eslint-plugin-node": "^11.1.0",
78
- "eslint-plugin-promise": "^6.0.0",
79
- "eslint-webpack-plugin": "^3.1.1",
80
- execa: "^6.1.0",
81
- "file-loader": "^6.2.0",
82
- "fork-ts-checker-webpack-plugin": "^7.2.11",
83
- glob: "^8.0.3",
84
- "html-loader": "^3.1.0",
85
- "html-webpack-plugin": "^5.5.0",
86
- "json-loader": "^0.5.7",
87
- lodash: "^4.17.21",
88
- "mini-css-extract-plugin": "^2.6.0",
89
- "node-notifier": "^10.0.1",
90
- portfinder: "^1.0.28",
91
- postcss: "^8.4.14",
92
- "postcss-custom-properties": "^12.1.7",
93
- "postcss-loader": "^7.0.0",
94
- prettier: "^2.6.2",
95
- "react-refresh": "^0.13.0",
96
- "resolve-url-loader": "^5.0.0",
97
- sass: "^1.52.3",
98
- "sass-loader": "^13.0.0",
99
- "source-map-loader": "^3.0.1",
100
- "strip-indent": "^4.0.0",
101
- "style-loader": "^3.3.1",
102
- "tsconfig-paths-webpack-plugin": "^3.5.2",
103
- tsup: "^6.1.0",
104
- typescript: "^4.7.3",
105
- "url-loader": "^4.1.1",
106
- webpack: "^5.73.0",
107
- "webpack-cli": "^4.9.2",
108
- "webpack-config-utils": "^2.3.1",
109
- "webpack-dev-server": "^4.9.2",
110
- "yaml-loader": "^0.8.0"
111
- };
112
21
  var package_default = {
113
- name,
114
- version,
115
- author,
116
- type,
117
- scripts,
118
- bin,
119
- engines,
120
- dependencies
22
+ name: "@raisenow/tamaro-cli",
23
+ version: "1.0.19",
24
+ author: {
25
+ name: "RaiseNow",
26
+ email: "development@raisenow.com"
27
+ },
28
+ type: "module",
29
+ scripts: {
30
+ prepare: "npm run build",
31
+ start: "npm run dev",
32
+ build: "tsup src/cli.ts src/webpack.config.ts --clean --shims --format esm",
33
+ "build:watch": "npm run build -- --watch --ignore-watch .idea",
34
+ docs: "npx -y http-server . --cors -o /readme.html",
35
+ lint: "eslint --fix . && prettier --write ."
36
+ },
37
+ bin: "dist/cli.js",
38
+ engines: {
39
+ node: ">=16",
40
+ npm: ">=8"
41
+ },
42
+ dependencies: {
43
+ "@babel/cli": "^7.18.6",
44
+ "@babel/core": "^7.18.6",
45
+ "@babel/plugin-proposal-decorators": "^7.18.6",
46
+ "@babel/plugin-syntax-dynamic-import": "^7.8.3",
47
+ "@babel/plugin-transform-runtime": "^7.18.6",
48
+ "@babel/preset-env": "^7.18.6",
49
+ "@babel/preset-react": "^7.18.6",
50
+ "@babel/preset-typescript": "^7.18.6",
51
+ "@babel/runtime-corejs3": "^7.18.6",
52
+ "@pmmmwh/react-refresh-webpack-plugin": "^0.5.7",
53
+ "@statoscope/webpack-plugin": "^5.22.0",
54
+ "@types/columnify": "^1.5.1",
55
+ "@types/lodash": "^4.14.182",
56
+ "@types/node": "^18.0.1",
57
+ "@types/node-notifier": "^8.0.2",
58
+ "@types/resolve-bin": "^0.4.1",
59
+ "@types/webpack-config-utils": "^2.3.1",
60
+ "@typescript-eslint/eslint-plugin": "^5.30.4",
61
+ "@typescript-eslint/parser": "^5.30.4",
62
+ autoprefixer: "^10.4.7",
63
+ "babel-loader": "^8.2.5",
64
+ "babel-plugin-istanbul": "^6.1.1",
65
+ "babel-plugin-lodash": "^3.3.4",
66
+ chalk: "^5.0.1",
67
+ "clean-webpack-plugin": "^4.0.0",
68
+ columnify: "^1.6.0",
69
+ commander: "^9.3.0",
70
+ "copy-webpack-plugin": "^11.0.0",
71
+ "core-js": "^3.23.3",
72
+ "css-loader": "^6.7.1",
73
+ "css-minimizer-webpack-plugin": "^4.0.0",
74
+ dotenv: "^16.0.1",
75
+ "dotenv-expand": "^8.0.3",
76
+ "escape-string-regexp": "^5.0.0",
77
+ eslint: "^8.19.0",
78
+ "eslint-config-prettier": "^8.5.0",
79
+ "eslint-plugin-node": "^11.1.0",
80
+ "eslint-plugin-promise": "^6.0.0",
81
+ "eslint-webpack-plugin": "^3.2.0",
82
+ execa: "^6.1.0",
83
+ "file-loader": "^6.2.0",
84
+ "fork-ts-checker-webpack-plugin": "^7.2.11",
85
+ glob: "^8.0.3",
86
+ "html-loader": "^3.1.2",
87
+ "html-webpack-plugin": "^5.5.0",
88
+ "json-loader": "^0.5.7",
89
+ lodash: "^4.17.21",
90
+ "mini-css-extract-plugin": "^2.6.1",
91
+ "node-notifier": "^10.0.1",
92
+ portfinder: "^1.0.28",
93
+ postcss: "^8.4.14",
94
+ "postcss-custom-properties": "^12.1.7",
95
+ "postcss-loader": "^7.0.0",
96
+ prettier: "^2.7.1",
97
+ "react-refresh": "^0.14.0",
98
+ "resolve-url-loader": "^5.0.0",
99
+ sass: "^1.53.0",
100
+ "sass-loader": "^13.0.2",
101
+ "source-map-loader": "^4.0.0",
102
+ "strip-indent": "^4.0.0",
103
+ "style-loader": "^3.3.1",
104
+ "tsconfig-paths-webpack-plugin": "^3.5.2",
105
+ tsup: "^6.1.3",
106
+ typescript: "^4.7.4",
107
+ "url-loader": "^4.1.1",
108
+ webpack: "^5.73.0",
109
+ "webpack-cli": "^4.10.0",
110
+ "webpack-config-utils": "^2.3.1",
111
+ "webpack-dev-server": "^4.9.3",
112
+ "yaml-loader": "^0.8.0"
113
+ }
121
114
  };
122
115
 
123
116
  // src/lib/constants.ts
@@ -1,5 +1,4 @@
1
1
  import {
2
- __spreadValues,
3
2
  extensions,
4
3
  getEnvVars,
5
4
  getIfCoreFns,
@@ -9,7 +8,7 @@ import {
9
8
  logTitle,
10
9
  moduleFileExtensions,
11
10
  resolveApp
12
- } from "./chunk-XKMRWPOF.js";
11
+ } from "./chunk-6RQVBAWK.js";
13
12
 
14
13
  // src/webpack.config.ts
15
14
  import { createRequire } from "module";
@@ -36,7 +35,7 @@ var PLUGIN_NAME = "InterpolateHtmlPlugin";
36
35
  var InterpolateHtmlPlugin = class {
37
36
  replacements;
38
37
  constructor(replacements) {
39
- this.replacements = __spreadValues({}, replacements);
38
+ this.replacements = { ...replacements };
40
39
  }
41
40
  apply(compiler) {
42
41
  compiler.hooks.compilation.tap(PLUGIN_NAME, (compilation) => {
@@ -88,10 +87,11 @@ var getWebpackConfig = async (env) => {
88
87
  }),
89
88
  {
90
89
  loader: require2.resolve("css-loader"),
91
- options: __spreadValues({
90
+ options: {
92
91
  sourceMap: ifNotMin(),
93
- importLoaders: 3
94
- }, cssOptions)
92
+ importLoaders: 3,
93
+ ...cssOptions
94
+ }
95
95
  },
96
96
  {
97
97
  loader: require2.resolve("postcss-loader"),
@@ -206,7 +206,8 @@ var getWebpackConfig = async (env) => {
206
206
  ],
207
207
  require2.resolve("@babel/plugin-syntax-dynamic-import"),
208
208
  require2.resolve("babel-plugin-lodash"),
209
- ifHmr(require2.resolve("react-refresh/babel"))
209
+ ifHmr(require2.resolve("react-refresh/babel")),
210
+ ifNotMin(require2.resolve("babel-plugin-istanbul"))
210
211
  ])
211
212
  }
212
213
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@raisenow/tamaro-cli",
3
- "version": "1.0.18",
3
+ "version": "1.0.19",
4
4
  "author": {
5
5
  "name": "RaiseNow",
6
6
  "email": "development@raisenow.com"
@@ -20,74 +20,75 @@
20
20
  "npm": ">=8"
21
21
  },
22
22
  "dependencies": {
23
- "@babel/cli": "^7.17.10",
24
- "@babel/core": "^7.18.2",
25
- "@babel/plugin-proposal-decorators": "^7.18.2",
23
+ "@babel/cli": "^7.18.6",
24
+ "@babel/core": "^7.18.6",
25
+ "@babel/plugin-proposal-decorators": "^7.18.6",
26
26
  "@babel/plugin-syntax-dynamic-import": "^7.8.3",
27
- "@babel/plugin-transform-runtime": "^7.18.2",
28
- "@babel/preset-env": "^7.18.2",
29
- "@babel/preset-react": "^7.17.12",
30
- "@babel/preset-typescript": "^7.17.12",
31
- "@babel/runtime-corejs3": "^7.18.3",
27
+ "@babel/plugin-transform-runtime": "^7.18.6",
28
+ "@babel/preset-env": "^7.18.6",
29
+ "@babel/preset-react": "^7.18.6",
30
+ "@babel/preset-typescript": "^7.18.6",
31
+ "@babel/runtime-corejs3": "^7.18.6",
32
32
  "@pmmmwh/react-refresh-webpack-plugin": "^0.5.7",
33
- "@statoscope/webpack-plugin": "^5.20.1",
33
+ "@statoscope/webpack-plugin": "^5.22.0",
34
34
  "@types/columnify": "^1.5.1",
35
35
  "@types/lodash": "^4.14.182",
36
- "@types/node": "^17.0.41",
36
+ "@types/node": "^18.0.1",
37
37
  "@types/node-notifier": "^8.0.2",
38
38
  "@types/resolve-bin": "^0.4.1",
39
39
  "@types/webpack-config-utils": "^2.3.1",
40
- "@typescript-eslint/eslint-plugin": "^5.27.1",
41
- "@typescript-eslint/parser": "^5.27.1",
40
+ "@typescript-eslint/eslint-plugin": "^5.30.4",
41
+ "@typescript-eslint/parser": "^5.30.4",
42
42
  "autoprefixer": "^10.4.7",
43
43
  "babel-loader": "^8.2.5",
44
+ "babel-plugin-istanbul": "^6.1.1",
44
45
  "babel-plugin-lodash": "^3.3.4",
45
46
  "chalk": "^5.0.1",
46
47
  "clean-webpack-plugin": "^4.0.0",
47
48
  "columnify": "^1.6.0",
48
49
  "commander": "^9.3.0",
49
50
  "copy-webpack-plugin": "^11.0.0",
50
- "core-js": "^3.22.8",
51
+ "core-js": "^3.23.3",
51
52
  "css-loader": "^6.7.1",
52
53
  "css-minimizer-webpack-plugin": "^4.0.0",
53
54
  "dotenv": "^16.0.1",
54
55
  "dotenv-expand": "^8.0.3",
55
56
  "escape-string-regexp": "^5.0.0",
56
- "eslint": "^8.17.0",
57
+ "eslint": "^8.19.0",
57
58
  "eslint-config-prettier": "^8.5.0",
58
59
  "eslint-plugin-node": "^11.1.0",
59
60
  "eslint-plugin-promise": "^6.0.0",
60
- "eslint-webpack-plugin": "^3.1.1",
61
+ "eslint-webpack-plugin": "^3.2.0",
61
62
  "execa": "^6.1.0",
62
63
  "file-loader": "^6.2.0",
63
64
  "fork-ts-checker-webpack-plugin": "^7.2.11",
64
65
  "glob": "^8.0.3",
65
- "html-loader": "^3.1.0",
66
+ "html-loader": "^3.1.2",
66
67
  "html-webpack-plugin": "^5.5.0",
67
68
  "json-loader": "^0.5.7",
68
69
  "lodash": "^4.17.21",
69
- "mini-css-extract-plugin": "^2.6.0",
70
+ "mini-css-extract-plugin": "^2.6.1",
70
71
  "node-notifier": "^10.0.1",
71
72
  "portfinder": "^1.0.28",
72
73
  "postcss": "^8.4.14",
73
74
  "postcss-custom-properties": "^12.1.7",
74
75
  "postcss-loader": "^7.0.0",
75
- "prettier": "^2.6.2",
76
- "react-refresh": "^0.13.0",
76
+ "prettier": "^2.7.1",
77
+ "react-refresh": "^0.14.0",
77
78
  "resolve-url-loader": "^5.0.0",
78
- "sass": "^1.52.3",
79
- "sass-loader": "^13.0.0",
80
- "source-map-loader": "^3.0.1",
79
+ "sass": "^1.53.0",
80
+ "sass-loader": "^13.0.2",
81
+ "source-map-loader": "^4.0.0",
81
82
  "strip-indent": "^4.0.0",
82
83
  "style-loader": "^3.3.1",
83
84
  "tsconfig-paths-webpack-plugin": "^3.5.2",
84
- "tsup": "^6.1.0",
85
- "typescript": "^4.7.3",
85
+ "tsup": "^6.1.3",
86
+ "typescript": "^4.7.4",
86
87
  "url-loader": "^4.1.1",
87
88
  "webpack": "^5.73.0",
88
- "webpack-cli": "^4.9.2",
89
+ "webpack-cli": "^4.10.0",
89
90
  "webpack-config-utils": "^2.3.1",
90
- "webpack-dev-server": "^4.9.2",
91
+ "webpack-dev-server": "^4.9.3",
91
92
  "yaml-loader": "^0.8.0"
92
93
  }
93
94
  }
@@ -206,6 +206,7 @@ const getWebpackConfig = async (env: any): Promise<Configuration> => {
206
206
  require.resolve('@babel/plugin-syntax-dynamic-import'),
207
207
  require.resolve('babel-plugin-lodash'),
208
208
  ifHmr(require.resolve('react-refresh/babel')),
209
+ ifNotMin(require.resolve('babel-plugin-istanbul')),
209
210
  ]),
210
211
  },
211
212
  },