From 73690a26680b02cd9849e882e6e89c3480a84ab4 Mon Sep 17 00:00:00 2001 From: MiaoWoo Date: Wed, 8 Jan 2020 09:48:37 +0800 Subject: [PATCH] feat: upgrade version Signed-off-by: MiaoWoo --- package.json | 2 +- packages/api/package.json | 2 +- packages/bukkit/package.json | 2 +- packages/common/package.json | 2 +- packages/compile/package.json | 31 +++++++++++++++++++++++++++++++ packages/compile/src/index.ts | 5 +++++ packages/compile/tsconfig.json | 7 +++++++ packages/container/package.json | 2 +- packages/core/package.json | 8 ++++---- packages/manager/package.json | 30 ++++++++++++++++++++++++++++++ packages/manager/src/index.ts | 0 packages/manager/tsconfig.json | 7 +++++++ packages/nashorn/package.json | 2 +- packages/ployfill/package.json | 4 ++-- packages/plugin/package.json | 2 +- packages/sponge/package.json | 2 +- 16 files changed, 94 insertions(+), 14 deletions(-) create mode 100644 packages/compile/package.json create mode 100644 packages/compile/src/index.ts create mode 100644 packages/compile/tsconfig.json create mode 100644 packages/manager/package.json create mode 100644 packages/manager/src/index.ts create mode 100644 packages/manager/tsconfig.json diff --git a/package.json b/package.json index 60c56b43..1f055ea0 100644 --- a/package.json +++ b/package.json @@ -16,6 +16,6 @@ "packages/*" ], "devDependencies": { - "lerna": "^3.16.4" + "lerna": "^3.20.2" } } diff --git a/packages/api/package.json b/packages/api/package.json index c95f5a0a..06e5c8b6 100644 --- a/packages/api/package.json +++ b/packages/api/package.json @@ -28,6 +28,6 @@ "devDependencies": { "reflect-metadata": "^0.1.13", "rimraf": "^3.0.0", - "typescript": "^3.6.2" + "typescript": "^3.7.4" } } diff --git a/packages/bukkit/package.json b/packages/bukkit/package.json index 56f92b3e..ddd06a4e 100644 --- a/packages/bukkit/package.json +++ b/packages/bukkit/package.json @@ -24,7 +24,7 @@ "devDependencies": { "reflect-metadata": "^0.1.13", "rimraf": "^3.0.0", - "typescript": "^3.6.2" + "typescript": "^3.7.4" }, "dependencies": { "@ms/api": "^0.1.1", diff --git a/packages/common/package.json b/packages/common/package.json index ba4e2df2..34eb4891 100644 --- a/packages/common/package.json +++ b/packages/common/package.json @@ -24,7 +24,7 @@ "devDependencies": { "reflect-metadata": "^0.1.13", "rimraf": "^3.0.0", - "typescript": "^3.6.2" + "typescript": "^3.7.4" }, "dependencies": { "@ms/nashorn": "^0.1.0", diff --git a/packages/compile/package.json b/packages/compile/package.json new file mode 100644 index 00000000..d8becaf5 --- /dev/null +++ b/packages/compile/package.json @@ -0,0 +1,31 @@ +{ + "name": "@ms/compile", + "version": "0.1.0", + "description": "MiaoScript compile package", + "keywords": [ + "miaoscript", + "minecraft", + "bukkit", + "sponge" + ], + "author": "MiaoWoo ", + "homepage": "https://github.com/circlecloud/ms.git", + "license": "ISC", + "main": "dist/index.js", + "publishConfig": { + "registry": "https://repo.yumc.pw/repository/npm-hosted/" + }, + "scripts": { + "clean": "rimraf dist", + "watch": "npx tsc --watch", + "build": "yarn clean && npx tsc", + "test": "echo \"Error: run tests from root\" && exit 1" + }, + "devDependencies": { + "reflect-metadata": "^0.1.13", + "rimraf": "^3.0.0", + "typescript": "^3.7.2" + }, + "dependencies": { + } +} diff --git a/packages/compile/src/index.ts b/packages/compile/src/index.ts new file mode 100644 index 00000000..41640396 --- /dev/null +++ b/packages/compile/src/index.ts @@ -0,0 +1,5 @@ +import * as ts from 'typescript' + +let scan = ts.createScanner(ts.ScriptTarget.ES5, true, ts.LanguageVariant.Standard) +scan.setText('let a = 1') +scan.tryScan(() => { }) \ No newline at end of file diff --git a/packages/compile/tsconfig.json b/packages/compile/tsconfig.json new file mode 100644 index 00000000..7aae5d2b --- /dev/null +++ b/packages/compile/tsconfig.json @@ -0,0 +1,7 @@ +{ + "extends": "../../tsconfig.json", + "compilerOptions": { + "baseUrl": "src", + "outDir": "dist" + } +} \ No newline at end of file diff --git a/packages/container/package.json b/packages/container/package.json index cf08e8f6..076f4f1e 100644 --- a/packages/container/package.json +++ b/packages/container/package.json @@ -24,7 +24,7 @@ "devDependencies": { "reflect-metadata": "^0.1.13", "rimraf": "^3.0.0", - "typescript": "^3.6.2" + "typescript": "^3.7.4" }, "dependencies": { "inversify-binding-decorators": "^4.0.0" diff --git a/packages/core/package.json b/packages/core/package.json index c535837c..ae1ee74b 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -12,7 +12,6 @@ "homepage": "https://github.com/circlecloud/ms.git", "license": "ISC", "main": "dist/index.js", - "typings": "dist/index.d.ts", "publishConfig": { "registry": "https://repo.yumc.pw/repository/npm-hosted/" }, @@ -25,7 +24,7 @@ "devDependencies": { "reflect-metadata": "^0.1.13", "rimraf": "^3.0.0", - "typescript": "^3.6.2" + "typescript": "^3.7.4" }, "dependencies": { "@ms/api": "^0.1.1", @@ -34,5 +33,6 @@ "@ms/container": "^0.1.0", "@ms/plugin": "^0.1.1", "@ms/sponge": "^0.1.1" - } -} \ No newline at end of file + }, + "gitHead": "781524f83e52cad26d7c480513e3c525df867121" +} diff --git a/packages/manager/package.json b/packages/manager/package.json new file mode 100644 index 00000000..4e3b502a --- /dev/null +++ b/packages/manager/package.json @@ -0,0 +1,30 @@ +{ + "name": "@ms/manager", + "version": "0.1.0", + "description": "MiaoScript compile package", + "keywords": [ + "miaoscript", + "minecraft", + "bukkit", + "sponge" + ], + "author": "MiaoWoo ", + "homepage": "https://github.com/circlecloud/ms.git", + "license": "ISC", + "main": "dist/index.js", + "publishConfig": { + "registry": "https://repo.yumc.pw/repository/npm-hosted/" + }, + "scripts": { + "clean": "rimraf dist", + "watch": "npx tsc --watch", + "build": "yarn clean && npx tsc", + "test": "echo \"Error: run tests from root\" && exit 1" + }, + "devDependencies": { + "reflect-metadata": "^0.1.13", + "rimraf": "^3.0.0", + "typescript": "^3.7.2" + }, + "dependencies": {} +} \ No newline at end of file diff --git a/packages/manager/src/index.ts b/packages/manager/src/index.ts new file mode 100644 index 00000000..e69de29b diff --git a/packages/manager/tsconfig.json b/packages/manager/tsconfig.json new file mode 100644 index 00000000..7aae5d2b --- /dev/null +++ b/packages/manager/tsconfig.json @@ -0,0 +1,7 @@ +{ + "extends": "../../tsconfig.json", + "compilerOptions": { + "baseUrl": "src", + "outDir": "dist" + } +} \ No newline at end of file diff --git a/packages/nashorn/package.json b/packages/nashorn/package.json index 51d5612f..bb6730c6 100644 --- a/packages/nashorn/package.json +++ b/packages/nashorn/package.json @@ -25,6 +25,6 @@ "devDependencies": { "reflect-metadata": "^0.1.13", "rimraf": "^3.0.0", - "typescript": "^3.6.2" + "typescript": "^3.7.4" } } diff --git a/packages/ployfill/package.json b/packages/ployfill/package.json index 1f148dd8..5ff5d363 100644 --- a/packages/ployfill/package.json +++ b/packages/ployfill/package.json @@ -22,6 +22,6 @@ "devDependencies": { "reflect-metadata": "^0.1.13", "rimraf": "^3.0.0", - "typescript": "^3.6.2" + "typescript": "^3.7.4" } -} \ No newline at end of file +} diff --git a/packages/plugin/package.json b/packages/plugin/package.json index 6c9a390b..389f3963 100644 --- a/packages/plugin/package.json +++ b/packages/plugin/package.json @@ -24,7 +24,7 @@ "devDependencies": { "reflect-metadata": "^0.1.13", "rimraf": "^3.0.0", - "typescript": "^3.6.2" + "typescript": "^3.7.4" }, "dependencies": { "@ms/api": "^0.1.1", diff --git a/packages/sponge/package.json b/packages/sponge/package.json index 382ce0b7..6fd7d721 100644 --- a/packages/sponge/package.json +++ b/packages/sponge/package.json @@ -24,7 +24,7 @@ "devDependencies": { "reflect-metadata": "^0.1.13", "rimraf": "^3.0.0", - "typescript": "^3.6.2" + "typescript": "^3.7.4" }, "dependencies": { "@ms/api": "^0.1.1",