From 6d448d68165c7bf89b75304a996694e24a77138f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EB=A3=A8=EB=B0=80LuMir?= Date: Thu, 9 Jan 2025 15:38:00 +0900 Subject: [PATCH 1/2] chore: add `engines` field to `package.json` (#59) This pull request includes a small change to the `package.json` file. The change specifies the required Node.js version for the project. * [`package.json`](diffhunk://#diff-7ae45ad102eab3b6d7e7896acd08c427a9b25b346470d7bc6507b6481575d519R6-R8): Added an `engines` field to specify that the project requires Node.js version 20.18.0 or higher. --- package.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/package.json b/package.json index 4bf5584..919f7a7 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,9 @@ "name": "npm-bananass", "version": "0.0.0", "packageManager": "npm@10.9.2", + "engines": { + "node": ">=20.18.0" + }, "workspaces": [ "examples/*", "packages/*", From 9ca5a61221b86342bf4649bbde13d0514b59c3f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EB=A3=A8=EB=B0=80LuMir?= Date: Thu, 9 Jan 2025 15:51:57 +0900 Subject: [PATCH 2/2] refactor(prettier-config-bananass): add peerDependencies, prepublish script, type support (#60) This pull request includes changes to the `prettier-config-bananass` package to update dependencies and improve documentation. The most important changes include adding a `prepublishOnly` script, specifying `peerDependencies`, and enhancing module documentation. Updates to dependencies and scripts: * [`packages/prettier-config-bananass/package.json`](diffhunk://#diff-0fdaf27a6fc3a9c98ce068e2f60dd6fa1d2a82cfc232695581bcae3256c32d76L32-R38): Added a `prepublishOnly` script to run the build process before publishing, and specified `prettier` as a peer dependency. Enhancements to documentation: * [`packages/prettier-config-bananass/src/index.js`](diffhunk://#diff-5704c175b00dfba9748074a44221d8bdeafc9a341ed6c6107bb94b85ee8394f5L5-R12): Added a link to the Prettier options documentation in the module overview comment and included a type annotation for the Prettier configuration. --- packages/prettier-config-bananass/package.json | 7 ++++--- packages/prettier-config-bananass/src/index.js | 3 ++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/packages/prettier-config-bananass/package.json b/packages/prettier-config-bananass/package.json index 64c0b4a..6f89587 100644 --- a/packages/prettier-config-bananass/package.json +++ b/packages/prettier-config-bananass/package.json @@ -29,11 +29,12 @@ "bugs": { "url": "https://github.com/lumirlumir/npm-bananass/issues" }, - "engines": { - "node": ">=20.18.0" - }, "scripts": { + "prepublishOnly": "npm run build", "build": "cp ../../LICENSE.md ../../README.md .", "test": "node --test" + }, + "peerDependencies": { + "prettier": ">=3.0.0" } } diff --git a/packages/prettier-config-bananass/src/index.js b/packages/prettier-config-bananass/src/index.js index eabe61b..d2ac244 100644 --- a/packages/prettier-config-bananass/src/index.js +++ b/packages/prettier-config-bananass/src/index.js @@ -2,13 +2,14 @@ * @fileoverview Entry file for the `prettier-config-bananass` package. * @module prettier-config-bananass * - * All default values are based on `prettier@3`. + * All default values are based on `prettier@3`. {@link https://prettier.io/docs/en/options} */ // -------------------------------------------------------------------------------- // Exports // -------------------------------------------------------------------------------- +/** @type {import("prettier").Config} */ module.exports = { printWidth: 90, tabWidth: 2, // Default.