@spark-ui/cli-utils 2.0.7 → 2.1.0

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/CHANGELOG.md CHANGED
@@ -3,6 +3,12 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [2.1.0](https://github.com/adevinta/spark/compare/@spark-ui/cli-utils@2.0.7...@spark-ui/cli-utils@2.1.0) (2023-02-24)
7
+
8
+ ### Features
9
+
10
+ - **cli-utils:** flattened cli args for theme config ([ccb13de](https://github.com/adevinta/spark/commit/ccb13de785f2d6d2f8893bdff83b032af6416a38))
11
+
6
12
  ## [2.0.7](https://github.com/adevinta/spark/compare/@spark-ui/cli-utils@2.0.6...@spark-ui/cli-utils@2.0.7) (2023-02-24)
7
13
 
8
14
  ### Bug Fixes
@@ -45,10 +45,10 @@ if (!configFileIsMJS) writeFileSync(jsFilePath, jsFileContents)
45
45
 
46
46
  import(jsFilePath)
47
47
  .then(module => {
48
- const { tailwindThemeConfigFilePath, CSSTokens } = module.default
48
+ const { tailwindThemeConfigPath, tailwindCSSPath, themes } = module.default
49
49
 
50
- createTailwindThemeConfigFile(tailwindThemeConfigFilePath)
51
- createCSSTokensFile(CSSTokens.filePath, CSSTokens.themes)
50
+ createTailwindThemeConfigFile(tailwindThemeConfigPath)
51
+ createCSSTokensFile(tailwindCSSPath, themes)
52
52
 
53
53
  const child = spawn(process.execPath, [jsFilePath], {
54
54
  stdio: 'inherit',
@@ -59,14 +59,14 @@ import(jsFilePath)
59
59
  logger.success(
60
60
  `✨ Your Spark Tailwind theme config file has been successfully created: ${join(
61
61
  process.cwd(),
62
- tailwindThemeConfigFilePath
62
+ tailwindThemeConfigPath
63
63
  )}`
64
64
  )
65
65
 
66
66
  logger.success(
67
67
  `✨ Your Spark Tailwind CSS Tokens file file has been successfully created: ${join(
68
68
  process.cwd(),
69
- CSSTokens.filePath
69
+ tailwindCSSPath
70
70
  )}`
71
71
  )
72
72
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spark-ui/cli-utils",
3
- "version": "2.0.7",
3
+ "version": "2.1.0",
4
4
  "description": "Spark CLI utils",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -13,7 +13,7 @@
13
13
  "type": "module",
14
14
  "dependencies": {
15
15
  "@clack/prompts": "0.2.2",
16
- "@spark-ui/theme-utils": "^2.3.2",
16
+ "@spark-ui/theme-utils": "^2.4.0",
17
17
  "camel-case": "4.1.2",
18
18
  "chalk": "5.2.0",
19
19
  "commander": "10.0.0",
@@ -29,5 +29,5 @@
29
29
  "url": "git@github.com:adevinta/spark.git",
30
30
  "directory": "packages/utils/cli"
31
31
  },
32
- "gitHead": "28fc0d6e70e1f90286d5ddbb5544952da0e786ad"
32
+ "gitHead": "f21e13f33295a0f0c73726c2f46732993bdf9d72"
33
33
  }