weboptimizer 2.0.1638 → 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 +3 -3
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 ['./eslint.tsconfig.json', './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",
|
|
@@ -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"
|