perf(tauri.js) build API typedefs on the API compilation process (#861)

This commit is contained in:
Lucas Fernandes Nogueira
2020-07-19 16:51:00 -03:00
committed by GitHub
parent e52afd94d0
commit 0f00384152
3 changed files with 7 additions and 5 deletions

View File

@@ -10,11 +10,10 @@
"url": "https://opencollective.com/tauri"
},
"scripts": {
"build": "yarn build:api && yarn build:typedefs && yarn build:webpack",
"build": "yarn build:api && yarn build:webpack",
"build:webpack": "rimraf ./dist && yarn build:typevalidators && webpack --progress",
"build:typevalidators": "node ./build/type-validators",
"build:api": "rimraf ./api && rollup -c --silent && yarn build:typedefs",
"build:typedefs": "yarn tsc ./api-src/index.ts --declaration --emitDeclarationOnly --outDir api",
"build:api": "rimraf ./api && rollup -c --silent",
"build-release": "yarn build --display none --progress false",
"test": "jest --runInBand --no-cache --testPathIgnorePatterns=\"(build|dev)\"",
"pretest": "yarn build",

View File

@@ -47,7 +47,7 @@ export default [{
}
}),
typescript({
tsconfig: './api-src/tsconfig.json'
tsconfig: './tsconfig.api.json'
}),
babel({
configFile: false,

View File

@@ -7,6 +7,9 @@
"paths": {
"types": ["@types"]
},
"declaration": true,
"declarationDir": "api",
"rootDir": "api-src"
},
"include": ["./"]
"include": ["./api-src"]
}