@chuva.io/less-cli
Advanced tools
Comparing version 1.0.0-beta.9 to 1.0.0-beta.10
#!/usr/bin/env node | ||
import { Command } from 'commander'; | ||
import chalk from 'chalk'; | ||
import { createRequire } from 'module'; | ||
const require = createRequire(import.meta.url); | ||
import { readFile } from 'fs/promises'; | ||
@@ -15,3 +18,3 @@ import deploy from '../commands/deploy/index.js'; | ||
.description('CLI to interact with Less') | ||
.version('0.0.1') | ||
.version('1.0.0-beta.10') | ||
.usage('[COMMAND]'); | ||
@@ -18,0 +21,0 @@ |
@@ -15,3 +15,3 @@ import fs from 'fs'; | ||
const folder_path = '/src/shared/mongodb_client'; | ||
const folder_path = '/less/shared/mongodb_client'; | ||
const destination_folder = path.join(working_directory, folder_path); | ||
@@ -18,0 +18,0 @@ |
@@ -48,3 +48,3 @@ import AdmZip from 'adm-zip'; | ||
const itemsToZip = glob.sync('{src,requirements.txt,yarn.lock,package.lock,less.config,package.json}', { | ||
const itemsToZip = glob.sync('{less,requirements.txt,yarn.lock,package.lock,less.config,package.json}', { | ||
cwd: projectPath, | ||
@@ -51,0 +51,0 @@ }); |
@@ -35,8 +35,8 @@ import chalk from 'chalk'; | ||
const subdirectories = [ | ||
'src/apis/demo/messages', | ||
'src/sockets', | ||
'src/external_topics', | ||
'src/shared', | ||
'src/crons', | ||
'src/topics/project_created', | ||
'less/apis/demo/messages', | ||
'less/sockets', | ||
'less/external_topics', | ||
'less/shared', | ||
'less/crons', | ||
'less/topics/project_created', | ||
]; | ||
@@ -86,4 +86,4 @@ | ||
// Create src/apis/demo/messages/index.js | ||
const messagesIndexPath = path.join(projectDir, 'src', 'apis', 'demo', 'messages', 'index.js'); | ||
// Create less/apis/demo/messages/index.js | ||
const messagesIndexPath = path.join(projectDir, 'less', 'apis', 'demo', 'messages', 'index.js'); | ||
if (!fs.existsSync(messagesIndexPath)) { | ||
@@ -107,3 +107,3 @@ const messagesIndexContent = ` | ||
} else { | ||
console.log(chalk.yellow('Warning:'), 'src/apis/demo/messages/index.js file already exists.'); | ||
console.log(chalk.yellow('Warning:'), 'less/apis/demo/messages/index.js file already exists.'); | ||
} | ||
@@ -110,0 +110,0 @@ |
{ | ||
"name": "@chuva.io/less-cli", | ||
"version": "1.0.0-beta.9", | ||
"version": "1.0.0-beta.10", | ||
"description": "`less-cli` is a CLI tool that allows you to deploy your Less projects to AWS while providing several other tools to facilitate your interaction with Less.", | ||
@@ -5,0 +5,0 @@ "author": "Chuva, LLC", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Debug access
Supply chain riskUses debug, reflection and dynamic code execution features.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
26642
368
10