weboptimizer 2.0.1637 → 2.0.1639
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/eslint.config.mjs +4 -4
- package/package.json +6 -6
package/eslint.config.mjs
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import { defineConfig } from 'eslint/config';
|
|
2
|
-
import eslintjs from '@eslint/js';
|
|
3
|
-
import javascriptPlugin from '@stylistic/eslint-plugin';
|
|
4
|
-
import typescriptParser from '@typescript-eslint/parser';
|
|
5
2
|
import google from 'eslint-config-google';
|
|
6
3
|
import jsdoc from 'eslint-plugin-jsdoc';
|
|
7
4
|
import { readFile, stat } from 'fs/promises';
|
|
@@ -9,6 +6,9 @@ import globals from 'globals';
|
|
|
9
6
|
import { basename, dirname, resolve } from 'path';
|
|
10
7
|
import { cwd } from 'process';
|
|
11
8
|
import typescript from 'typescript-eslint';
|
|
9
|
+
import eslintjs from '@eslint/js';
|
|
10
|
+
import javascriptPlugin from '@stylistic/eslint-plugin';
|
|
11
|
+
import typescriptParser from '@typescript-eslint/parser';
|
|
12
12
|
/**
|
|
13
13
|
* Checks if given path points to a valid file.
|
|
14
14
|
* @param filePath - Path to directory.
|
|
@@ -35,7 +35,7 @@ const PACKAGE_CONFIGURATION = JSON.parse(await readFile(resolve(cwd(), './packag
|
|
|
35
35
|
const LIBRARY_INDICATOR = PACKAGE_CONFIGURATION.webOptimizer?.library;
|
|
36
36
|
const IS_LIBRARY = LIBRARY_INDICATOR ?? true;
|
|
37
37
|
let TSCONFIG_FILE_PATH = '';
|
|
38
|
-
for (const filePath of ['./tsconfig.json', './node_modules/weboptimizer/tsconfig.' + `${IS_LIBRARY ? 'library' : 'application'}.json`]) if (await isFile(filePath)) {
|
|
38
|
+
for (const filePath of ['./tsconfig.eslint.json', './tsconfig.json', './tsconfig.application.json', './tsconfig.library.json', './node_modules/weboptimizer/tsconfig.' + `${IS_LIBRARY ? 'library' : 'application'}.json`]) if (await isFile(filePath)) {
|
|
39
39
|
TSCONFIG_FILE_PATH = filePath;
|
|
40
40
|
break;
|
|
41
41
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "weboptimizer",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1639",
|
|
4
4
|
"description": "A generic web optimizer, (module) bundler and development environment.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"webpack",
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
"babel-loader": "^10.0.0",
|
|
99
99
|
"babel-plugin-transform-modern-regexp": "^0.0.6",
|
|
100
100
|
"babel-preset-minify": "^0.5.2",
|
|
101
|
-
"clientnode": "3.0.
|
|
101
|
+
"clientnode": "3.0.1340",
|
|
102
102
|
"ejs": "^3.1.10",
|
|
103
103
|
"exports-loader": "^5.0.0",
|
|
104
104
|
"extract-loader": "^5.1.0",
|
|
@@ -132,13 +132,13 @@
|
|
|
132
132
|
"@typescript-eslint/parser": "^8.51.0",
|
|
133
133
|
"css-loader": "^7.1.2",
|
|
134
134
|
"cssnano": "^7.1.2",
|
|
135
|
-
"documentation-website": "^1.0.
|
|
135
|
+
"documentation-website": "^1.0.398",
|
|
136
136
|
"eslint": "^9.39.2",
|
|
137
137
|
"eslint-config-google": "^0.14.0",
|
|
138
138
|
"eslint-plugin-jsdoc": "^61.5.0",
|
|
139
139
|
"favicons": "^7.2.0",
|
|
140
140
|
"favicons-webpack-plugin": "^6.0.1",
|
|
141
|
-
"globals": "^
|
|
141
|
+
"globals": "^17.0.0",
|
|
142
142
|
"image-minimizer-webpack-plugin": "^4.1.4",
|
|
143
143
|
"jest": "^30.2.0",
|
|
144
144
|
"jsdoc": "^4.0.5",
|
|
@@ -423,7 +423,7 @@
|
|
|
423
423
|
"--emitDeclarationOnly",
|
|
424
424
|
"--project",
|
|
425
425
|
{
|
|
426
|
-
"__evaluate__": "filesystem.isFileSync(path.resolve(currentPath, 'tsconfig.json')) ? path.resolve(currentPath, 'tsconfig.json') : `${webOptimizerPath}/tsconfig.application.json`"
|
|
426
|
+
"__evaluate__": "filesystem.isFileSync(path.resolve(currentPath, 'tsconfig.json')) ? path.resolve(currentPath, 'tsconfig.json') : filesystem.isFileSync(path.resolve(currentPath, 'tsconfig.application.json')) ? path.resolve(currentPath, 'tsconfig.application.json') : filesystem.isFileSync(path.resolve(currentPath, 'tsconfig.library.json')) ? path.resolve(currentPath, 'tsconfig.library.json') : `${webOptimizerPath}/tsconfig.application.json`"
|
|
427
427
|
}
|
|
428
428
|
],
|
|
429
429
|
"command": "tsc"
|
|
@@ -433,7 +433,7 @@
|
|
|
433
433
|
"--noEmit",
|
|
434
434
|
"--project",
|
|
435
435
|
{
|
|
436
|
-
"__evaluate__": "
|
|
436
|
+
"__evaluate__": "self.commandLine['build:types'].arguments[self.commandLine['build:types'].arguments.length - 1]"
|
|
437
437
|
}
|
|
438
438
|
],
|
|
439
439
|
"command": "tsc"
|