feat: upgrade version

Signed-off-by: MiaoWoo <admin@yumc.pw>
This commit is contained in:
2020-01-08 09:48:37 +08:00
parent 7ab3443351
commit 73690a2668
16 changed files with 94 additions and 14 deletions

View File

@ -0,0 +1,31 @@
{
"name": "@ms/compile",
"version": "0.1.0",
"description": "MiaoScript compile package",
"keywords": [
"miaoscript",
"minecraft",
"bukkit",
"sponge"
],
"author": "MiaoWoo <admin@yumc.pw>",
"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": {
}
}

View File

@ -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(() => { })

View File

@ -0,0 +1,7 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"baseUrl": "src",
"outDir": "dist"
}
}