Skip to content

Commit 84651f1

Browse files
committed
chore(build): updates build process
1 parent 7c9dece commit 84651f1

File tree

2 files changed

+114
-96
lines changed

2 files changed

+114
-96
lines changed

packages/react-dadata/.npmignore

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
node_modules/
2+
pnpm-lock.yaml
3+
4+
.editorconfig
5+
6+
*.log
7+
*.tgz
8+
9+
.idea
10+
.vscode
11+
src/
12+
tsconfig.json
13+
setupTests.*
14+
*__tests__*
15+
.github
16+
coverage/
17+
example/

packages/react-dadata/package.json

Lines changed: 97 additions & 96 deletions
Original file line numberDiff line numberDiff line change
@@ -1,98 +1,99 @@
11
{
2-
"name": "react-dadata",
3-
"version": "2.23.1",
4-
"description": "React-компонент для подсказок адресов, организаций и банков с помощью сервиса DaData.ru",
5-
"main": "dist/cjs/index.js",
6-
"module": "dist/esm/index.js",
7-
"types": "dist/index.d.ts",
8-
"scripts": {
9-
"prepublishOnly": "pnpm run test && pnpm run build",
10-
"clean": "rimraf dist",
11-
"build:css": "lightningcss --minify --bundle --targets '>0.2%, ie 11' src/react-dadata.css -o dist/react-dadata.css",
12-
"build:css:ci": "./node_modules/lightningcss-cli-linux-x64-gnu/lightningcss --minify --bundle --targets '>0.2%, ie 11' src/react-dadata.css -o dist/react-dadata.css",
13-
"build:cjs": "tsc --module commonjs --target es5 --outDir dist/cjs",
14-
"build:esm": "tsc --module es2015 --target es5 --outDir dist/esm",
15-
"build:types": "tsc --declaration --emitDeclarationOnly --outDir dist",
16-
"build:ci": "NODE_ENV=production run-s clean build:css:ci build:cjs build:esm build:types",
17-
"build": "NODE_ENV=production run-s clean build:css build:cjs build:esm build:types",
18-
"size-build": "pnpm build:esm",
19-
"test:lint": "biome check src/ example/",
20-
"test:size-limit": "pnpm build:esm && size-limit",
21-
"test": "vitest --coverage",
22-
"vitest-preview": "vitest-preview"
23-
},
24-
"repository": {
25-
"type": "git",
26-
"url": "git+https://github.com/vitalybaev/react-dadata.git"
27-
},
28-
"dependencies": {
29-
"debounce": "^1.2.1",
30-
"highlight-words": "^1.2.1",
31-
"nanoid": "^3.3.6",
32-
"shallowequal": "^1.1.0"
33-
},
34-
"devDependencies": {
35-
"@size-limit/preset-small-lib": "^8.0.0",
36-
"@testing-library/jest-dom": "^6.4.8",
37-
"@testing-library/react": "^16.0.0",
38-
"@testing-library/user-event": "^14.5.2",
39-
"@types/debounce": "^1.2.1",
40-
"@types/node": "^18.16.3",
41-
"@types/react": "^18.3.3",
42-
"@types/shallowequal": "^1.1.1",
43-
"@vitest/coverage-v8": "^2.0.5",
44-
"jsdom": "^24.1.1",
45-
"lightningcss-cli": "^1.26.0",
46-
"lightningcss-cli-linux-x64-gnu": "^1.26.0",
47-
"msw": "^2.3.5",
48-
"react": "^18.3.1",
49-
"react-dom": "^18.3.1",
50-
"size-limit": "^8.0.0",
51-
"typescript": "^5.5.4",
52-
"vitest": "^2.0.5",
53-
"vitest-preview": "^0.0.1"
54-
},
55-
"peerDependencies": {
56-
"react": "^15.6 || ^16.0 || ^17.0 || ^18.0",
57-
"react-dom": "^15.6 || ^16.0 || ^17.0 || ^18.0"
58-
},
59-
"size-limit": [
60-
{
61-
"name": "AddressSuggestions",
62-
"path": "dist/esm/index.js",
63-
"import": "{ AddressSuggestions }",
64-
"limit": "6 KB"
65-
},
66-
{
67-
"name": "PartySuggestions",
68-
"path": "dist/esm/index.js",
69-
"import": "{ PartySuggestions }",
70-
"limit": "6 KB"
71-
},
72-
{
73-
"name": "FioSuggestions",
74-
"path": "dist/esm/index.js",
75-
"import": "{ FioSuggestions }",
76-
"limit": "6 KB"
77-
},
78-
{
79-
"name": "BankSuggestions",
80-
"path": "dist/esm/index.js",
81-
"import": "{ BankSuggestions }",
82-
"limit": "6 KB"
83-
}
84-
],
85-
"browserslist": {
86-
"production": [
87-
">0.2%",
88-
"ie 11",
89-
"not dead",
90-
"not op_mini all"
91-
],
92-
"development": [
93-
"last 1 chrome version",
94-
"last 1 firefox version",
95-
"last 1 safari version"
96-
]
97-
}
2+
"name": "react-dadata",
3+
"version": "2.23.2",
4+
"description": "React-компонент для подсказок адресов, организаций и банков с помощью сервиса DaData.ru",
5+
"main": "dist/cjs/index.js",
6+
"module": "dist/esm/index.js",
7+
"types": "dist/index.d.ts",
8+
"scripts": {
9+
"prepublishOnly": "pnpm run test:once && pnpm run build",
10+
"clean": "rimraf dist",
11+
"build:css": "lightningcss --minify --bundle --targets '>0.2%, ie 11' src/react-dadata.css -o dist/react-dadata.css",
12+
"build:css:ci": "./node_modules/lightningcss-cli-linux-x64-gnu/lightningcss --minify --bundle --targets '>0.2%, ie 11' src/react-dadata.css -o dist/react-dadata.css",
13+
"build:cjs": "tsc --module commonjs --target es5 --outDir dist/cjs",
14+
"build:esm": "tsc --module es2015 --target es5 --outDir dist/esm",
15+
"build:types": "tsc --declaration --emitDeclarationOnly --outDir dist",
16+
"build:ci": "NODE_ENV=production run-s clean build:css:ci build:cjs build:esm build:types",
17+
"build": "NODE_ENV=production run-s clean build:css build:cjs build:esm build:types",
18+
"size-build": "pnpm build:esm",
19+
"test:lint": "biome check src/ example/",
20+
"test:size-limit": "pnpm build:esm && size-limit",
21+
"test": "vitest --coverage",
22+
"test:once": "vitest run --coverage",
23+
"vitest-preview": "vitest-preview"
24+
},
25+
"repository": {
26+
"type": "git",
27+
"url": "git+https://github.com/vitalybaev/react-dadata.git"
28+
},
29+
"dependencies": {
30+
"debounce": "^1.2.1",
31+
"highlight-words": "^1.2.1",
32+
"nanoid": "^3.3.6",
33+
"shallowequal": "^1.1.0"
34+
},
35+
"devDependencies": {
36+
"@size-limit/preset-small-lib": "^8.0.0",
37+
"@testing-library/jest-dom": "^6.4.8",
38+
"@testing-library/react": "^16.0.0",
39+
"@testing-library/user-event": "^14.5.2",
40+
"@types/debounce": "^1.2.1",
41+
"@types/node": "^18.16.3",
42+
"@types/react": "^18.3.3",
43+
"@types/shallowequal": "^1.1.1",
44+
"@vitest/coverage-v8": "^2.0.5",
45+
"jsdom": "^24.1.1",
46+
"lightningcss-cli": "^1.26.0",
47+
"lightningcss-cli-linux-x64-gnu": "^1.26.0",
48+
"msw": "^2.3.5",
49+
"react": "^18.3.1",
50+
"react-dom": "^18.3.1",
51+
"size-limit": "^8.0.0",
52+
"typescript": "^5.5.4",
53+
"vitest": "^2.0.5",
54+
"vitest-preview": "^0.0.1"
55+
},
56+
"peerDependencies": {
57+
"react": "^15.6 || ^16.0 || ^17.0 || ^18.0",
58+
"react-dom": "^15.6 || ^16.0 || ^17.0 || ^18.0"
59+
},
60+
"size-limit": [
61+
{
62+
"name": "AddressSuggestions",
63+
"path": "dist/esm/index.js",
64+
"import": "{ AddressSuggestions }",
65+
"limit": "6 KB"
66+
},
67+
{
68+
"name": "PartySuggestions",
69+
"path": "dist/esm/index.js",
70+
"import": "{ PartySuggestions }",
71+
"limit": "6 KB"
72+
},
73+
{
74+
"name": "FioSuggestions",
75+
"path": "dist/esm/index.js",
76+
"import": "{ FioSuggestions }",
77+
"limit": "6 KB"
78+
},
79+
{
80+
"name": "BankSuggestions",
81+
"path": "dist/esm/index.js",
82+
"import": "{ BankSuggestions }",
83+
"limit": "6 KB"
84+
}
85+
],
86+
"browserslist": {
87+
"production": [
88+
">0.2%",
89+
"ie 11",
90+
"not dead",
91+
"not op_mini all"
92+
],
93+
"development": [
94+
"last 1 chrome version",
95+
"last 1 firefox version",
96+
"last 1 safari version"
97+
]
98+
}
9899
}

0 commit comments

Comments
 (0)