From 2296c6c093460e9591397ae1dfab8e91e9540aec Mon Sep 17 00:00:00 2001 From: dpilafian Date: Thu, 25 Jan 2024 10:39:31 -0800 Subject: [PATCH] Remove obsolete "main" field from package.json --- LICENSE.txt | 2 +- README.md | 2 +- hello-world/package.json | 5 +++-- package.json | 16 +++++----------- 4 files changed, 10 insertions(+), 15 deletions(-) diff --git a/LICENSE.txt b/LICENSE.txt index ad70658..185bfda 100644 --- a/LICENSE.txt +++ b/LICENSE.txt @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2020-2023 Individual contributors to puppeteer-browser-ready +Copyright (c) 2020-2024 Individual contributors to puppeteer-browser-ready Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index ce1c02d..cfd9a8c 100644 --- a/README.md +++ b/README.md @@ -241,7 +241,7 @@ Example configuration in **package.json** to allow 5,000 ms: - 🪺 [recursive-exec](https://github.com/center-key/recursive-exec):  _Run a command on each file in a folder and its subfolders_ - 🔍 [replacer-util](https://github.com/center-key/replacer-util):  _Find and replace strings or template outputs in text files_ - 🔢 [rev-web-assets](https://github.com/center-key/rev-web-assets):  _Revision web asset filenames with cache busting content hash fingerprints_ - - 🚆 [run-scripts-util](https://github.com/center-key/run-scripts-util):  _Organize npm scripts into named groups of easy to manage commands_ + - 🚆 [run-scripts-util](https://github.com/center-key/run-scripts-util):  _Organize npm package.json scripts into named groups of easy to manage commands_ - 🚦 [w3c-html-validator](https://github.com/center-key/w3c-html-validator):  _Check the markup validity of HTML files using the W3C validator_ [MIT License](LICENSE.txt) diff --git a/hello-world/package.json b/hello-world/package.json index 198e21b..9b37b9b 100644 --- a/hello-world/package.json +++ b/hello-world/package.json @@ -5,7 +5,8 @@ "license": "MIT", "private": true, "type": "module", - "main": "index.js", + "module": "index.js", + "exports": "./index.js", "jshintConfig": { "esversion": 11 }, @@ -15,7 +16,7 @@ }, "dependencies": { "jshint": "~2.13", - "puppeteer": "~21.6", + "puppeteer": "~21.9", "puppeteer-browser-ready": "~1.3" } } diff --git a/package.json b/package.json index a764be6..b07a171 100644 --- a/package.json +++ b/package.json @@ -5,17 +5,11 @@ "license": "MIT", "type": "module", "module": "dist/puppeteer-browser-ready.js", - "main": "dist/puppeteer-browser-ready.js", "types": "dist/puppeteer-browser-ready.d.ts", + "exports": "./dist/puppeteer-browser-ready.js", "files": [ "dist" ], - "exports": { - ".": { - "import": "./dist/puppeteer-browser-ready.js" - }, - "./": "./dist/" - }, "repository": { "type": "git", "url": "git+https://github.com/center-key/puppeteer-browser-ready.git" @@ -95,10 +89,10 @@ "devDependencies": { "@types/express": "~4.17", "@types/mocha": "~10.0", - "@types/node": "~20.10", + "@types/node": "~20.11", "@types/ws": "~8.5", - "@typescript-eslint/eslint-plugin": "~6.15", - "@typescript-eslint/parser": "~6.15", + "@typescript-eslint/eslint-plugin": "~6.19", + "@typescript-eslint/parser": "~6.19", "add-dist-header": "~1.3", "assert-deep-strict-equal": "~1.1", "copy-file-util": "~1.1", @@ -107,7 +101,7 @@ "jshint": "~2.13", "mocha": "~10.2", "open": "~10.0", - "puppeteer": "~21.6", + "puppeteer": "~21.9", "rimraf": "~5.0", "run-scripts-util": "~1.2", "typescript": "~5.3",