Skip to content

Commit 4966f71

Browse files
authored
Merge pull request #58 from atom-community/update-deps
2 parents 8798362 + 0c36498 commit 4966f71

File tree

9 files changed

+1401
-1614
lines changed

9 files changed

+1401
-1614
lines changed

.github/workflows/bump_deps.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
run: pnpm install -g npm-check-updates
2222

2323
- run: |
24-
ncu -u --dep prod
24+
ncu -u --dep prod -x coffeescript
2525
pnpm install
2626
2727
- uses: tibdex/github-app-token@v1
@@ -53,7 +53,7 @@ jobs:
5353
run: pnpm install -g npm-check-updates
5454

5555
- run: |
56-
ncu -u --dep dev
56+
ncu -u --dep dev -x coffeescript
5757
pnpm install
5858
5959
- uses: tibdex/github-app-token@v1

.prettierignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
node_modules
2-
package.json
32
package-lock.json
43
pnpm-lock.yaml
54
changelog.md

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: 22 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -34,45 +34,48 @@
3434
"test.format": "prettier . --check",
3535
"lint": "eslint . --fix",
3636
"test.lint": "eslint .",
37-
"tsc": "tsc -p src/tsconfig.json || echo done",
37+
"tsc": "tsc -p src/tsconfig.json",
3838
"build": "npm run tsc",
3939
"prepare": "npm run build",
4040
"bump": "ncu -u -x coffeescript"
4141
},
4242
"dependencies": {
43-
"tslib": "^2.1.0",
43+
"@rollup/plugin-babel": "^5.3.0",
4444
"@rollup/plugin-commonjs": "18.0.0",
45+
"@rollup/plugin-json": "4.1.0",
4546
"@rollup/plugin-node-resolve": "11.2.1",
47+
"@rollup/plugin-replace": "^2.4.2",
4648
"@rollup/plugin-typescript": "8.2.1",
47-
"@rollup/plugin-babel": "^5.3.0",
48-
"rollup-plugin-coffee-script": "2.0.0",
49-
"@rollup/plugin-json": "4.1.0",
5049
"@rollup/plugin-wasm": "^5.1.2",
51-
"@rollup/plugin-replace": "^2.4.2",
52-
"rollup-plugin-terser": "7.0.2",
50+
"array-includes-any": "^2.7.3",
51+
"csso-cli": "^3.0.0",
52+
"rollup-plugin-assemblyscript": "^2.0.0",
5353
"rollup-plugin-auto-external": "2.0.0",
54+
"rollup-plugin-coffee-script": "2.0.0",
5455
"rollup-plugin-css-only": "^3.1.0",
5556
"rollup-plugin-execute": "^1.1.1",
56-
"csso-cli": "^3.0.0",
57-
"array-includes-any": "^2.7.3",
5857
"rollup-plugin-sourcemaps": "^0.6.3",
59-
"rollup-plugin-visualizer": "^4.2.2",
60-
"rollup-plugin-assemblyscript": "^2.0.0"
58+
"rollup-plugin-terser": "7.0.2",
59+
"rollup-plugin-visualizer": "^5.3.0",
60+
"tslib": "^2.2.0",
61+
"rollup": "^2",
62+
"@babel/core": "^7",
63+
"typescript": "^4"
6164
},
6265
"peerDependencies": {
6366
"rollup": "^2"
6467
},
6568
"optionalDependencies": {
66-
"typescript": "^4",
67-
"coffeescript": "^1",
6869
"@babel/core": "^7",
69-
"assemblyscript": "*"
70+
"assemblyscript": "*",
71+
"coffeescript": "^1",
72+
"typescript": "^4"
7073
},
7174
"devDependencies": {
7275
"assemblyscript": "*",
73-
"typescript": "^4.2.3",
74-
"rollup": "2.42.1",
75-
"prettier": "^2.2.1",
76-
"npm-check-updates": "11.3.0"
77-
}
76+
"npm-check-updates": "11.3.0",
77+
"prettier-config-atomic": "^1.0.1",
78+
"typescript": "^4.2.3"
79+
},
80+
"prettier": "prettier-config-atomic"
7881
}

0 commit comments

Comments
 (0)