Skip to content

Commit 0c36498

Browse files
committed
feat: bundle more needed dependencies (rollup, typescript, babel)
1 parent 7909d9a commit 0c36498

File tree

3 files changed

+20
-14
lines changed

3 files changed

+20
-14
lines changed

README.md

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,26 @@ Rollup plugin used in atom-ide-community
88
npm install --save-dev rollup-plugin-atomic
99
```
1010

11-
You should also install the peer dependencies:
11+
<details>
12+
<summary> You should have the peer dependencies. </summary>
13+
14+
If using `npm`, the bundled Rollup, TypeScript, Babel, etc is hoisted automatically.
15+
16+
If using `pnpm`, either add the following to your `.npmrc` to hoist the prettier bundled with the config
1217

1318
```
14-
"rollup": "^2"
19+
public-hoist-pattern[]=*
1520
```
1621

17-
and the following (only those that you use are needed):
22+
Or install these yourself in your `devDependencies`.
1823

1924
```
20-
"typescript": "^4",
21-
"coffeescript": "^1",
22-
"@babel/core": "^7"
25+
pnpm install -save-dev rollup
26+
pnpm install --save-dev @babel/core typescript coffeescript assemblyscript # whichever you need
2327
```
2428

29+
</details>
30+
2531
## Usage
2632

2733
Create a `rollup.config.js` file at the root of the project with the following content. See API section for more details

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,10 @@
5757
"rollup-plugin-sourcemaps": "^0.6.3",
5858
"rollup-plugin-terser": "7.0.2",
5959
"rollup-plugin-visualizer": "^5.3.0",
60-
"tslib": "^2.2.0"
60+
"tslib": "^2.2.0",
61+
"rollup": "^2",
62+
"@babel/core": "^7",
63+
"typescript": "^4"
6164
},
6265
"peerDependencies": {
6366
"rollup": "^2"
@@ -72,7 +75,6 @@
7275
"assemblyscript": "*",
7376
"npm-check-updates": "11.3.0",
7477
"prettier-config-atomic": "^1.0.1",
75-
"rollup": "2.42.1",
7678
"typescript": "^4.2.3"
7779
},
7880
"prettier": "prettier-config-atomic"

pnpm-lock.yaml

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

0 commit comments

Comments
 (0)