From b68471f3c0795956d3a959bc4241019fba301922 Mon Sep 17 00:00:00 2001 From: Vitaly Baev Date: Sat, 28 Dec 2024 14:27:06 +0100 Subject: [PATCH] fix(tooling): copy license file from the root of the monorepo during publish --- .gitignore | 1 + packages/react-dadata/package.json | 8 +++----- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index 10ecbcc..b8338a8 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ dist/ coverage/ .DS_Store .vitest-preview/ +packages/*/license diff --git a/packages/react-dadata/package.json b/packages/react-dadata/package.json index e784f50..dec5b8d 100644 --- a/packages/react-dadata/package.json +++ b/packages/react-dadata/package.json @@ -1,18 +1,16 @@ { "name": "react-dadata", - "version": "2.23.3", + "version": "2.24.0", "description": "React-компонент для подсказок адресов, организаций и банков с помощью сервиса DaData.ru", "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/index.d.ts", "files": [ "dist", - "package.json", - "../../license", - "../../readme.md" + "package.json" ], "scripts": { - "prepublishOnly": "pnpm run test:once && pnpm run build", + "prepublishOnly": "cp ../../license ./license && pnpm run test:once && pnpm run build", "clean": "rimraf dist", "build:css": "lightningcss --minify --bundle --targets '>0.2%, ie 11' src/react-dadata.css -o dist/react-dadata.css", "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",