Skip to content

Commit 758fb7c

Browse files
committed
[fix] Do not transpile bin/ for a single import statement.
1 parent ddb99a2 commit 758fb7c

File tree

2 files changed

+14
-11
lines changed

2 files changed

+14
-11
lines changed

src/bin/json-sass renamed to bin/json-sass

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@ let jsonSass = require('../jsonSass');
66
let fs = require('fs');
77
let path = require('path');
88
let minimist = require('minimist');
9-
import { Readable } from 'stream';
9+
let Readable = require('stream').Readable;
1010

1111
let argv = minimist(process.argv.slice(2), {
12-
alias: {
13-
i: 'infile',
14-
o: 'outfile',
15-
h: 'help',
16-
p: 'prefix',
17-
s: 'suffix',
18-
},
19-
default: { i: '-', o: '-' }
12+
alias: {
13+
i: 'infile',
14+
o: 'outfile',
15+
h: 'help',
16+
p: 'prefix',
17+
s: 'suffix',
18+
},
19+
default: { i: '-', o: '-' }
2020
});
2121

2222
if (argv.help) return showHelp(0);

package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"name": "json-sass",
33
"version": "1.3.5",
4-
"description": "Transform JSON into scss syntax Sass.",
4+
"description": "Transform JSON into SCSS variable syntax.",
55
"main": "lib/jsonSass.js",
6-
"bin": "lib/bin/json-sass",
6+
"bin": "bin/json-sass",
77
"scripts": {
88
"build": "rm -rf lib && babel ./src -d ./lib",
99
"pretest": "npm run build",
@@ -16,6 +16,9 @@
1616
],
1717
"author": "Andrew Clark <[email protected]>",
1818
"license": "ISC",
19+
"contributors": [
20+
"Charlie Robbins <[email protected]>"
21+
],
1922
"repository": {
2023
"type": "git",
2124
"url": "https://github.com/acdlite/json-sass.git"

0 commit comments

Comments
 (0)