@gesslar/sassy 0.20.0 → 0.21.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/src/Valid.js CHANGED
@@ -7,7 +7,7 @@ export default class Valid {
7
7
  /**
8
8
  * Validates a value against a type
9
9
  *
10
- * @param {*} value - The value to validate
10
+ * @param {unknown} value - The value to validate
11
11
  * @param {string} type - The expected type in the form of "object",
12
12
  * "object[]", "object|object[]"
13
13
  * @param {object} [options] - Additional options for validation.
package/src/cli.js CHANGED
@@ -110,26 +110,38 @@ void (async function main() {
110
110
  .description(pkgJson.description)
111
111
  .version(pkgJson.version)
112
112
 
113
- // Add the build subcommand
114
- const buildCommand = new BuildCommand({cwd, packageJson: pkgJson})
115
- buildCommand.cache = cache
113
+ const commands = [BuildCommand, ResolveCommand, LintCommand]
114
+
115
+ for(const CommandClass of commands) {
116
+ const command = new CommandClass({cwd, packageJson: pkgJson})
117
+ command.setCache(cache)
118
+ await command.buildCli(program)
119
+ command.addCliOptions(alwaysAvailable, false)
120
+ }
121
+
122
+ // // Add the build subcommand
123
+ // const buildCommand = new BuildCommand({cwd, packageJson: pkgJson})
124
+
125
+ // buildCommand.cache = cache
126
+
127
+ // void(await buildCommand.buildCli(program))
128
+ // .addCliOptions(alwaysAvailable, false)
129
+
130
+ // // Add the resolve subcommand
131
+ // const resolveCommand = new ResolveCommand({cwd, packageJson: pkgJson})
116
132
 
117
- void(await buildCommand.buildCli(program))
118
- .addCliOptions(alwaysAvailable, false)
133
+ // resolveCommand.cache = cache
119
134
 
120
- // Add the resolve subcommand
121
- const resolveCommand = new ResolveCommand({cwd, packageJson: pkgJson})
122
- resolveCommand.cache = cache
135
+ // void(await resolveCommand.buildCli(program))
136
+ // .addCliOptions(alwaysAvailable, false)
123
137
 
124
- void(await resolveCommand.buildCli(program))
125
- .addCliOptions(alwaysAvailable, false)
138
+ // // Add the lint subcommand
139
+ // const lintCommand = new LintCommand({cwd, packageJson: pkgJson})
126
140
 
127
- // Add the lint subcommand
128
- const lintCommand = new LintCommand({cwd, packageJson: pkgJson})
129
- lintCommand.cache = cache
141
+ // lintCommand.cache = cache
130
142
 
131
- void(await lintCommand.buildCli(program))
132
- .addCliOptions(alwaysAvailable, false)
143
+ // void(await lintCommand.buildCli(program))
144
+ // .addCliOptions(alwaysAvailable, false)
133
145
 
134
146
  // Let'er rip, bitches! VROOM VROOM, motherfucker!!
135
147
  await program.parseAsync()