@tamagui/build 1.54.1 → 1.55.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/tamagui-build.js +5 -2
package/package.json
CHANGED
package/tamagui-build.js
CHANGED
|
@@ -23,7 +23,9 @@ const shouldWatch = process.argv.includes('--watch')
|
|
|
23
23
|
const declarationToRoot = !!process.argv.includes('--declaration-root')
|
|
24
24
|
const ignoreBaseUrl = process.argv.includes('--ignore-base-url')
|
|
25
25
|
const baseUrlIndex = process.argv.indexOf('--base-url')
|
|
26
|
-
const
|
|
26
|
+
const tsProjectIndex = process.argv.indexOf('--ts-project')
|
|
27
|
+
const baseUrl = baseUrlIndex > -1 && process.argv[baseUrlIndex + 1] ? process.argv[baseUrlIndex + 1] : '.'
|
|
28
|
+
const tsProject = tsProjectIndex > -1 && process.argv[tsProjectIndex + 1] ? process.argv[tsProjectIndex + 1] : null
|
|
27
29
|
|
|
28
30
|
const pkg = fs.readJSONSync('./package.json')
|
|
29
31
|
let shouldSkipInitialTypes = !!process.env.SKIP_TYPES_INITIAL
|
|
@@ -135,7 +137,8 @@ async function buildTsc() {
|
|
|
135
137
|
|
|
136
138
|
const declarationToRootFlag = declarationToRoot ? ' --declarationDir ./' : ''
|
|
137
139
|
const baseUrlFlag = ignoreBaseUrl ? '' : ` --baseUrl ${baseUrl}`
|
|
138
|
-
const
|
|
140
|
+
const tsProjectFlag = tsProject ? ` --project ${tsProject}` : ''
|
|
141
|
+
const cmd = `tsc${baseUrlFlag}${tsProjectFlag} --outDir ${targetDir} --rootDir src ${declarationToRootFlag}--emitDeclarationOnly --declarationMap`
|
|
139
142
|
|
|
140
143
|
// console.log('\x1b[2m$', `npx ${cmd}`)
|
|
141
144
|
await exec('npx', cmd.split(' '))
|