Skip to content

Commit

Permalink
feat!: Remove CommonJS modules
Browse files Browse the repository at this point in the history
  • Loading branch information
Pilaton committed Feb 11, 2024
1 parent 4580078 commit 07cc038
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 16 deletions.
9 changes: 0 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ Asynchronous library with built-in caching to identify available package manager
- [x] Identifies all available globally installed package managers and their versions.
- [x] Can detect package managers such as: **`npm`**, **`yarn`**, **`pnpm`** and **`bun`**.
- [x] **Uses cache** at all stages, which can be forcibly cleared.
- [x] ESM and CommonJS available.

<!-- markdownlint-disable -->
<div align="right">...</div>
Expand All @@ -51,14 +50,6 @@ import pubun from 'pubun';
import { defineManager, defineGlobalManagers } from 'pubun';
```

Or if you want to use CommonJS:

```js
const pubun = require('pubun');
// or
const { defineManager, defineGlobalManagers } = require('pubun');
```

<!-- markdownlint-disable -->
<div align="right">...</div>
<!-- markdownlint-restore -->
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
"description": "Asynchronous library with built-in caching to identify available package managers",
"exports": {
"types": "./build/index.d.ts",
"import": "./build/index.mjs",
"require": "./build/index.js"
"import": "./build/index.js"
},
"files": [
"build/"
Expand Down
5 changes: 0 additions & 5 deletions rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,6 @@ export default defineConfig({
{
...commonOutput,
file: './build/index.js',
format: 'cjs',
},
{
...commonOutput,
file: './build/index.mjs',
format: 'es',
},
],
Expand Down

0 comments on commit 07cc038

Please sign in to comment.