@alessiofrittoli/package-configs 1.8.0-alpha.7 → 1.8.0-alpha.8
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
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const installDependencies = require('./install-dependencies.cjs')
|
|
2
2
|
const { Chain } = require('@alessiofrittoli/chain-functions')
|
|
3
3
|
const project = require('../../package.json')
|
|
4
4
|
const { readFileSync } = require('fs')
|
|
@@ -43,8 +43,6 @@ const isExternalPackage = ({ root, name }) => {
|
|
|
43
43
|
*/
|
|
44
44
|
const getProcessRoot = () => process.env.INIT_CWD || process.cwd()
|
|
45
45
|
|
|
46
|
-
// export type PostInstallChainFn = () => void | Promise<void>
|
|
47
|
-
|
|
48
46
|
/**
|
|
49
47
|
* @type import('@alessiofrittoli/chain-functions/types').LastChainLink<() => void | Promise<void>>
|
|
50
48
|
*/
|
|
@@ -53,6 +51,8 @@ const lastChainLink = () => () => {
|
|
|
53
51
|
package: project.name,
|
|
54
52
|
message: `Post-Install done. Thank you for installing ${project.name}!`,
|
|
55
53
|
})
|
|
54
|
+
|
|
55
|
+
process.exit(0)
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
/**
|
|
@@ -68,8 +68,7 @@ const runChain = async () => {
|
|
|
68
68
|
}
|
|
69
69
|
|
|
70
70
|
await Chain.functions(postInstallChain)({ cwd })
|
|
71
|
-
|
|
72
|
-
process.exit(0)
|
|
73
71
|
}
|
|
74
72
|
|
|
75
|
-
|
|
73
|
+
// oxlint-disable-next-line typescript/no-floating-promises
|
|
74
|
+
runChain()
|
|
@@ -167,7 +167,6 @@ const installDependencies = next => async params => {
|
|
|
167
167
|
|
|
168
168
|
const installCommand = engine === 'npm' ? 'npm install --save-dev' : 'pnpm add --save-dev'
|
|
169
169
|
|
|
170
|
-
// execSync(`${installCommand} ${dependenciesChoice.join(' ')}`, { cwd, stdio: 'inherit' })
|
|
171
170
|
execSync(`${installCommand} ${dependenciesChoice.join(' ')}`, { cwd, stdio: 'ignore' })
|
|
172
171
|
|
|
173
172
|
return next(params)
|