From 2228e72b6e2a00a017ddc554970d97a3bab2a337 Mon Sep 17 00:00:00 2001 From: Raphael Landaverde Date: Fri, 2 Feb 2024 17:13:51 -0500 Subject: [PATCH] Switch @minecraft/server to a peer dependency (#11) * Minor adjustment to dependencies, making @minecraft/server a peer instead of direct dependency * Change files --- ...-41fcb2b6-6a4c-4706-be67-f34448120b1b.json | 7 +++ libraries/math/package.json | 55 ++++++++++--------- 2 files changed, 35 insertions(+), 27 deletions(-) create mode 100644 change/@minecraft-math-41fcb2b6-6a4c-4706-be67-f34448120b1b.json diff --git a/change/@minecraft-math-41fcb2b6-6a4c-4706-be67-f34448120b1b.json b/change/@minecraft-math-41fcb2b6-6a4c-4706-be67-f34448120b1b.json new file mode 100644 index 0000000..0e05688 --- /dev/null +++ b/change/@minecraft-math-41fcb2b6-6a4c-4706-be67-f34448120b1b.json @@ -0,0 +1,7 @@ +{ + "type": "minor", + "comment": "Minor adjustment to dependencies, making @minecraft/server a peer instead of direct dependency", + "packageName": "@minecraft/math", + "email": "rlanda@microsoft.com", + "dependentChangeType": "patch" +} diff --git a/libraries/math/package.json b/libraries/math/package.json index 2828890..baa352c 100644 --- a/libraries/math/package.json +++ b/libraries/math/package.json @@ -1,29 +1,30 @@ { - "name": "@minecraft/math", - "version": "1.0.1", - "author": "Raphael Landaverde (rlanda@microsoft.com)", - "description": "Math utilities for use with minecraft scripting modules", - "main": "lib/index.js", - "types": "lib/types/math-public.d.ts", - "scripts": { - "build": "just build", - "lint": "just lint", - "test": "just test", - "clean": "just clean" - }, - "license": "MIT", - "files": [ - "dist", - "lib", - "api-report" - ], - "dependencies": { - "@minecraft/server": "^1.6.0" - }, - "devDependencies": { - "@minecraft/core-build-tasks": "*", - "@minecraft/tsconfig": "*", - "just-scripts": "^2.2.1", - "vitest": "^0.34.6" - } + "name": "@minecraft/math", + "version": "1.0.1", + "author": "Raphael Landaverde (rlanda@microsoft.com)", + "description": "Math utilities for use with minecraft scripting modules", + "main": "lib/index.js", + "types": "lib/types/math-public.d.ts", + "scripts": { + "build": "just build", + "lint": "just lint", + "test": "just test", + "clean": "just clean" + }, + "license": "MIT", + "files": [ + "dist", + "lib", + "api-report" + ], + "peerDependencies": { + "@minecraft/server": "^1.6.0" + }, + "devDependencies": { + "@minecraft/server": "^1.6.0", + "@minecraft/core-build-tasks": "*", + "@minecraft/tsconfig": "*", + "just-scripts": "^2.2.1", + "vitest": "^0.34.6" + } }