Skip to content

Commit

Permalink
chore: fix next.js import and upgrade eslint, prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
stepan662 committed Apr 4, 2024
1 parent c21a4b3 commit aa2f05c
Show file tree
Hide file tree
Showing 8 changed files with 65 additions and 60 deletions.
13 changes: 5 additions & 8 deletions packages/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,26 +9,23 @@
"exports": {
".": {
"production": {
"require": "./dist/tolgee-web.production.umd.cjs",
"module": "./dist/tolgee-web.production.umd.cjs",
"import": "./dist/tolgee-web.production.esm.js"
"import": "./dist/tolgee-web.production.esm.js",
"require": "./dist/tolgee-web.production.umd.cjs"
},
"require": "./index.cjs",
"module": "./dist/tolgee-web.development.umd.cjs",
"import": "./dist/tolgee-web.development.esm.js",
"require": "./index.cjs",
"types": "./types/index.d.ts"
},
"./tools": {
"require": "./dist/tolgee-in-context-tools.umd.cjs",
"module": "./dist/tolgee-in-context-tools.umd.cjs",
"import": "./dist/tolgee-in-context-tools.esm.js",
"require": "./dist/tolgee-in-context-tools.umd.cjs",
"types": "./types/tools.d.ts"
},
"./package.json": "./package.json"
},
"scripts": {
"dev": "vite",
"develop": "concurrently \"tsc --project tsconfig.prod.json --watch\" \"vite build --watch\"",
"develop": "concurrently --raw \"tsc --watch --preserveWatchOutput --project tsconfig.prod.json\" \"vite build --watch\"",
"build": "tsc --project tsconfig.prod.json && vite build && vite build --config vite.config.production.ts && vite build --config vite.config.tools.ts",
"test": "jest --collect-coverage",
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
Expand Down
3 changes: 1 addition & 2 deletions packages/web/tools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@
"types": "../types/tools.d.ts",
"exports": {
".": {
"require": "./../dist/tolgee-in-context-tools.umd.cjs",
"module": "./../dist/tolgee-in-context-tools.umd.cjs",
"import": "./../dist/tolgee-in-context-tools.esm.js",
"require": "./../dist/tolgee-in-context-tools.umd.cjs",
"types": "./../types/tools.d.ts"
},
"./package.json": "./package.json"
Expand Down
1 change: 1 addition & 0 deletions packages/web/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ type Props = {
// reused for vite.config.tools & vite.config.production
export const createConfig = ({ entry, rollupOptions }: Props) =>
defineConfig({
clearScreen: false,
build: {
emptyOutDir: false,
minify: false,
Expand Down
96 changes: 51 additions & 45 deletions pnpm-lock.yaml

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

5 changes: 3 additions & 2 deletions testapps/next-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,14 @@
"develop": "next dev",
"build": "next build",
"build:e2e": "NEXT_BUILD_DIR=dist-e2e next build",
"start": "next start"
"start": "next start",
"clean": "rm -rf .next dist-e2e"
},
"dependencies": {
"@tolgee/format-icu": "5.22.0",
"@tolgee/react": "5.22.0",
"@tolgee/web": "5.22.0",
"next": "14.0.3",
"next": "14.1.4",
"next-intl": "^3.2.3",
"react": "18.2.0",
"react-dom": "18.2.0"
Expand Down
2 changes: 1 addition & 1 deletion testapps/next-internal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"dependencies": {
"@tolgee/react": "5.22.0",
"@tolgee/web": "5.22.0",
"next": "14.0.3",
"next": "14.1.4",
"react": "18.2.0",
"react-dom": "18.2.0"
},
Expand Down
2 changes: 1 addition & 1 deletion testapps/next/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"dependencies": {
"@tolgee/format-icu": "5.22.0",
"@tolgee/react": "5.22.0",
"next": "14.0.3",
"next": "14.1.4",
"react": "18.2.0",
"react-dom": "18.2.0"
},
Expand Down
3 changes: 2 additions & 1 deletion testapps/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"develop": "vite",
"build": "tsc && vite build",
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"preview": "vite preview"
"preview": "vite preview",
"clean": "rm -rf dist "
},
"dependencies": {
"@tolgee/format-icu": "5.22.0",
Expand Down

0 comments on commit aa2f05c

Please sign in to comment.