Skip to content

Commit 6100edc

Browse files
sjsyrekclaude
andauthored
feat(package)!: rename to @deepl/cli and fix stale DeepLcom metadata (#97)
Rename the package to the scoped @deepl/cli for the first npm publish (DeepL owns the @DeepL scope; the unscoped names are tombstoned or third-party-held). Add publishConfig.access: "public" — scoped packages default to restricted and the publish fails without it. Point repository/bugs/homepage at github.com/DeepL/deepl-cli instead of relying on the legacy DeepLcom org redirect. The bin name is unchanged: the command is still deepl. The version bump to 2.0.0 is deliberately deferred to the release commit. BREAKING CHANGE: the install string is now `npm install -g @deepl/cli`. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude <noreply@anthropic.com>
1 parent f23df0b commit 6100edc

4 files changed

Lines changed: 35 additions & 6 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
### Changed
1111

12+
- **BREAKING — package**: The package is now published as the scoped **`@deepl/cli`** (previously the unpublished working name `deepl-cli`). Scoped packages default to restricted visibility, so `publishConfig.access: "public"` is set explicitly — without it the publish fails. The `bin` name is unchanged: the command is still `deepl`, and scoping changes only the install string (`npm install -g @deepl/cli`). Repository, bugs, and homepage metadata now point at `github.com/DeepL/deepl-cli` directly instead of relying on the redirect from the legacy `DeepLcom` org name.
1213
- **BREAKING — cache/runtime**: The translation cache now uses Node's built-in `node:sqlite` module instead of the `better-sqlite3` native addon, and the CLI consequently requires **Node.js >= 24** (`engines.node` is now `>=24.0.0`). Node 24 is the first release where `node:sqlite` is non-experimental; Node 18/20 lack the module entirely and Node 22 would both warn on every invocation and downgrade the bundled SQLite (3.50.4 vs 3.53.1). Existing cache databases are read in place with no migration — the on-disk format is unchanged (SQLite 3.53.2-written files verified readable, WAL mode and `user_version` stamp included). **Migration**: upgrade to Node 24 (current LTS), e.g. `nvm install 24`; no other action is needed, and the cache keeps its contents.
1314

1415
- **ci**: `.nvmrc` now pins Node 24, matching the CI matrix. It still read `20`, so `nvm use` handed local developers a runtime that cannot load `node:sqlite` and does not satisfy `commander`'s `engines.node >=22.12.0`.

‎package-lock.json‎

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json‎

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
{
2-
"name": "deepl-cli",
2+
"name": "@deepl/cli",
33
"version": "1.2.0",
4+
"publishConfig": {
5+
"access": "public"
6+
},
47
"description": "Next-generation CLI for DeepL translation and writing enhancement",
58
"type": "module",
69
"main": "dist/index.js",
@@ -99,10 +102,10 @@
99102
},
100103
"repository": {
101104
"type": "git",
102-
"url": "https://github.com/DeepLcom/deepl-cli"
105+
"url": "https://github.com/DeepL/deepl-cli"
103106
},
104107
"bugs": {
105-
"url": "https://github.com/DeepLcom/deepl-cli/issues"
108+
"url": "https://github.com/DeepL/deepl-cli/issues"
106109
},
107-
"homepage": "https://github.com/DeepLcom/deepl-cli#readme"
110+
"homepage": "https://github.com/DeepL/deepl-cli#readme"
108111
}

‎tests/unit/package-manifest.test.ts‎

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ import * as fs from 'fs';
1010
import * as path from 'path';
1111

1212
interface PackageManifest {
13+
name: string;
14+
publishConfig?: { access?: string };
15+
repository: { type: string; url: string };
16+
bugs: { url: string };
17+
homepage: string;
1318
scripts: {
1419
clean?: string;
1520
build: string;
@@ -68,4 +73,24 @@ describe('package.json manifest', () => {
6873
expect(Object.values(pkg.bin).every((target) => target.startsWith('dist/'))).toBe(true);
6974
});
7075
});
76+
77+
describe('publish identity', () => {
78+
it('should be the scoped @deepl/cli package', () => {
79+
expect(pkg.name).toBe('@deepl/cli');
80+
});
81+
82+
it('should keep the bin name deepl regardless of the package scope', () => {
83+
expect(Object.keys(pkg.bin)).toEqual(['deepl']);
84+
});
85+
86+
it('should publish publicly — scoped packages default to restricted', () => {
87+
expect(pkg.publishConfig?.access).toBe('public');
88+
});
89+
90+
it('should point repository metadata at the DeepL org, not the legacy DeepLcom redirect', () => {
91+
expect(pkg.repository.url).toBe('https://github.com/DeepL/deepl-cli');
92+
expect(pkg.bugs.url).toBe('https://github.com/DeepL/deepl-cli/issues');
93+
expect(pkg.homepage).toBe('https://github.com/DeepL/deepl-cli#readme');
94+
});
95+
});
7196
});

0 commit comments

Comments
 (0)