@jaimanm/resumake 1.0.1 → 1.0.4

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.
@@ -16,6 +16,7 @@ jobs:
16
16
  - uses: actions/setup-node@v4
17
17
  with:
18
18
  node-version: '20'
19
+ registry-url: 'https://registry.npmjs.org/'
19
20
 
20
21
  - name: Install dependencies
21
22
  run: npm ci
package/package.json CHANGED
@@ -1,7 +1,11 @@
1
1
  {
2
2
  "name": "@jaimanm/resumake",
3
- "version": "1.0.1",
3
+ "version": "1.0.4",
4
4
  "description": "CLI to scaffold a magical LaTeX resume environment",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "https://github.com/jaimanm/resumake.git"
8
+ },
5
9
  "main": "index.js",
6
10
  "bin": {
7
11
  "resumake": "./bin/index.js"
@@ -33,15 +33,18 @@ module.exports = async function configCommand() {
33
33
  const driveMatch = actionContent.match(/rclone sync PDF_Exports\/ gdrive:(.*?)\//);
34
34
  const currentDriveFolder = driveMatch ? driveMatch[1] : 'Resumes';
35
35
 
36
- const { driveFolder } = await inquirer.prompt([
36
+ let { driveFolder } = await inquirer.prompt([
37
37
  {
38
38
  type: 'input',
39
39
  name: 'driveFolder',
40
- message: 'What folder in Google Drive should your PDFs sync to?',
40
+ message: 'What folder in Google Drive should your PDFs sync to? (Leave blank or type / for root)',
41
41
  default: currentDriveFolder
42
42
  }
43
43
  ]);
44
44
 
45
+ // Normalize folder to avoid double slashes if they type /
46
+ driveFolder = driveFolder.replace(/^\/+|\/+$/g, '').trim();
47
+
45
48
  if (driveFolder === currentDriveFolder) {
46
49
  console.log(chalk.green('\nConfiguration is already up to date. No changes made.'));
47
50
  return;
package/src/index.js CHANGED
@@ -3,12 +3,14 @@ const setupCommand = require('./commands/setup');
3
3
  const devCommand = require('./commands/dev');
4
4
  const configCommand = require('./commands/config');
5
5
 
6
+ const packageJson = require('../package.json');
7
+
6
8
  const program = new Command();
7
9
 
8
10
  program
9
- .name('resume-env')
11
+ .name('resumake')
10
12
  .description('CLI to automatically setup a magical LaTeX resume environment')
11
- .version('1.0.0');
13
+ .version(packageJson.version);
12
14
 
13
15
  program
14
16
  .command('setup')