Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Random fixes to npm-scripts #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions projects/npm-tools/packages/npm-scripts/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,15 @@ module.exports = async function () {
};

const PRIVATE_COMMANDS = {
async 'format'() {
'format': async function format() {
await require('./scripts/format')();
},

'format:check': async function formatCheck() {
await require('./scripts/format')({check: true});
},

async 'lint'() {
'lint': async function lint() {
await require('./scripts/lint')();
},

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ const EXTENSIONS = [
'.jspf',
'.md',
'.markdown',
'.mjs',
'.scss',
'.ts',
'.tsx',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const DEFAULT_OPTIONS = {
*/
const EXTENSIONS = {
css: ['.css'],
js: ['.js', '.ts', '.tsx'],
js: ['.js', '.mjs', '.ts', '.tsx'],
jsp: ['.jsp', '.jspf'],
scss: ['.scss'],
};
Expand Down
Loading