@openload28/create-tt 1.0.0-dev.20260904.322 → 1.0.0-dev.20260907.329
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/src/installer.js +4 -4
package/package.json
CHANGED
package/src/installer.js
CHANGED
|
@@ -264,13 +264,13 @@ function runScript(packageManager, script) {
|
|
|
264
264
|
function wrapperConfig(moduleName, base) {
|
|
265
265
|
const baseImport = base ? `import base from './${base}'\n` : 'const base = {}\n'
|
|
266
266
|
return `import tt from '${moduleName}'\n${baseImport}
|
|
267
|
-
const
|
|
268
|
-
? config.map(
|
|
267
|
+
const addTt = (config = {}) => Array.isArray(config)
|
|
268
|
+
? config.map(addTt)
|
|
269
269
|
: { ...config, plugins: [tt(), ...(config.plugins ?? [])] }
|
|
270
270
|
|
|
271
271
|
export default typeof base === 'function'
|
|
272
|
-
? async (...args) =>
|
|
273
|
-
: Promise.resolve(base).then(
|
|
272
|
+
? async (...args) => addTt(await base(...args))
|
|
273
|
+
: Promise.resolve(base).then(addTt)
|
|
274
274
|
`
|
|
275
275
|
}
|
|
276
276
|
|