mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-04-01 10:01:07 +02:00
perf(tauri.js) build API typedefs on the API compilation process (#861)
This commit is contained in:
committed by
GitHub
parent
e52afd94d0
commit
0f00384152
@@ -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",
|
||||
|
||||
@@ -47,7 +47,7 @@ export default [{
|
||||
}
|
||||
}),
|
||||
typescript({
|
||||
tsconfig: './api-src/tsconfig.json'
|
||||
tsconfig: './tsconfig.api.json'
|
||||
}),
|
||||
babel({
|
||||
configFile: false,
|
||||
|
||||
@@ -7,6 +7,9 @@
|
||||
"paths": {
|
||||
"types": ["@types"]
|
||||
},
|
||||
"declaration": true,
|
||||
"declarationDir": "api",
|
||||
"rootDir": "api-src"
|
||||
},
|
||||
"include": ["./"]
|
||||
"include": ["./api-src"]
|
||||
}
|
||||
Reference in New Issue
Block a user