@raisenow/tamaro-cli 1.8.0-dev.3 → 1.8.0-dev.5
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/.idea/workspace.xml +76 -0
- package/dist/cli.js +73 -73
- package/dist/{env-LI5tXjy4.js → env-B20cxmcB.js} +22 -23
- package/dist/webpack.config.js +16 -10
- package/eslint.config.ts +0 -30
- package/out-tsc/node/eslint.config.d.ts +5 -0
- package/out-tsc/node/eslint.config.d.ts.map +1 -0
- package/out-tsc/node/tsconfig.node.tsbuildinfo +1 -1
- package/out-tsc/node/tsdown.config.d.ts +3 -3
- package/out-tsc/node/vitest.config.d.ts +3 -3
- package/package.json +1 -1
package/dist/webpack.config.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { E as logDataTable, b as resolveEslintPluginConfig, d as HTTPS_CRT_FILE, f as HTTPS_KEY_FILE, g as getRelativePaths, h as getPaths, k as logTitle, m as getIfCoreFns, p as extensions, r as getEnvVars, v as resolveApp } from "./env-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
1
|
+
import { E as logDataTable, b as resolveEslintPluginConfig, d as HTTPS_CRT_FILE, f as HTTPS_KEY_FILE, g as getRelativePaths, h as getPaths, k as logTitle, m as getIfCoreFns, p as extensions, r as getEnvVars, v as resolveApp } from "./env-B20cxmcB.js";
|
|
2
|
+
import { createRequire } from "node:module";
|
|
3
|
+
import { existsSync } from "node:fs";
|
|
4
|
+
import path from "node:path";
|
|
5
5
|
import { getIfUtils, removeEmpty } from "webpack-config-utils";
|
|
6
6
|
import { globSync } from "glob";
|
|
7
7
|
import ReactRefreshWebpackPlugin from "@pmmmwh/react-refresh-webpack-plugin";
|
|
@@ -36,7 +36,7 @@ var InterpolateHtmlPlugin = class {
|
|
|
36
36
|
});
|
|
37
37
|
hooks.afterTemplateExecution.tap(PLUGIN_NAME, (data) => {
|
|
38
38
|
Object.entries(this.replacements).forEach(([key, value]) => {
|
|
39
|
-
data.html = data.html.
|
|
39
|
+
data.html = data.html.replaceAll(new RegExp(`%${escapeStringRegexp(key)}%`, "g"), value ?? "");
|
|
40
40
|
});
|
|
41
41
|
return data;
|
|
42
42
|
});
|
|
@@ -109,7 +109,7 @@ const getWebpackConfig = (env) => {
|
|
|
109
109
|
symlinks: true,
|
|
110
110
|
extensions: [...extensions, "..."],
|
|
111
111
|
modules: [paths.appNodeModules, "node_modules"],
|
|
112
|
-
alias: { "core-js": dirname(require.resolve("core-js/package.json")) },
|
|
112
|
+
alias: { "core-js": path.dirname(require.resolve("core-js/package.json")) },
|
|
113
113
|
plugins: [new TsconfigPathsPlugin({
|
|
114
114
|
configFile: paths.appTsConfig,
|
|
115
115
|
extensions
|
|
@@ -163,7 +163,13 @@ const getWebpackConfig = (env) => {
|
|
|
163
163
|
corejs: "3.49.0",
|
|
164
164
|
debug: ifDebug(),
|
|
165
165
|
modules: false,
|
|
166
|
-
useBuiltIns: "usage"
|
|
166
|
+
useBuiltIns: "usage",
|
|
167
|
+
exclude: [
|
|
168
|
+
"@babel/plugin-transform-async-to-generator",
|
|
169
|
+
"@babel/plugin-transform-regenerator",
|
|
170
|
+
"@babel/plugin-proposal-async-generator-functions",
|
|
171
|
+
"@babel/plugin-transform-parameters"
|
|
172
|
+
]
|
|
167
173
|
}],
|
|
168
174
|
[require.resolve("@babel/preset-typescript"), { allowDeclareFields: true }],
|
|
169
175
|
[require.resolve("@babel/preset-react"), { runtime: "automatic" }]
|
|
@@ -258,8 +264,8 @@ const getWebpackConfig = (env) => {
|
|
|
258
264
|
server: ifHttps({
|
|
259
265
|
type: "https",
|
|
260
266
|
options: {
|
|
261
|
-
cert: resolve(paths.root, HTTPS_CRT_FILE),
|
|
262
|
-
key: resolve(paths.root, HTTPS_KEY_FILE)
|
|
267
|
+
cert: path.resolve(paths.root, HTTPS_CRT_FILE),
|
|
268
|
+
key: path.resolve(paths.root, HTTPS_KEY_FILE)
|
|
263
269
|
}
|
|
264
270
|
})
|
|
265
271
|
},
|
|
@@ -277,7 +283,7 @@ const getWebpackConfig = (env) => {
|
|
|
277
283
|
ifMin(new CleanWebpackPlugin({})),
|
|
278
284
|
...appHtmlFiles.map((file) => new HtmlWebpackPlugin({
|
|
279
285
|
template: file,
|
|
280
|
-
filename: basename(file),
|
|
286
|
+
filename: path.basename(file),
|
|
281
287
|
inject: false,
|
|
282
288
|
minify: false
|
|
283
289
|
})),
|
package/eslint.config.ts
CHANGED
|
@@ -18,36 +18,6 @@ export default defineConfig([
|
|
|
18
18
|
rules: {
|
|
19
19
|
'jsdoc/convert-to-jsdoc-comments': OFF,
|
|
20
20
|
'no-useless-assignment': OFF,
|
|
21
|
-
|
|
22
|
-
// todo: remove these rules
|
|
23
|
-
'@typescript-eslint/restrict-template-expressions': OFF,
|
|
24
|
-
'perfectionist/sort-objects': OFF,
|
|
25
|
-
'perfectionist/sort-object-types': OFF,
|
|
26
|
-
'perfectionist/sort-intersection-types': OFF,
|
|
27
|
-
'perfectionist/sort-switch-case': OFF,
|
|
28
|
-
'unicorn/prefer-top-level-await': OFF,
|
|
29
|
-
'unicorn/prefer-node-protocol': OFF,
|
|
30
|
-
'unicorn/import-style': OFF,
|
|
31
|
-
'unicorn/no-process-exit': OFF,
|
|
32
|
-
'unicorn/consistent-function-scoping': OFF,
|
|
33
|
-
'unicorn/prefer-spread': OFF,
|
|
34
|
-
'unicorn/no-array-callback-reference': OFF,
|
|
35
|
-
'unicorn/catch-error-name': OFF,
|
|
36
|
-
'unicorn/text-encoding-identifier-case': OFF,
|
|
37
|
-
'unicorn/explicit-length-check': OFF,
|
|
38
|
-
'unicorn/no-lonely-if': OFF,
|
|
39
|
-
'unicorn/prefer-set-has': OFF,
|
|
40
|
-
'unicorn/prefer-string-replace-all': OFF,
|
|
41
|
-
'unicorn/prefer-optional-catch-binding': OFF,
|
|
42
|
-
'unicorn/no-array-sort': OFF,
|
|
43
|
-
'unicorn/prefer-number-properties': OFF,
|
|
44
|
-
'unicorn/prefer-ternary': OFF,
|
|
45
|
-
'import-x/consistent-type-specifier-style': OFF,
|
|
46
|
-
'regexp/no-useless-flag': OFF,
|
|
47
|
-
'regexp/use-ignore-case': OFF,
|
|
48
|
-
'regexp/prefer-w': OFF,
|
|
49
|
-
'@typescript-eslint/no-var-requires': OFF,
|
|
50
|
-
'@typescript-eslint/no-unused-vars': OFF,
|
|
51
21
|
},
|
|
52
22
|
},
|
|
53
23
|
{
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eslint.config.d.ts","sourceRoot":"","sources":["../../eslint.config.ts"],"names":[],"mappings":";AAQA,wBAqBE"}
|