Skip to content

Commit 713edd3

Browse files
author
Pietro Passarelli - News Labs
committed
adjusted package.json for npm deployment
+typo in README
1 parent a240ee7 commit 713edd3

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ import { TimedTextEditor } from '@bbc/react-transcript-editor';
103103

104104
However if you are not using `TranscriptEditor` it is recommended to follow the second option and import individual components like: `@bbc/react-transcript-editor/TimedTextEditor` rather than the entire library. Doing so pulls in only the specific components that you use, which can significantly reduce the amount of code you end up sending to the client. (Similarly to how [`react-bootstrap`](https://react-bootstrap.github.io/getting-started/introduction) works)
105105

106-
See the storybook for for each component details on optional and required attributes.
106+
See [the storybook](https://bbc.github.io/react-transcript-editor) for each component details on optional and required attributes.
107107

108108
You can also use this node modules as standalone
109109

package.json

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@bbc/react-transcript-editor",
33
"description": "A React component to make transcribing audio and video easier and faster.",
4-
"version": "0.3.3",
4+
"version": "0.4.1",
55
"keywords": [
66
"transcript",
77
"transcriptions",
@@ -10,11 +10,7 @@
1010
"speech to text",
1111
"textAV"
1212
],
13-
"main": "dist/index.js",
14-
"module": "dist/index.js",
15-
"files": [
16-
"dist"
17-
],
13+
"main": "index.js",
1814
"scripts": {
1915
"start": "npm run storybook",
2016
"storybook": "start-storybook -p 6006",
@@ -28,7 +24,8 @@
2824
"build:storybook": "rimraf build && build-storybook -c .storybook -o build",
2925
"build:storybook:serve": "npx serve build",
3026
"deploy:ghpages": "rimraf build && npm run build:storybook && gh-pages -d build",
31-
"publish:public": "npm run build:component && npm publish --access public"
27+
"publish:public": "npm run build:component && rm ./dist/package.json || true && cp package.json ./dist/package.json && npm publish dist --access public",
28+
"publish:dry:run": "npm publish --dry-run"
3229
},
3330
"jest": {
3431
"moduleFileExtensions": [

0 commit comments

Comments
 (0)