Skip to content

Commit

Permalink
Merge pull request #4 from Five-great/main
Browse files Browse the repository at this point in the history
add:nextjs 支持
  • Loading branch information
Five-great authored Dec 16, 2022
2 parents e076404 + a7a7aa3 commit a3289a0
Show file tree
Hide file tree
Showing 10 changed files with 508 additions and 245 deletions.
1 change: 1 addition & 0 deletions next.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './dist/cjs/next'
1 change: 1 addition & 0 deletions next.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require('./dist/cjs/next')
12 changes: 9 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
{
"name": "i18next-mobx",
"version": "0.0.0-alpha.4",
"version": "0.0.1",
"description": "A management scheme for i18nxet mobx",
"main": "dist/index.js",
"main": "dist/cjs/index.js",
"umd:main": "dist/index.js",
"unpkg": "dist/index.js",
"jsdelivr": "dist/index.js",
"jsnext:main": "dist/esm/index.js",
"types": "dist/esm/index.d.ts",
"module": "dist/esm/index.js",
"scripts": {
"start": "ts-node ./src/index.ts -P tsconfig.json --no-cache",
"build:esm": "rm -rf dist/esm && tsc -p tsconfig.build.json",
"build:cjs": "rm -rf dist/cjs && tsc -p tsconfig.build.cjs.json && echo '{\"type\":\"commonjs\"}' > dist/cjs/package.json",
"build:cjs": "rm -rf dist/cjs && tsc -p tsconfig.build.cjs.json",
"build": "tsc -P tsconfig.json",
"build:all": "npm run e2e && npm run build && npm run build:esm && npm run build:cjs",
"format": "prettier --write \"src/**/*.ts\" \"src/**/*.js\"",
Expand Down Expand Up @@ -38,6 +42,8 @@
"husky": "^8.0.2",
"i18next-browser-languagedetector": "^7.0.1",
"jest": "^29.3.1",
"mobx-react": "^7.6.0",
"next": "^13.0.6",
"prettier": "^2.7.1",
"react": "16.8.0",
"react-i18next": "^12.0.0",
Expand Down
254 changes: 254 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit a3289a0

Please sign in to comment.