File tree 4 files changed +10
-9
lines changed
4 files changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -35,15 +35,14 @@ import {stringifyPosition} from 'unist-util-stringify-position'
35
35
import { statistics } from 'vfile-statistics'
36
36
import { sort } from 'vfile-sort'
37
37
import { color } from './color.js'
38
+ import { platform } from './platform.js'
38
39
39
40
const own = { } . hasOwnProperty
40
41
41
42
// `log-symbols` without chalk, ignored for Windows:
42
43
/* c8 ignore next 4 */
43
44
const chars =
44
- process . platform === 'win32'
45
- ? { error : '×' , warning : '‼' }
46
- : { error : '✖' , warning : '⚠' }
45
+ platform === 'win32' ? { error : '×' , warning : '‼' } : { error : '✖' , warning : '⚠' }
47
46
48
47
const labels = {
49
48
true : 'error' ,
Original file line number Diff line number Diff line change
1
+ export const platform = 'darwin'
Original file line number Diff line number Diff line change
1
+ import process from 'node:process'
2
+
3
+ export const platform = process . platform
Original file line number Diff line number Diff line change 33
33
"type" : " module" ,
34
34
"main" : " index.js" ,
35
35
"browser" : {
36
- "./lib/color.js" : " ./lib/color.browser.js"
36
+ "./lib/color.js" : " ./lib/color.browser.js" ,
37
+ "./lib/platform.js" : " ./lib/platform.browser.js"
37
38
},
38
39
"types" : " index.d.ts" ,
39
40
"files" : [
53
54
"@types/tape" : " ^4.0.0" ,
54
55
"c8" : " ^7.0.0" ,
55
56
"cross-env" : " ^7.0.0" ,
56
- "figures" : " ^4 .0.0" ,
57
+ "figures" : " ^3 .0.0" ,
57
58
"prettier" : " ^2.0.0" ,
58
59
"remark-cli" : " ^10.0.0" ,
59
60
"remark-preset-wooorm" : " ^9.0.0" ,
82
83
"trailingComma" : " none"
83
84
},
84
85
"xo" : {
85
- "prettier" : true ,
86
- "rules" : {
87
- "node/prefer-global/process" : " off"
88
- }
86
+ "prettier" : true
89
87
},
90
88
"remarkConfig" : {
91
89
"plugins" : [
You can’t perform that action at this time.
0 commit comments