Skip to content
This repository was archived by the owner on Dec 19, 2024. It is now read-only.

Commit 065d327

Browse files
committed
Replace some require() by es6 import
1 parent f4d296b commit 065d327

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/bin.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
#!/usr/bin/env node
22

3-
const fs = require("fs")
4-
const path = require("path")
3+
import fs from "fs"
4+
import path from "path"
55

66
// until this land in a stable version of node (for a while)
77
// https://github.com/joyent/node/commit/20176a
88
// we will this instead of process.exit()
9-
const exit = require("exit")
9+
import exit from "exit"
1010

11-
const color = require("chalk")
12-
const program = require("commander")
11+
import color from "chalk"
12+
import program from "commander"
1313

14-
const cssnext = require("..")
15-
const pkg = require("../package")
14+
import cssnext from ".."
15+
import pkg from "../package"
1616

1717
program
1818
.version(pkg.version)

0 commit comments

Comments
 (0)