Skip to content

Commit 761b29e

Browse files
authored
fix: package update (#977)
1 parent d2c3751 commit 761b29e

File tree

5 files changed

+13
-11
lines changed

5 files changed

+13
-11
lines changed

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
"lint:other": "npm run prettier -- --check",
6767
"prettier": "prettier '**/*.{json,yaml,yml,md}'",
6868
"unimported": "npx unimported --no-cache",
69-
"package": "rm -rf dist && tsc -p tsconfig.package.json && copyfiles -u 1 'src/**/*.{css,scss,svg}' dist/src",
69+
"package": "rm -rf dist && tsc -p tsconfig.package.json && copyfiles -u 1 'src/**/*.{css,scss,svg}' dist",
7070
"test": "react-app-rewired test",
7171
"eject": "react-scripts eject",
7272
"prepublishOnly": "npm run package",
@@ -157,7 +157,7 @@
157157
"source-map-explorer": "^2.5.3",
158158
"stylelint": "^15.11.0",
159159
"ts-jest": "^29.1.5",
160-
"typescript": "^5.4.3"
160+
"typescript": "^5.5.3"
161161
},
162162
"peerDependencies": {
163163
"prop-types": "^15.8.1",

src/containers/Tenant/Acl/Acl.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,12 @@ import React from 'react';
22

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

86
import {ResponseError} from '../../../components/Errors/ResponseError';
97
import {Loader} from '../../../components/Loader';
108
import {schemaAclApi} from '../../../store/reducers/schemaAcl/schemaAcl';
119
import type {TACE} from '../../../types/api/acl';
10+
import {valueIsDefined} from '../../../utils';
1211
import {cn} from '../../../utils/cn';
1312
import i18n from '../i18n';
1413

@@ -109,7 +108,7 @@ function getAclListItems(acl?: TACE[]): DefinitionListItem[] {
109108
}
110109
return undefined;
111110
})
112-
.filter(Boolean) as DefinitionListSingleItem[],
111+
.filter(valueIsDefined),
113112
};
114113
});
115114
}

tsconfig.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
"extends": "@gravity-ui/tsconfig/tsconfig",
33
"compilerOptions": {
44
"outDir": "build/esm",
5-
"module": "esnext",
5+
"target": "ES2018",
6+
"module": "ESNext",
7+
"moduleResolution": "Bundler",
68
"jsx": "react-jsx",
79
"lib": ["dom", "dom.iterable", "esnext"],
810
"allowSyntheticDefaultImports": true,

tsconfig.package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@
22
"extends": "./tsconfig",
33
"compilerOptions": {
44
"outDir": "dist",
5+
"rootDir": "src",
56
"declaration": true,
67
"noEmit": false,
78
"importHelpers": true
89
},
9-
"include": ["src/**/*", "package.json"],
10+
"include": ["src/**/*"],
1011
"exclude": ["src/setup*", "src/index.tsx", "**/__tests__", "**/tests"]
1112
}

0 commit comments

Comments
 (0)