Fix Package Generation
All checks were successful
ScriptCraft/pipeline/head This commit looks good

This commit is contained in:
TheBrokenRail 2020-04-29 12:47:26 -04:00
parent 2b9a573a46
commit 7da36aa083
2 changed files with 12 additions and 9 deletions

View File

@ -1,5 +1,6 @@
{
"name": "minecraft",
"version" : "1.0.0-SNAPSHOT",
"types": "lib/minecraft/index.d.ts",
"devDependencies": {
"@typescript-eslint/eslint-plugin": "latest",

View File

@ -21,14 +21,16 @@ task typescript(group: 'typescript', type: Exec) {
}
}
task apiTar(group: 'typescript', type: Tar) {
into('/types') {
task typescriptAPI(group: 'typescript', type: Tar) {
into('/package') {
into('types') {
from new File(typescriptRootFile as File, 'src/types')
}
into('/lib') {
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) {