Commit 8258a46a authored by Fred Chasen's avatar Fred Chasen
Browse files

Update the require paths to use full path to files

parent 80992ab0
Pipeline #868 passed with stages
in 1 minute and 18 seconds
#!/usr/bin/env node
const program = require("commander");
const ora = require("ora");
const Printer = require("../");
const Printer = require("../index.js");
const path = require("path");
const fs = require("fs");
// const { promisify } = require("util");
......
const Printer = require('./src/printer');
const Printer = require("./src/printer.js");
module.exports = Printer;
const PDFLib = require("pdf-lib");
const EventEmitter = require("events");
const PDFDocumentWriter = require("./writer");
const PDFDocumentWriter = require("./writer.js");
class PostProcesser extends EventEmitter {
constructor(pdf) {
......
......@@ -12,7 +12,7 @@ let pagedjsLocation = require.resolve("pagedjs/dist/paged.polyfill.js");
let paths = pagedjsLocation.split("node_modules");
let scriptPath = paths[0] + "node_modules" + paths[paths.length-1];
const PostProcesser = require("./postprocesser");
const PostProcesser = require("./postprocesser.js");
class Printer extends EventEmitter {
constructor(options = {}) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment