lscripts 1.1.0 → 1.2.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.
Files changed (2) hide show
  1. package/lscripts.js +2 -1
  2. package/package.json +6 -2
package/lscripts.js CHANGED
@@ -9,6 +9,7 @@ import { spawn } from 'child_process'
9
9
  const getPackageManagerEngine = () => {
10
10
  if (fs.existsSync('./package-lock.json')) return 'npm'
11
11
  if (fs.existsSync('./yarn.lock')) return 'yarn'
12
+ if (fs.existsSync('./pnpm-lock.yaml')) return 'pnpm'
12
13
  return null
13
14
  }
14
15
 
@@ -17,7 +18,7 @@ const runner = getPackageManagerEngine()
17
18
  if (!runner) {
18
19
  console.log('Please install your dependencies before using lscripts.')
19
20
  console.log('lscripts uses the lock file to determine which package manager you are using.')
20
- console.log('lscripts is currently only compatible with npm and yarn.')
21
+ console.log('lscripts is currently only compatible with npm, yarn and pnpm.')
21
22
  exit(1)
22
23
  }
23
24
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "lscripts",
4
- "version": "1.1.0",
4
+ "version": "1.2.0",
5
5
  "description": "lscripts is a command tool that allows you to list and choose a script from your package.json easely.",
6
6
  "main": "lscripts.js",
7
7
  "bin": {
@@ -12,7 +12,8 @@
12
12
  "package.json"
13
13
  ],
14
14
  "scripts": {
15
- "test": "echo \"Error: no test specified\" && exit 1"
15
+ "test": "echo \"Error: no test specified\" && exit 1",
16
+ "prepare": "husky"
16
17
  },
17
18
  "author": "@julesfrn",
18
19
  "license": "MIT",
@@ -29,6 +30,9 @@
29
30
  "inquirer-autocomplete-prompt": "^3.0.0"
30
31
  },
31
32
  "devDependencies": {
33
+ "@commitlint/cli": "^19.8.1",
34
+ "@commitlint/config-conventional": "^19.8.1",
35
+ "husky": "^9.1.7",
32
36
  "semantic-release": "^24.2.7"
33
37
  }
34
38
  }