From b6a3591148f076dde927393a45c53943f89f2d57 Mon Sep 17 00:00:00 2001 From: Bryan Mishkin <698306+bmish@users.noreply.github.com> Date: Thu, 14 Jul 2022 14:04:55 -0600 Subject: [PATCH] feat: strictly define Node API in plugin template (#134) --- plugin/templates/_package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugin/templates/_package.json b/plugin/templates/_package.json index edab12b..a8342c4 100644 --- a/plugin/templates/_package.json +++ b/plugin/templates/_package.json @@ -8,7 +8,8 @@ "eslint-plugin" ], "author": "<%- userName.replace(/"/g, '\\"') %>", - "main": "lib/index.js", + "main": "./lib/index.js", + "exports": "./lib/index.js", "scripts": { "lint": "eslint .", "test": "mocha tests --recursive"