This commit is contained in:
parent
2b9a573a46
commit
7da36aa083
@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "minecraft",
|
"name": "minecraft",
|
||||||
|
"version" : "1.0.0-SNAPSHOT",
|
||||||
"types": "lib/minecraft/index.d.ts",
|
"types": "lib/minecraft/index.d.ts",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@typescript-eslint/eslint-plugin": "latest",
|
"@typescript-eslint/eslint-plugin": "latest",
|
||||||
|
@ -21,14 +21,16 @@ task typescript(group: 'typescript', type: Exec) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
task apiTar(group: 'typescript', type: Tar) {
|
task typescriptAPI(group: 'typescript', type: Tar) {
|
||||||
into('/types') {
|
into('/package') {
|
||||||
|
into('types') {
|
||||||
from new File(typescriptRootFile as File, 'src/types')
|
from new File(typescriptRootFile as File, 'src/types')
|
||||||
}
|
}
|
||||||
into('/lib') {
|
into('lib') {
|
||||||
from dtsOut
|
from dtsOut
|
||||||
}
|
}
|
||||||
from new File(typescriptRootFile as File, 'package.json')
|
from new File(typescriptRootFile as File, 'package.json')
|
||||||
|
}
|
||||||
|
|
||||||
classifier 'api'
|
classifier 'api'
|
||||||
|
|
||||||
@ -37,10 +39,10 @@ task apiTar(group: 'typescript', type: Tar) {
|
|||||||
extension 'tar.gz'
|
extension 'tar.gz'
|
||||||
}
|
}
|
||||||
|
|
||||||
apiTar.dependsOn typescript
|
typescriptAPI.dependsOn typescript
|
||||||
|
|
||||||
artifacts {
|
artifacts {
|
||||||
archives apiTar
|
archives typescriptAPI
|
||||||
}
|
}
|
||||||
|
|
||||||
task eslint(group: 'typescript', type: Exec) {
|
task eslint(group: 'typescript', type: Exec) {
|
||||||
|
Reference in New Issue
Block a user