Skip to content

Commit

Permalink
Revert "fix(vite-plugin): ship in dual package format for compatibili…
Browse files Browse the repository at this point in the history
…ty with Vite (lingui#1450)"

This reverts commit e3a2b39.
  • Loading branch information
timofei-iatsenko committed Feb 24, 2023
1 parent 1288228 commit 1adb61d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 20 deletions.
22 changes: 3 additions & 19 deletions packages/vite-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@
"name": "@lingui/vite-plugin",
"version": "3.17.1",
"description": "Vite plugin for Lingui message catalogs",
"main": "./build/cjs/index.js",
"module": "./build/esm/index.js",
"types": "./build/esm/index.d.ts",
"main": "./build/index.js",
"types": "./build/index.d.ts",
"license": "MIT",
"keywords": [
"vite-plugin",
Expand All @@ -18,10 +17,7 @@
"translation"
],
"scripts": {
"clean": "rimraf ./build",
"build:esm": "tsc --module esnext --outDir ./build/esm",
"build:cjs": "tsc --module commonjs --outDir ./build/cjs",
"build": "yarn clean && yarn build:esm && yarn build:cjs"
"build": "rimraf ./build && tsc"
},
"repository": {
"type": "git",
Expand All @@ -30,18 +26,6 @@
"bugs": {
"url": "https://github.com/lingui/js-lingui/issues"
},
"exports": {
".": {
"require": {
"types": "./build/cjs/index.d.ts",
"default": "./build/cjs/index.js"
},
"import": {
"types": "./build/esm/index.d.ts",
"default": "./build/esm/index.js"
}
}
},
"engines": {
"node": ">=14.0.0"
},
Expand Down
1 change: 0 additions & 1 deletion packages/vite-plugin/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
"sourceMap": true,
"noEmit": false,
"declaration": true,
"moduleResolution": "Node",
"outDir": "./build",
"esModuleInterop": true,
"resolveJsonModule": true
Expand Down

0 comments on commit 1adb61d

Please sign in to comment.