react-native-builder-bob 0.20.1 → 0.20.2
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.
|
@@ -71,17 +71,59 @@ async function build({
|
|
|
71
71
|
throw new Error(`Couldn't find a ${_kleur.default.blue('tsconfig.json')} in the project root.`);
|
|
72
72
|
}
|
|
73
73
|
|
|
74
|
-
let tsc
|
|
74
|
+
let tsc;
|
|
75
|
+
|
|
76
|
+
if (options !== null && options !== void 0 && options.tsc) {
|
|
77
|
+
tsc = _path.default.resolve(root, options.tsc);
|
|
78
|
+
|
|
79
|
+
if (!(await _fsExtra.default.pathExists(tsc))) {
|
|
80
|
+
throw new Error(`The ${_kleur.default.blue('tsc')} binary doesn't seem to be installed at ${_kleur.default.blue(tsc)}. Please specify the correct path in options or remove it to use the workspace's version.`);
|
|
81
|
+
}
|
|
82
|
+
} else {
|
|
83
|
+
var _execpath$split$pop;
|
|
84
|
+
|
|
85
|
+
const execpath = process.env.npm_execpath;
|
|
86
|
+
const cli = execpath !== null && execpath !== void 0 && (_execpath$split$pop = execpath.split('/').pop()) !== null && _execpath$split$pop !== void 0 && _execpath$split$pop.includes('yarn') ? 'yarn' : 'npm';
|
|
87
|
+
|
|
88
|
+
try {
|
|
89
|
+
if (cli === 'yarn') {
|
|
90
|
+
const result = _crossSpawn.default.sync('yarn', ['bin', 'tsc'], {
|
|
91
|
+
stdio: 'pipe',
|
|
92
|
+
encoding: 'utf-8',
|
|
93
|
+
cwd: root
|
|
94
|
+
});
|
|
95
|
+
|
|
96
|
+
tsc = result.stdout.trim();
|
|
97
|
+
} else {
|
|
98
|
+
const result = _crossSpawn.default.sync('npm', ['bin'], {
|
|
99
|
+
stdio: 'pipe',
|
|
100
|
+
encoding: 'utf-8',
|
|
101
|
+
cwd: root
|
|
102
|
+
});
|
|
103
|
+
|
|
104
|
+
tsc = _path.default.resolve(result.stdout.trim(), 'tsc');
|
|
105
|
+
}
|
|
106
|
+
} catch (e) {
|
|
107
|
+
tsc = _path.default.resolve(root, 'node_modules', '.bin', 'tsc');
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
if ((0, _os.platform)() === 'win32' && !tsc.endsWith('.cmd')) {
|
|
111
|
+
tsc += '.cmd';
|
|
112
|
+
}
|
|
113
|
+
}
|
|
75
114
|
|
|
76
115
|
if (!(await _fsExtra.default.pathExists(tsc))) {
|
|
77
116
|
try {
|
|
78
117
|
tsc = await (0, _which.default)('tsc');
|
|
79
|
-
|
|
118
|
+
|
|
119
|
+
if (await _fsExtra.default.pathExists(tsc)) {
|
|
120
|
+
report.warn(`Failed to locate 'tsc' in the workspace. Falling back to the globally installed version. Consider adding ${_kleur.default.blue('typescript')} to your ${_kleur.default.blue('devDependencies')} or specifying the ${_kleur.default.blue('tsc')} option for the typescript target.`);
|
|
121
|
+
}
|
|
80
122
|
} catch (e) {// Ignore
|
|
81
123
|
}
|
|
82
124
|
}
|
|
83
125
|
|
|
84
|
-
if (!(await _fsExtra.default.pathExists(tsc))) {
|
|
126
|
+
if (tsc == null || !(await _fsExtra.default.pathExists(tsc))) {
|
|
85
127
|
throw new Error(`The ${_kleur.default.blue('tsc')} binary doesn't seem to be installed under ${_kleur.default.blue('node_modules')} or present in $PATH. Make sure you have added ${_kleur.default.blue('typescript')} to your ${_kleur.default.blue('devDependencies')} or specify the ${_kleur.default.blue('tsc')} option for typescript.`);
|
|
86
128
|
}
|
|
87
129
|
|
|
@@ -93,7 +135,8 @@ async function build({
|
|
|
93
135
|
}
|
|
94
136
|
|
|
95
137
|
const result = _crossSpawn.default.sync(tsc, ['--pretty', '--declaration', '--declarationMap', '--emitDeclarationOnly', '--project', project, '--outDir', output], {
|
|
96
|
-
stdio: 'inherit'
|
|
138
|
+
stdio: 'inherit',
|
|
139
|
+
cwd: root
|
|
97
140
|
});
|
|
98
141
|
|
|
99
142
|
if (result.status === 0) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typescript.js","names":["build","root","output","report","options","info","kleur","blue","path","relative","del","project","tsconfig","join","fs","pathExists","config","JSON5","parse","readFile","compilerOptions","conflicts","noEmit","undefined","push","emitDeclarationOnly","declarationDir","outDir","length","warn","reduce","acc","curr","gray","yellow","e","Error","tsc","resolve","platform","which","tsbuildinfo","replace","result","spawn","sync","stdio","status","success","stdout","error","toString","message"],"sources":["../../src/targets/typescript.ts"],"sourcesContent":["import kleur from 'kleur';\nimport path from 'path';\nimport fs from 'fs-extra';\nimport which from 'which';\nimport spawn from 'cross-spawn';\nimport del from 'del';\nimport JSON5 from 'json5';\nimport { platform } from 'os';\nimport type { Input } from '../types';\n\ntype Options = Input & {\n options?: { project?: string; tsc?: string };\n};\n\nexport default async function build({\n root,\n output,\n report,\n options,\n}: Options) {\n report.info(\n `Cleaning up previous build at ${kleur.blue(path.relative(root, output))}`\n );\n\n await del([output]);\n\n report.info(`Generating type definitions with ${kleur.blue('tsc')}`);\n\n const project = options?.project ? options.project : 'tsconfig.json';\n const tsconfig = path.join(root, project);\n\n try {\n if (await fs.pathExists(tsconfig)) {\n try {\n const config = JSON5.parse(await fs.readFile(tsconfig, 'utf-8'));\n\n if (config.compilerOptions) {\n const conflicts: string[] = [];\n\n if (config.compilerOptions.noEmit !== undefined) {\n conflicts.push('compilerOptions.noEmit');\n }\n\n if (config.compilerOptions.emitDeclarationOnly !== undefined) {\n conflicts.push('compilerOptions.emitDeclarationOnly');\n }\n\n if (config.compilerOptions.declarationDir) {\n conflicts.push('compilerOptions.declarationDir');\n }\n\n if (\n config.compilerOptions.outDir &&\n path.join(root, config.compilerOptions.outDir) !== output\n ) {\n conflicts.push('compilerOptions.outDir');\n }\n\n if (conflicts.length) {\n report.warn(\n `Found following options in the config file which can conflict with the CLI options. Please remove them from ${kleur.blue(\n project\n )}:${conflicts.reduce(\n (acc, curr) =>\n acc + `\\n${kleur.gray('-')} ${kleur.yellow(curr)}`,\n ''\n )}`\n );\n }\n }\n } catch (e) {\n report.warn(\n `Couldn't parse '${project}'. There might be validation errors.`\n );\n }\n } else {\n throw new Error(\n `Couldn't find a ${kleur.blue('tsconfig.json')} in the project root.`\n );\n }\n\n let tsc = options?.tsc\n ? path.resolve(root, options.tsc)\n : path.resolve(root, 'node_modules', '.bin', 'tsc') +\n (platform() === 'win32' ? '.cmd' : '');\n\n if (!(await fs.pathExists(tsc))) {\n try {\n tsc = await which('tsc');\n\n report.warn(\n `Using a global version of ${kleur.blue(\n 'tsc'\n )}. Consider adding ${kleur.blue('typescript')} to your ${kleur.blue(\n 'devDependencies'\n )} or specifying the ${kleur.blue(\n 'tsc'\n )} option for the typescript target.`\n );\n } catch (e) {\n // Ignore\n }\n }\n\n if (!(await fs.pathExists(tsc))) {\n throw new Error(\n `The ${kleur.blue(\n 'tsc'\n )} binary doesn't seem to be installed under ${kleur.blue(\n 'node_modules'\n )} or present in $PATH. Make sure you have added ${kleur.blue(\n 'typescript'\n )} to your ${kleur.blue('devDependencies')} or specify the ${kleur.blue(\n 'tsc'\n )} option for typescript.`\n );\n }\n\n const tsbuildinfo = path.join(\n output,\n project.replace(/\\.json$/, '.tsbuildinfo')\n );\n\n try {\n await del([tsbuildinfo]);\n } catch (e) {\n // Ignore\n }\n\n const result = spawn.sync(\n tsc,\n [\n '--pretty',\n '--declaration',\n '--declarationMap',\n '--emitDeclarationOnly',\n '--project',\n project,\n '--outDir',\n output,\n ],\n { stdio: 'inherit' }\n );\n\n if (result.status === 0) {\n await del([tsbuildinfo]);\n\n report.success(\n `Wrote definition files to ${kleur.blue(path.relative(root, output))}`\n );\n } else {\n throw new Error('Failed to build definition files.');\n }\n } catch (e: any) {\n if (e.stdout) {\n report.error(\n `Errors found when building definition files:\\n${e.stdout.toString()}`\n );\n } else {\n report.error(e.message);\n }\n\n throw new Error('Failed to build definition files.');\n }\n}\n"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;AAOe,eAAeA,KAAf,CAAqB;EAClCC,IADkC;EAElCC,MAFkC;EAG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C,MAApB,CAAX,CAAwC,EADvE;IAGD,CAND,MAMO;MACL,MAAM,IAAIkC,KAAJ,CAAU,mCAAV,CAAN;IACD;EACF,CA1HD,CA0HE,OAAOD,CAAP,EAAe;IACf,IAAIA,CAAC,CAACc,MAAN,EAAc;MACZ9C,MAAM,CAAC+C,KAAP,CACG,iDAAgDf,CAAC,CAACc,MAAF,CAASE,QAAT,EAAoB,EADvE;IAGD,CAJD,MAIO;MACLhD,MAAM,CAAC+C,KAAP,CAAaf,CAAC,CAACiB,OAAf;IACD;;IAED,MAAM,IAAIhB,KAAJ,CAAU,mCAAV,CAAN;EACD;AACF"}
|
|
1
|
+
{"version":3,"file":"typescript.js","names":["build","root","output","report","options","info","kleur","blue","path","relative","del","project","tsconfig","join","fs","pathExists","config","JSON5","parse","readFile","compilerOptions","conflicts","noEmit","undefined","push","emitDeclarationOnly","declarationDir","outDir","length","warn","reduce","acc","curr","gray","yellow","e","Error","tsc","resolve","execpath","process","env","npm_execpath","cli","split","pop","includes","result","spawn","sync","stdio","encoding","cwd","stdout","trim","platform","endsWith","which","tsbuildinfo","replace","status","success","error","toString","message"],"sources":["../../src/targets/typescript.ts"],"sourcesContent":["import kleur from 'kleur';\nimport path from 'path';\nimport fs from 'fs-extra';\nimport which from 'which';\nimport spawn from 'cross-spawn';\nimport del from 'del';\nimport JSON5 from 'json5';\nimport { platform } from 'os';\nimport type { Input } from '../types';\n\ntype Options = Input & {\n options?: { project?: string; tsc?: string };\n};\n\nexport default async function build({\n root,\n output,\n report,\n options,\n}: Options) {\n report.info(\n `Cleaning up previous build at ${kleur.blue(path.relative(root, output))}`\n );\n\n await del([output]);\n\n report.info(`Generating type definitions with ${kleur.blue('tsc')}`);\n\n const project = options?.project ? options.project : 'tsconfig.json';\n const tsconfig = path.join(root, project);\n\n try {\n if (await fs.pathExists(tsconfig)) {\n try {\n const config = JSON5.parse(await fs.readFile(tsconfig, 'utf-8'));\n\n if (config.compilerOptions) {\n const conflicts: string[] = [];\n\n if (config.compilerOptions.noEmit !== undefined) {\n conflicts.push('compilerOptions.noEmit');\n }\n\n if (config.compilerOptions.emitDeclarationOnly !== undefined) {\n conflicts.push('compilerOptions.emitDeclarationOnly');\n }\n\n if (config.compilerOptions.declarationDir) {\n conflicts.push('compilerOptions.declarationDir');\n }\n\n if (\n config.compilerOptions.outDir &&\n path.join(root, config.compilerOptions.outDir) !== output\n ) {\n conflicts.push('compilerOptions.outDir');\n }\n\n if (conflicts.length) {\n report.warn(\n `Found following options in the config file which can conflict with the CLI options. Please remove them from ${kleur.blue(\n project\n )}:${conflicts.reduce(\n (acc, curr) =>\n acc + `\\n${kleur.gray('-')} ${kleur.yellow(curr)}`,\n ''\n )}`\n );\n }\n }\n } catch (e) {\n report.warn(\n `Couldn't parse '${project}'. There might be validation errors.`\n );\n }\n } else {\n throw new Error(\n `Couldn't find a ${kleur.blue('tsconfig.json')} in the project root.`\n );\n }\n\n let tsc;\n\n if (options?.tsc) {\n tsc = path.resolve(root, options.tsc);\n\n if (!(await fs.pathExists(tsc))) {\n throw new Error(\n `The ${kleur.blue(\n 'tsc'\n )} binary doesn't seem to be installed at ${kleur.blue(\n tsc\n )}. Please specify the correct path in options or remove it to use the workspace's version.`\n );\n }\n } else {\n const execpath = process.env.npm_execpath;\n const cli = execpath?.split('/').pop()?.includes('yarn') ? 'yarn' : 'npm';\n\n try {\n if (cli === 'yarn') {\n const result = spawn.sync('yarn', ['bin', 'tsc'], {\n stdio: 'pipe',\n encoding: 'utf-8',\n cwd: root,\n });\n\n tsc = result.stdout.trim();\n } else {\n const result = spawn.sync('npm', ['bin'], {\n stdio: 'pipe',\n encoding: 'utf-8',\n cwd: root,\n });\n\n tsc = path.resolve(result.stdout.trim(), 'tsc');\n }\n } catch (e) {\n tsc = path.resolve(root, 'node_modules', '.bin', 'tsc');\n }\n\n if (platform() === 'win32' && !tsc.endsWith('.cmd')) {\n tsc += '.cmd';\n }\n }\n\n if (!(await fs.pathExists(tsc))) {\n try {\n tsc = await which('tsc');\n\n if (await fs.pathExists(tsc)) {\n report.warn(\n `Failed to locate 'tsc' in the workspace. Falling back to the globally installed version. Consider adding ${kleur.blue(\n 'typescript'\n )} to your ${kleur.blue(\n 'devDependencies'\n )} or specifying the ${kleur.blue(\n 'tsc'\n )} option for the typescript target.`\n );\n }\n } catch (e) {\n // Ignore\n }\n }\n\n if (tsc == null || !(await fs.pathExists(tsc))) {\n throw new Error(\n `The ${kleur.blue(\n 'tsc'\n )} binary doesn't seem to be installed under ${kleur.blue(\n 'node_modules'\n )} or present in $PATH. Make sure you have added ${kleur.blue(\n 'typescript'\n )} to your ${kleur.blue('devDependencies')} or specify the ${kleur.blue(\n 'tsc'\n )} option for typescript.`\n );\n }\n\n const tsbuildinfo = path.join(\n output,\n project.replace(/\\.json$/, '.tsbuildinfo')\n );\n\n try {\n await del([tsbuildinfo]);\n } catch (e) {\n // Ignore\n }\n\n const result = spawn.sync(\n tsc,\n [\n '--pretty',\n '--declaration',\n '--declarationMap',\n '--emitDeclarationOnly',\n '--project',\n project,\n '--outDir',\n output,\n ],\n {\n stdio: 'inherit',\n cwd: root,\n }\n );\n\n if (result.status === 0) {\n await del([tsbuildinfo]);\n\n report.success(\n `Wrote definition files to ${kleur.blue(path.relative(root, output))}`\n );\n } else {\n throw new Error('Failed to build definition files.');\n }\n } catch (e: any) {\n if (e.stdout) {\n report.error(\n `Errors found when building definition files:\\n${e.stdout.toString()}`\n );\n } else {\n report.error(e.message);\n }\n\n throw new Error('Failed to build definition files.');\n }\n}\n"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;AAOe,eAAeA,KAAf,CAAqB;EAClCC,IADkC;EAElCC,MAFkC;EAGlCC,MAHkC;EAIlCC;AAJkC,CAArB,EAKH;EACVD,MAAM,CAACE,IAAP,CACG,iCAAgCC,cAAA,CAAMC,IAAN,CAAWC,aAAA,CAAKC,QAAL,CAAcR,IAAd,EAAoBC,MAApB,CAAX,CAAwC,EAD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,MAAM,IAAIkC,KAAJ,CAAU,mCAAV,CAAN;IACD;EACF,CAvKD,CAuKE,OAAOD,CAAP,EAAe;IACf,IAAIA,CAAC,CAACkB,MAAN,EAAc;MACZlD,MAAM,CAAC2D,KAAP,CACG,iDAAgD3B,CAAC,CAACkB,MAAF,CAASU,QAAT,EAAoB,EADvE;IAGD,CAJD,MAIO;MACL5D,MAAM,CAAC2D,KAAP,CAAa3B,CAAC,CAAC6B,OAAf;IACD;;IAED,MAAM,IAAI5B,KAAJ,CAAU,mCAAV,CAAN;EACD;AACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-builder-bob",
|
|
3
|
-
"version": "0.20.
|
|
3
|
+
"version": "0.20.2",
|
|
4
4
|
"description": "CLI to build JavaScript files for React Native libraries",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react-native",
|
|
@@ -74,5 +74,5 @@
|
|
|
74
74
|
"@types/yargs": "^17.0.10",
|
|
75
75
|
"concurrently": "^7.2.2"
|
|
76
76
|
},
|
|
77
|
-
"gitHead": "
|
|
77
|
+
"gitHead": "03252b0272a4ae3c3920c0fad394528ec0cfcc1c"
|
|
78
78
|
}
|