Fix wrong npm name in readme
This commit is contained in:
@@ -6,7 +6,7 @@ Extract strings from projects using ng2-translate to json or pot files.
|
|||||||
## Usage
|
## Usage
|
||||||
If you only need to extract strings from one project, you can install the package locally:
|
If you only need to extract strings from one project, you can install the package locally:
|
||||||
|
|
||||||
`npm install ng2-translate-extract --save-dev`
|
`npm install @biesbjerg/ng2-translate-extract --save-dev`
|
||||||
|
|
||||||
Add the following `extract` script your project's `package.json`:
|
Add the following `extract` script your project's `package.json`:
|
||||||
```
|
```
|
||||||
@@ -16,12 +16,12 @@ Add the following `extract` script your project's `package.json`:
|
|||||||
```
|
```
|
||||||
You can now run `npm run extract` to extract strings from your project's `src` dir. The extracted strings are saved in `JSON`-format in your project's root.
|
You can now run `npm run extract` to extract strings from your project's `src` dir. The extracted strings are saved in `JSON`-format in your project's root.
|
||||||
|
|
||||||
Modify the scripts arguments as required.
|
Modify the scripts arguments as required.
|
||||||
|
|
||||||
## Global install
|
## Global install
|
||||||
You can also install the package globally:
|
You can also install the package globally:
|
||||||
|
|
||||||
`npm install ng2-translate-extract -g`
|
`npm install @biesbjerg/ng2-translate-extract -g`
|
||||||
|
|
||||||
Now you can execute the script from everywhere:
|
Now you can execute the script from everywhere:
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@biesbjerg/ng2-translate-extract",
|
"name": "@biesbjerg/ng2-translate-extract",
|
||||||
"version": "0.1.0",
|
"version": "0.1.1",
|
||||||
"description": "Extract strings from projects using ng2-translate",
|
"description": "Extract strings from projects using ng2-translate",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"typings": "dist/index.d.ts",
|
"typings": "dist/index.d.ts",
|
||||||
@@ -14,8 +14,7 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "npm run clean && tsc",
|
"build": "npm run clean && tsc",
|
||||||
"watch": "npm run clean && tsc --watch",
|
"watch": "npm run clean && tsc --watch",
|
||||||
"clean": "rm -rf ./dist",
|
"clean": "rm -rf ./dist"
|
||||||
"postinstall": "npm run build"
|
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|||||||
Reference in New Issue
Block a user