@promise-watch/core
Advanced tools
Comparing version 1.1.0-next to 1.1.0-next.1
@@ -1,14 +0,18 @@ | ||
console.log("PROMISE WATCH"); | ||
require('ts-node').register(); | ||
// const { executeJobs } = require("../dist/execute"); | ||
const { executeJobs } = require('../dist/execute'); | ||
const options = { | ||
dir: __dirname, | ||
}; | ||
(async function () { | ||
const dir = process.cwd(); | ||
console.log(options) | ||
const config = await import(`${dir}/promise-watch.config.js`); | ||
// executeJobs(options).catch(err => { | ||
// console.error(err); | ||
// process.exit(1); | ||
// }); | ||
const options = { dir, ...config.default }; | ||
console.log(options); | ||
await executeJobs(options); | ||
})().catch(err => { | ||
console.error(err); | ||
process.exit(1); | ||
}); |
@@ -31,3 +31,3 @@ "use strict"; | ||
const files = await (0, glob_promise_1.glob)(globPath); | ||
const promises = files.map(f => (0, path_1.resolve)(dir, "../", f)); | ||
const promises = files.map(f => (0, path_1.resolve)(dir, f)); | ||
const imports = await Promise.all(promises.map(f => Promise.resolve().then(() => __importStar(require(f))))); | ||
@@ -34,0 +34,0 @@ return imports.map((page, idx) => { |
{ | ||
"name": "@promise-watch/core", | ||
"version": "1.1.0-next", | ||
"version": "1.1.0-next.1", | ||
"author": "Jason Raimondi <jason@raimondi.us> (https://jasonraimondi.com)", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -7,3 +7,3 @@ import { glob } from "./utils/glob-promise"; | ||
const files = await glob(globPath); | ||
const promises = files.map(f => resolve(dir, "../", f)); | ||
const promises = files.map(f => resolve(dir, f)); | ||
const imports = await Promise.all(promises.map(f => import(f))); | ||
@@ -10,0 +10,0 @@ return imports.map((page, idx) => ({ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
36264
628