Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Meta tweaks
  • Loading branch information
sindresorhus committed May 21, 2017
1 parent fee8887 commit dfeeb1c
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .editorconfig
Expand Up @@ -7,6 +7,6 @@ charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[{package.json,*.yml}]
[*.yml]
indent_style = space
indent_size = 2
2 changes: 1 addition & 1 deletion index.js
Expand Up @@ -122,7 +122,7 @@ const win = {
};

if (platform === 'linux') {
// the main one doesn't look that good on Ubuntu
// The main one doesn't look that good on Ubuntu
main.questionMarkPrefix = '?';
}

Expand Down
4 changes: 2 additions & 2 deletions makefile.js
@@ -1,12 +1,12 @@
#!/usr/bin/env node
'use strict';
const fs = require('fs');
const requireUncached = require('require-uncached');
const importFresh = require('import-fresh');
const table = require('markdown-table');

const load = value => {
Object.defineProperty(process, 'platform', {value});
return requireUncached('./');
return importFresh('.');
};

const darwin = load('darwin');
Expand Down
5 changes: 1 addition & 4 deletions package.json
Expand Up @@ -37,11 +37,8 @@
},
"devDependencies": {
"ava": "*",
"import-fresh": "^2.0.0",
"markdown-table": "^1.0.0",
"require-uncached": "^1.0.2",
"xo": "*"
},
"xo": {
"esnext": true
}
}
2 changes: 1 addition & 1 deletion test.js
@@ -1,5 +1,5 @@
import test from 'ava';
import m from './';
import m from '.';

const result = (main, win) => process.platform === 'win32' ? win : main;

Expand Down

0 comments on commit dfeeb1c

Please sign in to comment.