@egov3/system-design 1.0.14 → 1.0.15
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/@types/scss-modules.d.ts +5 -0
- package/jest.config.ts +2 -1
- package/package.json +9 -6
- package/tsconfig.json +15 -23
- package/@types/typings.d.ts +0 -1
package/jest.config.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import nextJest from 'next/jest';
|
|
2
|
+
import type { Config } from '@jest/types';
|
|
2
3
|
|
|
3
4
|
const createJestConfig = nextJest({
|
|
4
5
|
dir: './'
|
|
5
6
|
});
|
|
6
7
|
|
|
7
|
-
const customJestConfig = {
|
|
8
|
+
const customJestConfig: Config.InitialOptions = {
|
|
8
9
|
collectCoverage: true,
|
|
9
10
|
collectCoverageFrom: [
|
|
10
11
|
'src/**/*.tsx'
|
package/package.json
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@egov3/system-design",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.15",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"main": "index.
|
|
5
|
+
"main": "./dist/index.js",
|
|
6
|
+
"types": "./dist/index.d.ts",
|
|
6
7
|
"private": false,
|
|
7
8
|
"publishConfig": {
|
|
8
9
|
"access": "public"
|
|
@@ -12,12 +13,13 @@
|
|
|
12
13
|
"url": "https://github.com/Zhassulan-Baigozha/egov3-design.git"
|
|
13
14
|
},
|
|
14
15
|
"scripts": {
|
|
16
|
+
"build": "tsc --project tsconfig.json",
|
|
15
17
|
"lint": "next lint",
|
|
16
18
|
"test": "jest",
|
|
17
19
|
"test:unit:update": "jest -u",
|
|
18
20
|
"test:unit:coverage": "jest --coverage",
|
|
19
21
|
"lint-staged": "lint-staged",
|
|
20
|
-
"type-check": "tsc --project tsconfig.json --pretty --noEmit && echo
|
|
22
|
+
"type-check": "tsc --project tsconfig.json --pretty --noEmit && echo",
|
|
21
23
|
"prepare": "cross-env NODE_ENV=development yarn prepare:dev",
|
|
22
24
|
"prepare:dev": "husky install",
|
|
23
25
|
"storybook": "storybook dev -p 6006",
|
|
@@ -58,8 +60,8 @@
|
|
|
58
60
|
"@testing-library/react": "^14.3.1",
|
|
59
61
|
"@types/jest": "^29.5.14",
|
|
60
62
|
"@types/node": "^20.11.19",
|
|
61
|
-
"@types/react": "^18.3.
|
|
62
|
-
"@types/react-dom": "^18.3.
|
|
63
|
+
"@types/react": "^18.3.12",
|
|
64
|
+
"@types/react-dom": "^18.3.1",
|
|
63
65
|
"@types/react-test-renderer": "^18.0.7",
|
|
64
66
|
"@typescript-eslint/eslint-plugin": "^6.21.0",
|
|
65
67
|
"@typescript-eslint/parser": "^6.21.0",
|
|
@@ -79,7 +81,8 @@
|
|
|
79
81
|
"npm-check-updates": "^16.14.18",
|
|
80
82
|
"prettier": "^3.2.5",
|
|
81
83
|
"react-test-renderer": "^18.2.0",
|
|
82
|
-
"sass": "^1.
|
|
84
|
+
"sass": "^1.80.5",
|
|
85
|
+
"sass-loader": "^16.0.2",
|
|
83
86
|
"storybook": "^8.0.8",
|
|
84
87
|
"ts-node": "^10.9.2",
|
|
85
88
|
"typescript": "^5.4.0"
|
package/tsconfig.json
CHANGED
|
@@ -1,38 +1,30 @@
|
|
|
1
1
|
{
|
|
2
2
|
"compilerOptions": {
|
|
3
|
-
"
|
|
3
|
+
"target": "es6",
|
|
4
|
+
"module": "commonjs",
|
|
5
|
+
"jsx": "react-jsx",
|
|
6
|
+
"outDir": "./dist",
|
|
4
7
|
"baseUrl": "./",
|
|
5
|
-
"
|
|
8
|
+
"paths": {
|
|
9
|
+
"~utils/*": ["./src/utils/*"],
|
|
10
|
+
"~baseComponents": ["./src/baseComponents/index"],
|
|
11
|
+
"~svg": ["./src/svg/index"]
|
|
12
|
+
},
|
|
6
13
|
"lib": ["dom", "dom.iterable", "esnext"],
|
|
14
|
+
"types": ["@types/react", "@types/react-dom"],
|
|
7
15
|
"allowJs": true,
|
|
8
16
|
"skipLibCheck": true,
|
|
9
17
|
"strict": true,
|
|
10
|
-
"noEmit":
|
|
18
|
+
"noEmit": false,
|
|
19
|
+
"declaration": true,
|
|
11
20
|
"esModuleInterop": true,
|
|
12
|
-
"module": "ESNext",
|
|
13
21
|
"allowSyntheticDefaultImports": true,
|
|
14
22
|
"moduleResolution": "node",
|
|
15
23
|
"resolveJsonModule": true,
|
|
16
24
|
"isolatedModules": true,
|
|
17
|
-
"jsx": "preserve",
|
|
18
25
|
"incremental": true,
|
|
19
|
-
"plugins": [
|
|
20
|
-
{
|
|
21
|
-
"name": "next"
|
|
22
|
-
}
|
|
23
|
-
],
|
|
24
|
-
"paths": {
|
|
25
|
-
"~utils/*": ["./src/utils/*"],
|
|
26
|
-
"~baseComponents": ["./src/baseComponents/index"],
|
|
27
|
-
"~svg": ["./src/svg/index"]
|
|
28
|
-
}
|
|
26
|
+
"plugins": [{ "name": "next" }]
|
|
29
27
|
},
|
|
30
|
-
"include": [
|
|
31
|
-
|
|
32
|
-
"**/*.ts",
|
|
33
|
-
"**/*.tsx",
|
|
34
|
-
"**/*.css",
|
|
35
|
-
".next/types/**/*.ts"
|
|
36
|
-
],
|
|
37
|
-
"exclude": ["node_modules"]
|
|
28
|
+
"include": ["src/**/*.ts", "src/**/*.tsx", "src", "@types"],
|
|
29
|
+
"exclude": ["node_modules", "__tests__", "src/stories", "dist"]
|
|
38
30
|
}
|
package/@types/typings.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
declare module '*.module.scss';
|