Comparing version 3.5.0-next.1591793806.49ddb4978d18a39054725f9b32b0a45517418af6 to 3.5.0-next.1592598521.af6c83608a8d55811bb5a533fdc369e3e0d84f78
@@ -27,3 +27,3 @@ /* eslint no-console:0 */ | ||
// Imports | ||
var path_1 = __importDefault(require('path')) | ||
var path_1 = require('path') | ||
var semver_1 = __importDefault(require('semver')) | ||
@@ -93,3 +93,3 @@ var util_js_1 = require('./util.js') | ||
function loadEdition(edition, opts) { | ||
var entry = path_1.default.resolve( | ||
var entry = path_1.resolve( | ||
opts.cwd || '', | ||
@@ -377,3 +377,3 @@ edition.directory, | ||
// Load the package.json file to fetch `name` for debugging and `editions` for loading | ||
var packagePath = path_1.default.resolve(cwd || '', 'package.json') | ||
var packagePath = path_1.resolve(cwd || '', 'package.json') | ||
var editions = require(packagePath).editions | ||
@@ -380,0 +380,0 @@ var opts = { |
{ | ||
"name": "editions", | ||
"version": "3.5.0-next.1591793806.49ddb4978d18a39054725f9b32b0a45517418af6", | ||
"version": "3.5.0-next.1592598521.af6c83608a8d55811bb5a533fdc369e3e0d84f78", | ||
"description": "Publish multiple editions for your JavaScript packages consistently and easily (e.g. source edition, esnext edition, es2015 edition)", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/bevry/editions", |
@@ -5,3 +5,3 @@ /* eslint no-console:0 */ | ||
// Imports | ||
import pathUtil from 'path' | ||
import { resolve } from 'path' | ||
import semver from 'semver' | ||
@@ -183,3 +183,3 @@ import { errtion, stringify, simplifyRange } from './util.js' | ||
export function loadEdition(edition: Edition, opts: EditionOptions): any { | ||
const entry = pathUtil.resolve( | ||
const entry = resolve( | ||
opts.cwd || '', | ||
@@ -433,3 +433,3 @@ edition.directory, | ||
// Load the package.json file to fetch `name` for debugging and `editions` for loading | ||
const packagePath = pathUtil.resolve(cwd || '', 'package.json') | ||
const packagePath = resolve(cwd || '', 'package.json') | ||
const { editions } = require(packagePath) | ||
@@ -436,0 +436,0 @@ const opts = { packagePath, cwd, require, entry } |
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
61470