Skip to content

Commit

Permalink
Fix oopsies
Browse files Browse the repository at this point in the history
  • Loading branch information
sidvishnoi committed Nov 2, 2018
1 parent 460fee9 commit 19b9e14
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ scripts
src
package.backup.json
.gitignore
docs
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -173,12 +173,12 @@ npm i --save-dev gulp-esm-to-cjs
``` js
// gulpfile.js
const esm-to-cjs = require("gulp-esm-to-cjs");
const esmToCjs = require("gulp-esm-to-cjs");
function convert() {
return gulp
.src(src)
.pipe(esm-to-cjs(options))
.pipe(esmToCjs(options))
.pipe(gulp.dest(dest));
}
module.exports.convert = convert;
Expand Down
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ <h1><a href="https://github.com/sidvishnoi/esm-to-cjs/">esm-to-cjs</a> playgroun
import { readFileSync } from "fs";

export function read(src) {
return readFileSync(join(__dirname, src), "utf8");
return readFileSync(join(__dirname, src), "utf8");
}</div>

<div class="editor" id="output">aha</div>
Expand Down
1 change: 1 addition & 0 deletions scripts/gulp.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ try {
json.devDependencies = undefined;
json.keywords.push("gulpplugin");
json.name = "gulp-esm-to-cjs";
json.dependencies["esm-to-cjs"] = json.version;
});
copyFile("./src/gulp.js", "./index.js", str => {
return str.replace("./core", "esm-to-cjs");
Expand Down

0 comments on commit 19b9e14

Please sign in to comment.