create-airbnb-x-config 0.2.0 → 0.2.1

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/README.md ADDED
@@ -0,0 +1 @@
1
+ WIP
@@ -4,12 +4,13 @@ const constants_1 = require("../constants");
4
4
  const getCommands = (args) => {
5
5
  const { typescript, language, config, packageManager } = args;
6
6
  const pmInstallationCommand = {
7
- [constants_1.packageManagers.NPM]: 'npm install',
8
- [constants_1.packageManagers.YARN]: 'yarn add',
9
- [constants_1.packageManagers.PNPM]: 'pnpm install',
10
- [constants_1.packageManagers.BUN]: 'bun add',
7
+ [constants_1.packageManagers.NPM]: 'install',
8
+ [constants_1.packageManagers.YARN]: 'add',
9
+ [constants_1.packageManagers.PNPM]: 'install',
10
+ [constants_1.packageManagers.BUN]: 'add',
11
11
  };
12
12
  const commands = [
13
+ packageManager,
13
14
  pmInstallationCommand[packageManager],
14
15
  '-D',
15
16
  'eslint',
@@ -19,7 +19,7 @@ const getCommands_1 = __importDefault(require("../helpers/getCommands"));
19
19
  */
20
20
  const install = (args) => __awaiter(void 0, void 0, void 0, function* () {
21
21
  const { packageManager } = args;
22
- const commands = (0, getCommands_1.default)(args);
22
+ const commands = (0, getCommands_1.default)(args).slice(1);
23
23
  return new Promise((resolve, reject) => {
24
24
  const child = (0, cross_spawn_1.default)(packageManager, commands, {
25
25
  stdio: 'inherit',
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-airbnb-x-config",
3
- "version": "0.1.1",
3
+ "version": "0.2.1",
4
4
  "description": "Airbnb Extended Config CLI",
5
5
  "keywords": [
6
6
  "eslint",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-airbnb-x-config",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "Airbnb Extended Config CLI",
5
5
  "keywords": [
6
6
  "eslint",