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