Skip to content

Commit

Permalink
Add support for .cjs as a JavaScript extension
Browse files Browse the repository at this point in the history
  • Loading branch information
Alhadis committed Feb 14, 2019
1 parent dc628a8 commit 54a74fc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Expand Up @@ -9,7 +9,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
[Unpublished]
----------------------
- **New icons:** Flutter (`.flutter-plugins`), Red (updated logo)
- **Support:** Go (`go.mod`, `go.sum`), Microsoft Excel (`.xla`, `.xlam`, `.xltm`, `.xltx`), Package (`.packages`, `pubspec.{lock,yaml}`), Separated-value file (`.prn`)
- **Support:** Go (`go.mod`, `go.sum`), JavaScript (`.cjs`), Microsoft Excel (`.xla`, `.xlam`, `.xltm`, `.xltx`), Package (`.packages`, `pubspec.{lock,yaml}`), Separated-value file (`.prn`)


[v2.1.29] - 2019-01-26
Expand Down
1 change: 1 addition & 0 deletions config.cson
Expand Up @@ -2559,6 +2559,7 @@ fileIcons:
[".jsm", "auto-blue"]
[".jss", "auto-green"]
[/\.es\d?$/i, "auto-yellow"]
[".cjs", "auto-green", alias: "CommonJS"]
[".mjs", "auto-blue"]
[".sjs", "auto-pink"]
[".ssjs", "auto-red"]
Expand Down
2 changes: 1 addition & 1 deletion lib/icons/.icondb.js
Expand Up @@ -832,7 +832,7 @@ module.exports = [
["js-icon",["medium-orange","dark-orange"],/\._js$/i],
["js-icon",["medium-maroon","dark-maroon"],/\.jsb$|\.jse$|\.dust$/i],
["js-icon",["medium-blue","dark-blue"],/\.jsm$|\.mjs$|\.xsjslib$/i],
["js-icon",["medium-green","dark-green"],/\.jss$/i],
["js-icon",["medium-green","dark-green"],/\.jss$|\.cjs$/i],
["js-icon",["medium-pink","dark-pink"],/\.sjs$/i],
["js-icon",["medium-red","dark-red"],/\.ssjs$|\.jscript$|\.jslib$/i],
["js-icon",["medium-orange","medium-orange"],/\.jspre$/i],
Expand Down

0 comments on commit 54a74fc

Please sign in to comment.