Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
"lint:other": "npm run prettier -- --check",
"prettier": "prettier '**/*.{json,yaml,yml,md}'",
"unimported": "npx unimported --no-cache",
"package": "rm -rf dist && tsc -p tsconfig.package.json && copyfiles -u 1 'src/**/*.{css,scss,svg}' dist/src",
"package": "rm -rf dist && tsc -p tsconfig.package.json && copyfiles -u 1 'src/**/*.{css,scss,svg}' dist",
"test": "react-app-rewired test",
"eject": "react-scripts eject",
"prepublishOnly": "npm run package",
Expand Down Expand Up @@ -157,7 +157,7 @@
"source-map-explorer": "^2.5.3",
"stylelint": "^15.11.0",
"ts-jest": "^29.1.5",
"typescript": "^5.4.3"
"typescript": "^5.5.3"
},
"peerDependencies": {
"prop-types": "^15.8.1",
Expand Down
5 changes: 2 additions & 3 deletions src/containers/Tenant/Acl/Acl.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,12 @@ import React from 'react';

import type {DefinitionListItem} from '@gravity-ui/components';
import {DefinitionList} from '@gravity-ui/components';
//TODO: fix import
import type {DefinitionListSingleItem} from '@gravity-ui/components/build/esm/components/DefinitionList/types';

import {ResponseError} from '../../../components/Errors/ResponseError';
import {Loader} from '../../../components/Loader';
import {schemaAclApi} from '../../../store/reducers/schemaAcl/schemaAcl';
import type {TACE} from '../../../types/api/acl';
import {valueIsDefined} from '../../../utils';
import {cn} from '../../../utils/cn';
import i18n from '../i18n';

Expand Down Expand Up @@ -109,7 +108,7 @@ function getAclListItems(acl?: TACE[]): DefinitionListItem[] {
}
return undefined;
})
.filter(Boolean) as DefinitionListSingleItem[],
.filter(valueIsDefined),
};
});
}
Expand Down
4 changes: 3 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
"extends": "@gravity-ui/tsconfig/tsconfig",
"compilerOptions": {
"outDir": "build/esm",
"module": "esnext",
"target": "ES2018",
"module": "ESNext",
"moduleResolution": "Bundler",
"jsx": "react-jsx",
"lib": ["dom", "dom.iterable", "esnext"],
"allowSyntheticDefaultImports": true,
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@
"extends": "./tsconfig",
"compilerOptions": {
"outDir": "dist",
"rootDir": "src",
"declaration": true,
"noEmit": false,
"importHelpers": true
},
"include": ["src/**/*", "package.json"],
"include": ["src/**/*"],
"exclude": ["src/setup*", "src/index.tsx", "**/__tests__", "**/tests"]
}