diff --git a/.npmignore b/.npmignore index 4eecc4a..62c1262 100644 --- a/.npmignore +++ b/.npmignore @@ -3,3 +3,4 @@ scripts src package.backup.json .gitignore +docs diff --git a/README.md b/README.md index aafdcc1..5e64d2b 100644 --- a/README.md +++ b/README.md @@ -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; diff --git a/docs/index.html b/docs/index.html index f28858e..f047067 100644 --- a/docs/index.html +++ b/docs/index.html @@ -19,7 +19,7 @@

esm-to-cjs playgroun import { readFileSync } from "fs"; export function read(src) { -return readFileSync(join(__dirname, src), "utf8"); + return readFileSync(join(__dirname, src), "utf8"); }
aha
diff --git a/scripts/gulp.js b/scripts/gulp.js index c494972..c463530 100644 --- a/scripts/gulp.js +++ b/scripts/gulp.js @@ -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");