@10stars/config 15.2.0 → 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/.oxfmtrc.json CHANGED
@@ -5,8 +5,8 @@
5
5
  "semi": false,
6
6
  "useTabs": false,
7
7
  "bracketSpacing": true,
8
- "experimentalSortImports": {
9
- "groups": ["builtin", "external", "internal", ["parent", "sibling", "index"], "side-effect"],
8
+ "sortImports": {
9
+ "groups": ["builtin", "external", "internal", ["parent", "sibling", "index"], "unknown"],
10
10
  "newlinesBetween": true,
11
11
  "order": "asc",
12
12
  "ignoreCase": true
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@10stars/config",
3
- "version": "15.2.0",
3
+ "version": "15.2.2",
4
4
  "private": false,
5
5
  "bin": {
6
6
  "config": "./src/index.ts"
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
  },