Skip to content

Commit

Permalink
Публикация в npm
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeche committed Dec 24, 2024
1 parent 2bd493b commit 04799d4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
8 changes: 1 addition & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,7 @@

## Установка

Так как собранный npm-пакет хранится в GitHub, для установки редактора сначала необходимо сделать файл `.npmrc` в основной папке вашего проекта и добавить туда следующую строку:

```
@tamtam-chat:registry=https://npm.pkg.github.com
```

Затем выполняем стандартную установку:
Выполняем стандартную установку через npm:

```sh
npm install @tamtam-chat/message-editor
Expand Down
6 changes: 1 addition & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
"types": "./dist/index.d.ts",
"exports": {
"import": "./dist/editor.js",
"require": "./dist/editor.cjs",
"types": "./dist/index.d.ts"
"require": "./dist/editor.cjs"
},
"scripts": {
"test": "node --import tsx --test ./test/*.ts",
Expand All @@ -33,9 +32,6 @@
"typescript": "^5.7.2",
"vite": "^6.0.3"
},
"publishConfig": {
"registry": "https://npm.pkg.github.com"
},
"directories": {
"test": "test"
},
Expand Down

0 comments on commit 04799d4

Please sign in to comment.