We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a46c460 commit 0c5ad51Copy full SHA for 0c5ad51
src/cli.js
@@ -53,7 +53,11 @@ program.version(packageJson.version).usage('<command> [<args>]')
53
program.command('init [filename]')
54
.usage('[options] [filename]')
55
.action(function (filename = 'tailwind.js') {
56
- const destination = path.resolve(filename)
+ let destination = path.resolve(filename)
57
+
58
+ if (! path.extname(filename).includes('.js')) {
59
+ destination += '.js'
60
+ }
61
62
if (fs.existsSync(destination)) {
63
console.log(`Destination ${destination} already exists, aborting.`)
0 commit comments