Skip to content

Commit cc0e701

Browse files
committed
fix(cli): resolve inquirer compatibility and version issues
- Remove CommonJS build target to maintain compatibility with inquirer v9 - Keep only ESM version for better dependency compatibility - Bump version to 2.0.1
1 parent bf39b4f commit cc0e701

File tree

2 files changed

+3
-30
lines changed

2 files changed

+3
-30
lines changed

packages/cli/package.json

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@latitude-data/cli",
3-
"version": "2.0.0",
3+
"version": "2.0.1",
44
"description": "Latitude CLI for managing projects and prompts",
55
"author": "Latitude Data SL <hello@latitude.so>",
66
"license": "MIT",
@@ -28,21 +28,16 @@
2828
"files": [
2929
"dist"
3030
],
31-
"main": "./dist/index.cjs",
32-
"module": "./dist/index.js",
31+
"main": "./dist/index.js",
3332
"types": "./dist/index.d.ts",
3433
"bin": {
35-
"latitude": "./dist/index.cjs"
34+
"latitude": "./dist/index.js"
3635
},
3736
"exports": {
3837
".": {
3938
"import": {
4039
"types": "./dist/index.d.ts",
4140
"default": "./dist/index.js"
42-
},
43-
"require": {
44-
"types": "./dist/index.d.ts",
45-
"default": "./dist/index.cjs"
4641
}
4742
}
4843
},

packages/cli/rollup.config.mjs

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -46,28 +46,6 @@ const config = [
4646
],
4747
external: EXTERNALS,
4848
},
49-
// CLI Tool - CommonJS
50-
{
51-
input: 'src/index.ts',
52-
output: {
53-
file: 'dist/index.cjs',
54-
format: 'cjs',
55-
sourcemap: true,
56-
banner: '#!/usr/bin/env node',
57-
},
58-
plugins: [
59-
json(),
60-
typescript({
61-
exclude: ['**/__tests__', '**/*.test.ts'],
62-
}),
63-
replace({
64-
'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV),
65-
__VERSION__: JSON.stringify(packageJson.version),
66-
preventAssignment: true,
67-
}),
68-
],
69-
external: EXTERNALS,
70-
},
7149
]
7250

7351
export default config

0 commit comments

Comments
 (0)