@10stars/config 15.2.1 → 15.2.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.
- package/package.json +1 -1
- package/src/index.ts +4 -2
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -38,13 +38,15 @@ const actions = {
|
|
|
38
38
|
info: `Runs husky and links packages`,
|
|
39
39
|
action: async () => {
|
|
40
40
|
if (process.env.CI) return
|
|
41
|
-
exec(`husky`) // husky is intended only for local development (not in CI)
|
|
42
|
-
await setupVSCode(cwd) // create/update .vscode directory with standardized extensions.json and settings.json
|
|
43
41
|
|
|
42
|
+
// we must copy it first, because the following steps might have formatting cmds
|
|
44
43
|
const oxfmtSrc = path.join(new URL("../.oxfmtrc.json", import.meta.url).pathname, ``)
|
|
45
44
|
const oxfmtDest = path.join(cwd, `.oxfmtrc.json`)
|
|
46
45
|
await fs.cp(oxfmtSrc, oxfmtDest, { force: true })
|
|
47
46
|
|
|
47
|
+
exec(`husky`) // husky is intended only for local development (not in CI)
|
|
48
|
+
await setupVSCode(cwd) // create/update .vscode directory with standardized extensions.json and settings.json
|
|
49
|
+
|
|
48
50
|
const config = await getConfig()
|
|
49
51
|
if (config?.linkPackages) await linkPackages(cwd, config.linkPackages)
|
|
50
52
|
},
|