Skip to content

Commit

Permalink
Update dependencies to lingui >= 4.0 (#1)
Browse files Browse the repository at this point in the history
* Update package.json
* Minor fixes (remove alias comments)
  • Loading branch information
didier-84 authored Oct 19, 2023
1 parent 8e8571e commit 0eac524
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ yarn add --dev @babel/core babel-plugin-macros
yarn add @lingui/react
~~~

### 2. Add the following scripts (optional)
### 2. Add the following scripts

Add these lines to your `package.json` to make your life easier.

Expand Down Expand Up @@ -371,10 +371,10 @@ and at the same time generate the minified Javascript catalog files, simply run:

~~~bash
# NPM
npm run sync # alias of `npm run extract --overwrite && npm run compile`
npm run sync

# Yarn
yarn sync # alias of `yarn extract --overwrite && yarn compile`
yarn sync
~~~

### Sync and Purge
Expand All @@ -384,10 +384,10 @@ the current branch as reference, use the `--clean` option.

~~~bash
# NPM
npm run sync_and_purge # alias of `npm run extract --overwrite --clean && npm run compile`
npm run sync_and_purge

# Yarn
yarn sync_and_purge # alias of `yarn extract --overwrite --clean && yarn compile`
yarn sync_and_purge
~~~

As the name says, this operation will also perform a sync at the same time.
Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@translation/lingui",
"version": "1.0.0",
"version": "2.0.0",
"description": "Translation.io client for Lingui (React & JavaScript)",
"repository": {
"type": "git",
Expand All @@ -24,10 +24,10 @@
},
"license": "MIT",
"dependencies": {
"@lingui/cli": "^3.11",
"@lingui/macro": "^3.11",
"@lingui/react": "^3.11",
"@lingui/cli": "^4",
"@lingui/macro": "^4",
"@lingui/react": "^4",
"@babel/core": ">=7.0",
"babel-plugin-macros": ">=2.0"
"babel-plugin-macros": ">=3.0"
}
}

0 comments on commit 0eac524

Please sign in to comment.