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", "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",

View File

@ -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') {
from new File(typescriptRootFile as File, 'src/types') 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' 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) {