From d941a64f9e418e16e3e0daf76972b6117a7b47cc Mon Sep 17 00:00:00 2001 From: Lily Acadia Gilbert Date: Mon, 17 Apr 2023 15:49:49 -0600 Subject: [PATCH] Add "main" to package.json to fix eslint issues Using eslint, I'm getting an `import/no-unresolved: Unable to resolve path to module 'vite-plugin-ruby'` when it clearly exists. Looking at [this ticket](https://github.com/browserify/resolve/issues/222) I believe that is happening because there is no `main` key in the package.json. This updates the package.json to include this. --- vite-plugin-ruby/package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/vite-plugin-ruby/package.json b/vite-plugin-ruby/package.json index 0a9bd1c2..75cca3c8 100644 --- a/vite-plugin-ruby/package.json +++ b/vite-plugin-ruby/package.json @@ -3,6 +3,7 @@ "description": "Convention over configuration for using Vite in Ruby apps", "version": "3.2.1", "type": "module", + "main": "./dist/index.js", "types": "dist/index.d.ts", "exports": { ".": {