From 0dcb15208b5d0c35c7ffcd38e37241b31f043686 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivan=20Nikoli=C4=87?= Date: Mon, 25 Mar 2024 15:40:26 +0100 Subject: [PATCH] Update package --- package.json | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index db3e56a..5645c77 100644 --- a/package.json +++ b/package.json @@ -4,8 +4,16 @@ "description": "Yeoman generator for my projects.", "license": "MIT", "author": "Ivan Nikolić (http://ivannikolic.com)", - "main": "generators/app/index.js", + "sideEffects": false, "type": "module", + "exports": { + ".": { + "import": "./generators/app/index.js" + }, + "./package.json": "./package.json" + }, + "main": "generators/app/index.js", + "module": "generators/app/index.js", "directories": { "test": "test" }, @@ -15,10 +23,10 @@ "README.md" ], "scripts": { - "prepare": "if [[ -x \"$(command -v husky)\" ]]; then husky; fi", "lint": "eslint '{generators/app/index,test/index}.js'", - "release": "np --no-release-draft", + "prepare": "if [[ -x \"$(command -v husky)\" ]]; then husky; fi", "prerelease": "npm run lint", + "release": "np --no-release-draft", "test": "NODE_OPTIONS='--experimental-loader=@istanbuljs/esm-loader-hook --no-warnings' nyc mocha 'test/**/*.js' && nyc check-coverage", "test:watch": "nodemon --exec npm test" }, @@ -40,7 +48,7 @@ "eslint-plugin-prettier": "^4.0.0", "husky": "^9.0.11", "lint-staged": "^15.2.2", - "mocha": "^9.1.3", + "mocha": "^10.3.0", "nodemon": "^2.0.6", "np": "^7.6.0", "nyc": "^15.1.0",