From 0e5e2537102a24673fb479b61d671351d6f70ad8 Mon Sep 17 00:00:00 2001 From: ShiCheng Lu Date: Tue, 7 Dec 2021 11:49:36 -0500 Subject: [PATCH 1/4] added support for npm minecraft module --- minecraft-module.config.json | 5 +++++ package.json | 3 +++ src/library/index.ts | 1 + 3 files changed, 9 insertions(+) create mode 100644 minecraft-module.config.json create mode 100644 package.json create mode 100644 src/library/index.ts diff --git a/minecraft-module.config.json b/minecraft-module.config.json new file mode 100644 index 0000000..0629cc6 --- /dev/null +++ b/minecraft-module.config.json @@ -0,0 +1,5 @@ +{ + "exports": { + "src/library": "BP/scripts/.modules/gametest-api-wrapper" + } +} \ No newline at end of file diff --git a/package.json b/package.json new file mode 100644 index 0000000..171e063 --- /dev/null +++ b/package.json @@ -0,0 +1,3 @@ +{ + "name": "gametest-api-wrapper" +} \ No newline at end of file diff --git a/src/library/index.ts b/src/library/index.ts new file mode 100644 index 0000000..a137beb --- /dev/null +++ b/src/library/index.ts @@ -0,0 +1 @@ +export * from "./Minecraft.js" \ No newline at end of file From 1797028fb048b0ade9fa84e4b5370cc44d364396 Mon Sep 17 00:00:00 2001 From: ShiCheng Lu Date: Tue, 7 Dec 2021 12:29:36 -0500 Subject: [PATCH 2/4] added newline to end --- minecraft-module.config.json | 2 +- package.json | 2 +- src/library/index.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/minecraft-module.config.json b/minecraft-module.config.json index 0629cc6..938d299 100644 --- a/minecraft-module.config.json +++ b/minecraft-module.config.json @@ -2,4 +2,4 @@ "exports": { "src/library": "BP/scripts/.modules/gametest-api-wrapper" } -} \ No newline at end of file +} diff --git a/package.json b/package.json index 171e063..aefce40 100644 --- a/package.json +++ b/package.json @@ -1,3 +1,3 @@ { "name": "gametest-api-wrapper" -} \ No newline at end of file +} diff --git a/src/library/index.ts b/src/library/index.ts index a137beb..4272973 100644 --- a/src/library/index.ts +++ b/src/library/index.ts @@ -1 +1 @@ -export * from "./Minecraft.js" \ No newline at end of file +export * from "./Minecraft.js" From 1dca74aaebe86b40286e97dbed1ce39ac8bcda91 Mon Sep 17 00:00:00 2001 From: ShiCheng Lu Date: Wed, 8 Dec 2021 17:04:36 -0500 Subject: [PATCH 3/4] change .module to modules because hidden folder reasons --- minecraft-module.config.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/minecraft-module.config.json b/minecraft-module.config.json index 938d299..59f76e5 100644 --- a/minecraft-module.config.json +++ b/minecraft-module.config.json @@ -1,5 +1,5 @@ { "exports": { - "src/library": "BP/scripts/.modules/gametest-api-wrapper" + "src/library": "BP/scripts/modules/gametest-api-wrapper" } } From 9ddbf7ca9d364477afd1cbed4b1451f319e7200d Mon Sep 17 00:00:00 2001 From: ShiCheng Lu Date: Wed, 8 Dec 2021 17:09:18 -0500 Subject: [PATCH 4/4] added package.json needed for npm --- package.json | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index aefce40..4c9fb1a 100644 --- a/package.json +++ b/package.json @@ -1,3 +1,19 @@ { - "name": "gametest-api-wrapper" + "name": "gametest-api-wrapper", + "version": "0.0.1", + "description": "", + "main": "src/library/index.js", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/notbeer/Gametest-API-Wrapper.git" + }, + "author": "notbeer", + "license": "MIT", + "bugs": { + "url": "https://github.com/notbeer/Gametest-API-Wrapper/issues" + }, + "homepage": "https://github.com/notbeer/Gametest-API-Wrapper#readme" }