Comparing version 3.2.1 to 4.0.0
{ | ||
"name": "build-esm", | ||
"version": "3.2.1", | ||
"version": "4.0.0", | ||
"description": "Compile an ES Module for release on npm", | ||
@@ -29,19 +29,18 @@ "keywords": [ | ||
"test": "flow && standard -v --fix && ava", | ||
"build": "node -r babel-register src/bin/build-esm.js", | ||
"prepack": "node -r babel-register src/bin/build-esm.js" | ||
"build": "node -r @babel/register src/bin/build-esm.js", | ||
"prepack": "node -r @babel/register src/bin/build-esm.js" | ||
}, | ||
"dependencies": { | ||
"babel-core": "^6.26.3", | ||
"@babel/core": "^7.0.0-beta.55", | ||
"mkdirp": "^0.5.1", | ||
"mz": "^2.7.0", | ||
"npm-packlist": "^1.1.10", | ||
"rimraf": "^2.6.2", | ||
"thenify": "^3.3.0" | ||
"npm-packlist": "^1.1.11", | ||
"rimraf": "^2.6.2" | ||
}, | ||
"devDependencies": { | ||
"ava": "^0.25.0", | ||
"babel-preset-diff": "^2.2.0", | ||
"babel-register": "^6.26.0", | ||
"flow-bin": "0.69.0", | ||
"standard-esnext": "^4.0.3" | ||
"@babel/register": "^7.0.0-beta.55", | ||
"ava": "^1.0.0-beta.6", | ||
"babel-preset-diff": "^6.0.0", | ||
"flow-bin": "^0.77.0", | ||
"standard-esnext": "^5.0.0" | ||
}, | ||
@@ -54,4 +53,3 @@ "babel": { | ||
"ava": { | ||
"babel": "inherit", | ||
"require": "babel-register" | ||
"require": "@babel/register" | ||
}, | ||
@@ -58,0 +56,0 @@ "standard": { |
#!/usr/bin/env node | ||
'use strict'; | ||
"use strict"; | ||
let compileFile = (() => { | ||
var _ref = _asyncToGenerator(function* (filePath) { | ||
const { code } = yield (0, _thenify2.default)(babel.transformFile)(filePath, { | ||
sourceMaps: 'inline' | ||
}); | ||
return code; | ||
}); | ||
var path = _interopRequireWildcard(require("path")); | ||
return function compileFile(_x) { | ||
return _ref.apply(this, arguments); | ||
}; | ||
})(); | ||
var _util = require("util"); | ||
let run = (() => { | ||
var _ref2 = _asyncToGenerator(function* () { | ||
const packageJson = JSON.parse((yield (0, _readFile2.default)(path.resolve('package.json')))); | ||
const usesFlow = 'flow-bin' in packageJson.devDependencies; | ||
var babel = _interopRequireWildcard(require("@babel/core")); | ||
if (currentScript() === 'prepack') { | ||
for (const filePath of yield (0, _npmPacklist2.default)()) { | ||
if (filePath.endsWith('.js')) { | ||
console.log(`Compiling ${filePath}`); | ||
var _npmPacklist = _interopRequireDefault(require("npm-packlist")); | ||
if (usesFlow) { | ||
const contents = yield (0, _readFile2.default)(filePath); | ||
yield (0, _writeFile2.default)(`${filePath}.flow`, contents); | ||
} | ||
var _createDir = _interopRequireDefault(require("../createDir")); | ||
const compiledContents = yield compileFile(filePath); | ||
yield (0, _writeFile2.default)(filePath, compiledContents); | ||
} | ||
} | ||
} else { | ||
const distPath = process.argv[2] || 'dist'; | ||
var _removeDir = _interopRequireDefault(require("../removeDir")); | ||
yield (0, _removeDir2.default)(distPath); | ||
yield (0, _createDir2.default)(distPath); | ||
for (const filePath of yield (0, _npmPacklist2.default)()) { | ||
if (filePath.endsWith('.js')) { | ||
console.log(`Compiling ${filePath} => ${distPath}/${filePath}`); | ||
var _readFile = _interopRequireDefault(require("../readFile")); | ||
if (usesFlow) { | ||
const contents = yield (0, _readFile2.default)(filePath); | ||
yield (0, _writeFile2.default)(path.join(distPath, `${filePath}.flow`), contents); | ||
} | ||
var _writeFile = _interopRequireDefault(require("../writeFile")); | ||
const compiledContents = yield compileFile(filePath); | ||
yield (0, _writeFile2.default)(path.join(distPath, filePath), compiledContents); | ||
} else { | ||
console.log(`Copying ${filePath} => ${distPath}/${filePath}`); | ||
yield (0, _copyFile2.default)(path.resolve(filePath), path.join(distPath, filePath)); | ||
} | ||
} | ||
} | ||
}); | ||
var _copyFile = _interopRequireDefault(require("../copyFile")); | ||
return function run() { | ||
return _ref2.apply(this, arguments); | ||
}; | ||
})(); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
var _path = require('path'); | ||
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } } | ||
var path = _interopRequireWildcard(_path); | ||
function currentScript() { | ||
return process.env.npm_lifecycle_event; | ||
} | ||
var _thenify = require('thenify'); | ||
async function compileFile(filePath) { | ||
const { | ||
code | ||
} = await (0, _util.promisify)(babel.transformFile)(filePath, { | ||
sourceMaps: 'inline' | ||
}); | ||
return code; | ||
} | ||
var _thenify2 = _interopRequireDefault(_thenify); | ||
async function run() { | ||
const packageJson = JSON.parse((await (0, _readFile.default)(path.resolve('package.json')))); | ||
const usesFlow = 'flow-bin' in packageJson.devDependencies; | ||
var _babelCore = require('babel-core'); | ||
if (currentScript() === 'prepack') { | ||
for (const filePath of await (0, _npmPacklist.default)()) { | ||
if (filePath.endsWith('.js')) { | ||
console.log(`Compiling ${filePath}`); | ||
var babel = _interopRequireWildcard(_babelCore); | ||
if (usesFlow) { | ||
const contents = await (0, _readFile.default)(filePath); | ||
await (0, _writeFile.default)(`${filePath}.flow`, contents); | ||
} | ||
var _npmPacklist = require('npm-packlist'); | ||
const compiledContents = await compileFile(filePath); | ||
await (0, _writeFile.default)(filePath, compiledContents); | ||
} | ||
} | ||
} else { | ||
const distPath = process.argv[2] || 'dist'; | ||
await (0, _removeDir.default)(distPath); | ||
await (0, _createDir.default)(distPath); | ||
var _npmPacklist2 = _interopRequireDefault(_npmPacklist); | ||
for (const filePath of await (0, _npmPacklist.default)()) { | ||
if (filePath.endsWith('.js')) { | ||
console.log(`Compiling ${filePath} => ${distPath}/${filePath}`); | ||
var _createDir = require('../createDir'); | ||
if (usesFlow) { | ||
const contents = await (0, _readFile.default)(filePath); | ||
await (0, _writeFile.default)(path.join(distPath, `${filePath}.flow`), contents); | ||
} | ||
var _createDir2 = _interopRequireDefault(_createDir); | ||
var _removeDir = require('../removeDir'); | ||
var _removeDir2 = _interopRequireDefault(_removeDir); | ||
var _readFile = require('../readFile'); | ||
var _readFile2 = _interopRequireDefault(_readFile); | ||
var _writeFile = require('../writeFile'); | ||
var _writeFile2 = _interopRequireDefault(_writeFile); | ||
var _copyFile = require('../copyFile'); | ||
var _copyFile2 = _interopRequireDefault(_copyFile); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } } | ||
function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, arguments); return new Promise(function (resolve, reject) { function step(key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { return Promise.resolve(value).then(function (value) { step("next", value); }, function (err) { step("throw", err); }); } } return step("next"); }); }; } | ||
function currentScript() { | ||
return process.env.npm_lifecycle_event; | ||
const compiledContents = await compileFile(filePath); | ||
await (0, _writeFile.default)(path.join(distPath, filePath), compiledContents); | ||
} else { | ||
console.log(`Copying ${filePath} => ${distPath}/${filePath}`); | ||
await (0, _copyFile.default)(path.resolve(filePath), path.join(distPath, filePath)); | ||
} | ||
} | ||
} | ||
} | ||
run(); | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImJ1aWxkLWVzbS5qcyJdLCJuYW1lcyI6WyJmaWxlUGF0aCIsImNvZGUiLCJiYWJlbCIsInRyYW5zZm9ybUZpbGUiLCJzb3VyY2VNYXBzIiwiY29tcGlsZUZpbGUiLCJwYWNrYWdlSnNvbiIsIkpTT04iLCJwYXJzZSIsInBhdGgiLCJyZXNvbHZlIi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KVxuICAgIGF3YWl0IGNyZWF0ZURpcihkaXN0UGF0aClcbiAgICBmb3IgKGNvbnN0IGZpbGVQYXRoIG9mIGF3YWl0IHBhY2thZ2VMaXN0KCkpIHtcbiAgICAgIGlmIChmaWxlUGF0aC5lbmRzV2l0aCgnLmpzJykpIHtcbiAgICAgICAgY29uc29sZS5sb2coYENvbXBpbGluZyAke2ZpbGVQYXRofSA9PiAke2Rpc3RQYXRofS8ke2ZpbGVQYXRofWApXG5cbiAgICAgICAgaWYgKHVzZXNGbG93KSB7XG4gICAgICAgICAgY29uc3QgY29udGVudHMgPSBhd2FpdCByZWFkRmlsZShmaWxlUGF0aClcbiAgICAgICAgICBhd2FpdCB3cml0ZUZpbGUocGF0aC5qb2luKGRpc3RQYXRoLCBgJHtmaWxlUGF0aH0uZmxvd2ApLCBjb250ZW50cylcbiAgICAgICAgfVxuXG4gICAgICAgIGNvbnN0IGNvbXBpbGVkQ29udGVudHMgPSBhd2FpdCBjb21waWxlRmlsZShmaWxlUGF0aClcbiAgICAgICAgYXdhaXQgd3JpdGVGaWxlKHBhdGguam9pbihkaXN0UGF0aCwgZmlsZVBhdGgpLCBjb21waWxlZENvbnRlbnRzKVxuICAgICAgfSBlbHNlIHtcbiAgICAgICAgY29uc29sZS5sb2coYENvcHlpbmcgJHtmaWxlUGF0aH0gPT4gJHtkaXN0UGF0aH0vJHtmaWxlUGF0aH1gKVxuICAgICAgICBhd2FpdCBjb3B5RmlsZShwYXRoLnJlc29sdmUoZmlsZVBhdGgpLCBwYXRoLmpvaW4oZGlzdFBhdGgsIGZpbGVQYXRoKSlcbiAgICAgIH1cbiAgICB9XG4gIH1cbn1cblxucnVuKClcbiJdfQ== | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImJ1aWxkLWVzbS5qcyJdLCJuYW1lcyI6WyJjdXJyZW50U2NyaXB0IiwicHJvY2VzcyIsImVudiIsIm5wbV9saWZlY3ljbG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mpvaW4oZGlzdFBhdGgsIGZpbGVQYXRoKSlcbiAgICAgIH1cbiAgICB9XG4gIH1cbn1cblxucnVuKClcbiJdfQ== |
@@ -1,2 +0,2 @@ | ||
'use strict'; | ||
"use strict"; | ||
@@ -6,31 +6,18 @@ Object.defineProperty(exports, "__esModule", { | ||
}); | ||
exports.default = _default; | ||
var _path = require('path'); | ||
var path = _interopRequireWildcard(require("path")); | ||
var path = _interopRequireWildcard(_path); | ||
var fs = _interopRequireWildcard(require("mz/fs")); | ||
var _fs = require('mz/fs'); | ||
var _createDir = _interopRequireDefault(require("./createDir")); | ||
var fs = _interopRequireWildcard(_fs); | ||
var _createDir = require('./createDir'); | ||
var _createDir2 = _interopRequireDefault(_createDir); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } } | ||
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } } | ||
function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, arguments); return new Promise(function (resolve, reject) { function step(key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { return Promise.resolve(value).then(function (value) { step("next", value); }, function (err) { step("throw", err); }); } } return step("next"); }); }; } | ||
exports.default = (() => { | ||
var _ref = _asyncToGenerator(function* (sourcePath, destinationPath) { | ||
yield (0, _createDir2.default)(path.dirname(destinationPath)); | ||
yield fs.copyFile(sourcePath, destinationPath); | ||
}); | ||
return function (_x, _x2) { | ||
return _ref.apply(this, arguments); | ||
}; | ||
})(); | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImNvcHlGaWxlLmpzIl0sIm5hbWVzIjpbInBhdGgiLCJmcyIsInNvdXJjZVBhdGgiLCJkZXN0aW5hdGlvblBhdGgiLCJkaXJuYW1lIiwiY29weUZpbGUiXSwibWFwcGluZ3MiOiI7Ozs7OztBQUNBOztJQUFZQSxJOztBQUNaOztJQUFZQyxFOztBQUNaOzs7Ozs7Ozs7OzsrQkFFZSxXQUNiQyxVQURhLEVBRWJDLGVBRmEsRUFHRTtBQUNmLFVBQU0seUJBQVVILEtBQUtJLE9BQUwsQ0FBYUQsZUFBYixDQUFWLENBQU47QUFDQSxVQUFNRixHQUFHSSxRQUFILENBQVlILFVBQVosRUFBd0JDLGVBQXhCLENBQU47QUFDRCxHIiwiZmlsZSI6ImNvcHlGaWxlLmpzIiwic291cmNlc0NvbnRlbnQiOlsiLyogQGZsb3cgKi9cbmltcG9ydCAqIGFzIHBhdGggZnJvbSAncGF0aCdcbmltcG9ydCAqIGFzIGZzIGZyb20gJ216L2ZzJ1xuaW1wb3J0IGNyZWF0ZURpciBmcm9tICcuL2NyZWF0ZURpcidcblxuZXhwb3J0IGRlZmF1bHQgYXN5bmMgZnVuY3Rpb24oXG4gIHNvdXJjZVBhdGg6IHN0cmluZyxcbiAgZGVzdGluYXRpb25QYXRoOiBzdHJpbmdcbik6IFByb21pc2U8dm9pZD4ge1xuICBhd2FpdCBjcmVhdGVEaXIocGF0aC5kaXJuYW1lKGRlc3RpbmF0aW9uUGF0aCkpXG4gIGF3YWl0IGZzLmNvcHlGaWxlKHNvdXJjZVBhdGgsIGRlc3RpbmF0aW9uUGF0aClcbn1cbiJdfQ== | ||
async function _default(sourcePath, destinationPath) { | ||
await (0, _createDir.default)(path.dirname(destinationPath)); | ||
await fs.copyFile(sourcePath, destinationPath); | ||
} | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImNvcHlGaWxlLmpzIl0sIm5hbWVzIjpbInNvdXJjZVBhdGgiLCJkZXN0aW5hdGlvblBhdGgiLCJwYXRoIiwiZGlybmFtZSIsImZzIiwiY29weUZpbGUiXSwibWFwcGluZ3MiOiI7Ozs7Ozs7QUFDQTs7QUFDQTs7QUFDQTs7Ozs7O0FBRWUsd0JBQ2JBLFVBRGEsRUFFYkMsZUFGYSxFQUdFO0FBQ2YsUUFBTSx3QkFBVUMsSUFBSSxDQUFDQyxPQUFMLENBQWFGLGVBQWIsQ0FBVixDQUFOO0FBQ0EsUUFBTUcsRUFBRSxDQUFDQyxRQUFILENBQVlMLFVBQVosRUFBd0JDLGVBQXhCLENBQU47QUFDRCIsInNvdXJjZXNDb250ZW50IjpbIi8qIEBmbG93ICovXG5pbXBvcnQgKiBhcyBwYXRoIGZyb20gJ3BhdGgnXG5pbXBvcnQgKiBhcyBmcyBmcm9tICdtei9mcydcbmltcG9ydCBjcmVhdGVEaXIgZnJvbSAnLi9jcmVhdGVEaXInXG5cbmV4cG9ydCBkZWZhdWx0IGFzeW5jIGZ1bmN0aW9uKFxuICBzb3VyY2VQYXRoOiBzdHJpbmcsXG4gIGRlc3RpbmF0aW9uUGF0aDogc3RyaW5nXG4pOiBQcm9taXNlPHZvaWQ+IHtcbiAgYXdhaXQgY3JlYXRlRGlyKHBhdGguZGlybmFtZShkZXN0aW5hdGlvblBhdGgpKVxuICBhd2FpdCBmcy5jb3B5RmlsZShzb3VyY2VQYXRoLCBkZXN0aW5hdGlvblBhdGgpXG59XG4iXX0= |
@@ -1,2 +0,2 @@ | ||
'use strict'; | ||
"use strict"; | ||
@@ -6,30 +6,17 @@ Object.defineProperty(exports, "__esModule", { | ||
}); | ||
exports.default = _default; | ||
var _path = require('path'); | ||
var path = _interopRequireWildcard(require("path")); | ||
var path = _interopRequireWildcard(_path); | ||
var _util = require("util"); | ||
var _thenify = require('thenify'); | ||
var _mkdirp = _interopRequireDefault(require("mkdirp")); | ||
var _thenify2 = _interopRequireDefault(_thenify); | ||
var _mkdirp = require('mkdirp'); | ||
var _mkdirp2 = _interopRequireDefault(_mkdirp); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } } | ||
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } } | ||
function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, arguments); return new Promise(function (resolve, reject) { function step(key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { return Promise.resolve(value).then(function (value) { step("next", value); }, function (err) { step("throw", err); }); } } return step("next"); }); }; } | ||
exports.default = (() => { | ||
var _ref = _asyncToGenerator(function* (directoryPath) { | ||
yield (0, _thenify2.default)(_mkdirp2.default)(path.resolve(directoryPath)); | ||
}); | ||
return function (_x) { | ||
return _ref.apply(this, arguments); | ||
}; | ||
})(); | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImNyZWF0ZURpci5qcyJdLCJuYW1lcyI6WyJwYXRoIiwiZGlyZWN0b3J5UGF0aCIsIm1rZGlycCIsInJlc29sdmUiXSwibWFwcGluZ3MiOiI7Ozs7OztBQUNBOztJQUFZQSxJOztBQUNaOzs7O0FBQ0E7Ozs7Ozs7Ozs7OytCQUVlLFdBQWVDLGFBQWYsRUFBcUQ7QUFDbEUsVUFBTSx1QkFBUUMsZ0JBQVIsRUFBZ0JGLEtBQUtHLE9BQUwsQ0FBYUYsYUFBYixDQUFoQixDQUFOO0FBQ0QsRyIsImZpbGUiOiJjcmVhdGVEaXIuanMiLCJzb3VyY2VzQ29udGVudCI6WyIvKiBAZmxvdyAqL1xuaW1wb3J0ICogYXMgcGF0aCBmcm9tICdwYXRoJ1xuaW1wb3J0IHRoZW5pZnkgZnJvbSAndGhlbmlmeSdcbmltcG9ydCBta2RpcnAgZnJvbSAnbWtkaXJwJ1xuXG5leHBvcnQgZGVmYXVsdCBhc3luYyBmdW5jdGlvbihkaXJlY3RvcnlQYXRoOiBzdHJpbmcpOiBQcm9taXNlPHZvaWQ+IHtcbiAgYXdhaXQgdGhlbmlmeShta2RpcnApKHBhdGgucmVzb2x2ZShkaXJlY3RvcnlQYXRoKSlcbn1cbiJdfQ== | ||
async function _default(directoryPath) { | ||
await (0, _util.promisify)(_mkdirp.default)(path.resolve(directoryPath)); | ||
} | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImNyZWF0ZURpci5qcyJdLCJuYW1lcyI6WyJkaXJlY3RvcnlQYXRoIiwibWtkaXJwIiwicGF0aCIsInJlc29sdmUiXSwibWFwcGluZ3MiOiI7Ozs7Ozs7QUFDQTs7QUFDQTs7QUFDQTs7Ozs7O0FBRWUsd0JBQWVBLGFBQWYsRUFBcUQ7QUFDbEUsUUFBTSxxQkFBVUMsZUFBVixFQUFrQkMsSUFBSSxDQUFDQyxPQUFMLENBQWFILGFBQWIsQ0FBbEIsQ0FBTjtBQUNEIiwic291cmNlc0NvbnRlbnQiOlsiLyogQGZsb3cgKi9cbmltcG9ydCAqIGFzIHBhdGggZnJvbSAncGF0aCdcbmltcG9ydCB7IHByb21pc2lmeSB9IGZyb20gJ3V0aWwnXG5pbXBvcnQgbWtkaXJwIGZyb20gJ21rZGlycCdcblxuZXhwb3J0IGRlZmF1bHQgYXN5bmMgZnVuY3Rpb24oZGlyZWN0b3J5UGF0aDogc3RyaW5nKTogUHJvbWlzZTx2b2lkPiB7XG4gIGF3YWl0IHByb21pc2lmeShta2RpcnApKHBhdGgucmVzb2x2ZShkaXJlY3RvcnlQYXRoKSlcbn1cbiJdfQ== |
@@ -1,2 +0,2 @@ | ||
'use strict'; | ||
"use strict"; | ||
@@ -6,16 +6,13 @@ Object.defineProperty(exports, "__esModule", { | ||
}); | ||
exports.default = _default; | ||
exports.default = function (filePath) { | ||
return fs.readFile(path.resolve(filePath), 'utf8'); | ||
}; | ||
var path = _interopRequireWildcard(require("path")); | ||
var _path = require('path'); | ||
var fs = _interopRequireWildcard(require("mz/fs")); | ||
var path = _interopRequireWildcard(_path); | ||
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } } | ||
var _fs = require('mz/fs'); | ||
var fs = _interopRequireWildcard(_fs); | ||
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } } | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInJlYWRGaWxlLmpzIl0sIm5hbWVzIjpbImZpbGVQYXRoIiwiZnMiLCJyZWFkRmlsZSIsInBhdGgiLCJyZXNvbHZlIl0sIm1hcHBpbmdzIjoiOzs7Ozs7a0JBSWUsVUFBU0EsUUFBVCxFQUE0QztBQUN6RCxTQUFPQyxHQUFHQyxRQUFILENBQVlDLEtBQUtDLE9BQUwsQ0FBYUosUUFBYixDQUFaLEVBQW9DLE1BQXBDLENBQVA7QUFDRCxDOztBQUxEOztJQUFZRyxJOztBQUNaOztJQUFZRixFIiwiZmlsZSI6InJlYWRGaWxlLmpzIiwic291cmNlc0NvbnRlbnQiOlsiLyogQGZsb3cgKi9cbmltcG9ydCAqIGFzIHBhdGggZnJvbSAncGF0aCdcbmltcG9ydCAqIGFzIGZzIGZyb20gJ216L2ZzJ1xuXG5leHBvcnQgZGVmYXVsdCBmdW5jdGlvbihmaWxlUGF0aDogc3RyaW5nKTogUHJvbWlzZTxzdHJpbmc+IHtcbiAgcmV0dXJuIGZzLnJlYWRGaWxlKHBhdGgucmVzb2x2ZShmaWxlUGF0aCksICd1dGY4Jylcbn1cbiJdfQ== | ||
function _default(filePath) { | ||
return fs.readFile(path.resolve(filePath), 'utf8'); | ||
} | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInJlYWRGaWxlLmpzIl0sIm5hbWVzIjpbImZpbGVQYXRoIiwiZnMiLCJyZWFkRmlsZSIsInBhdGgiLCJyZXNvbHZlIl0sIm1hcHBpbmdzIjoiOzs7Ozs7O0FBQ0E7O0FBQ0E7Ozs7QUFFZSxrQkFBU0EsUUFBVCxFQUE0QztBQUN6RCxTQUFPQyxFQUFFLENBQUNDLFFBQUgsQ0FBWUMsSUFBSSxDQUFDQyxPQUFMLENBQWFKLFFBQWIsQ0FBWixFQUFvQyxNQUFwQyxDQUFQO0FBQ0QiLCJzb3VyY2VzQ29udGVudCI6WyIvKiBAZmxvdyAqL1xuaW1wb3J0ICogYXMgcGF0aCBmcm9tICdwYXRoJ1xuaW1wb3J0ICogYXMgZnMgZnJvbSAnbXovZnMnXG5cbmV4cG9ydCBkZWZhdWx0IGZ1bmN0aW9uKGZpbGVQYXRoOiBzdHJpbmcpOiBQcm9taXNlPHN0cmluZz4ge1xuICByZXR1cm4gZnMucmVhZEZpbGUocGF0aC5yZXNvbHZlKGZpbGVQYXRoKSwgJ3V0ZjgnKVxufVxuIl19 |
@@ -1,2 +0,2 @@ | ||
'use strict'; | ||
"use strict"; | ||
@@ -6,30 +6,17 @@ Object.defineProperty(exports, "__esModule", { | ||
}); | ||
exports.default = _default; | ||
var _path = require('path'); | ||
var path = _interopRequireWildcard(require("path")); | ||
var path = _interopRequireWildcard(_path); | ||
var _rimraf = _interopRequireDefault(require("rimraf")); | ||
var _rimraf = require('rimraf'); | ||
var _util = require("util"); | ||
var _rimraf2 = _interopRequireDefault(_rimraf); | ||
var _thenify = require('thenify'); | ||
var _thenify2 = _interopRequireDefault(_thenify); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } } | ||
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } } | ||
function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, arguments); return new Promise(function (resolve, reject) { function step(key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { return Promise.resolve(value).then(function (value) { step("next", value); }, function (err) { step("throw", err); }); } } return step("next"); }); }; } | ||
exports.default = (() => { | ||
var _ref = _asyncToGenerator(function* (directoryPath) { | ||
yield (0, _thenify2.default)(_rimraf2.default)(path.resolve(directoryPath)); | ||
}); | ||
return function (_x) { | ||
return _ref.apply(this, arguments); | ||
}; | ||
})(); | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInJlbW92ZURpci5qcyJdLCJuYW1lcyI6WyJwYXRoIiwiZGlyZWN0b3J5UGF0aCIsInJpbXJhZiIsInJlc29sdmUiXSwibWFwcGluZ3MiOiI7Ozs7OztBQUNBOztJQUFZQSxJOztBQUNaOzs7O0FBQ0E7Ozs7Ozs7Ozs7OytCQUVlLFdBQWVDLGFBQWYsRUFBcUQ7QUFDbEUsVUFBTSx1QkFBUUMsZ0JBQVIsRUFBZ0JGLEtBQUtHLE9BQUwsQ0FBYUYsYUFBYixDQUFoQixDQUFOO0FBQ0QsRyIsImZpbGUiOiJyZW1vdmVEaXIuanMiLCJzb3VyY2VzQ29udGVudCI6WyIvKiBAZmxvdyAqL1xuaW1wb3J0ICogYXMgcGF0aCBmcm9tICdwYXRoJ1xuaW1wb3J0IHJpbXJhZiBmcm9tICdyaW1yYWYnXG5pbXBvcnQgdGhlbmlmeSBmcm9tICd0aGVuaWZ5J1xuXG5leHBvcnQgZGVmYXVsdCBhc3luYyBmdW5jdGlvbihkaXJlY3RvcnlQYXRoOiBzdHJpbmcpOiBQcm9taXNlPHZvaWQ+IHtcbiAgYXdhaXQgdGhlbmlmeShyaW1yYWYpKHBhdGgucmVzb2x2ZShkaXJlY3RvcnlQYXRoKSlcbn1cbiJdfQ== | ||
async function _default(directoryPath) { | ||
await (0, _util.promisify)(_rimraf.default)(path.resolve(directoryPath)); | ||
} | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInJlbW92ZURpci5qcyJdLCJuYW1lcyI6WyJkaXJlY3RvcnlQYXRoIiwicmltcmFmIiwicGF0aCIsInJlc29sdmUiXSwibWFwcGluZ3MiOiI7Ozs7Ozs7QUFDQTs7QUFDQTs7QUFDQTs7Ozs7O0FBRWUsd0JBQWVBLGFBQWYsRUFBcUQ7QUFDbEUsUUFBTSxxQkFBVUMsZUFBVixFQUFrQkMsSUFBSSxDQUFDQyxPQUFMLENBQWFILGFBQWIsQ0FBbEIsQ0FBTjtBQUNEIiwic291cmNlc0NvbnRlbnQiOlsiLyogQGZsb3cgKi9cbmltcG9ydCAqIGFzIHBhdGggZnJvbSAncGF0aCdcbmltcG9ydCByaW1yYWYgZnJvbSAncmltcmFmJ1xuaW1wb3J0IHsgcHJvbWlzaWZ5IH0gZnJvbSAndXRpbCdcblxuZXhwb3J0IGRlZmF1bHQgYXN5bmMgZnVuY3Rpb24oZGlyZWN0b3J5UGF0aDogc3RyaW5nKTogUHJvbWlzZTx2b2lkPiB7XG4gIGF3YWl0IHByb21pc2lmeShyaW1yYWYpKHBhdGgucmVzb2x2ZShkaXJlY3RvcnlQYXRoKSlcbn1cbiJdfQ== |
@@ -1,2 +0,2 @@ | ||
'use strict'; | ||
"use strict"; | ||
@@ -6,31 +6,18 @@ Object.defineProperty(exports, "__esModule", { | ||
}); | ||
exports.default = _default; | ||
var _path = require('path'); | ||
var path = _interopRequireWildcard(require("path")); | ||
var path = _interopRequireWildcard(_path); | ||
var fs = _interopRequireWildcard(require("mz/fs")); | ||
var _fs = require('mz/fs'); | ||
var _createDir = _interopRequireDefault(require("./createDir")); | ||
var fs = _interopRequireWildcard(_fs); | ||
var _createDir = require('./createDir'); | ||
var _createDir2 = _interopRequireDefault(_createDir); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } } | ||
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } } | ||
function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, arguments); return new Promise(function (resolve, reject) { function step(key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { return Promise.resolve(value).then(function (value) { step("next", value); }, function (err) { step("throw", err); }); } } return step("next"); }); }; } | ||
exports.default = (() => { | ||
var _ref = _asyncToGenerator(function* (destinationPath, contents) { | ||
yield (0, _createDir2.default)(path.dirname(destinationPath)); | ||
yield fs.writeFile(destinationPath, contents); | ||
}); | ||
return function (_x, _x2) { | ||
return _ref.apply(this, arguments); | ||
}; | ||
})(); | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndyaXRlRmlsZS5qcyJdLCJuYW1lcyI6WyJwYXRoIiwiZnMiLCJkZXN0aW5hdGlvblBhdGgiLCJjb250ZW50cyIsImRpcm5hbWUiLCJ3cml0ZUZpbGUiXSwibWFwcGluZ3MiOiI7Ozs7OztBQUNBOztJQUFZQSxJOztBQUNaOztJQUFZQyxFOztBQUNaOzs7Ozs7Ozs7OzsrQkFFZSxXQUNiQyxlQURhLEVBRWJDLFFBRmEsRUFHRTtBQUNmLFVBQU0seUJBQVVILEtBQUtJLE9BQUwsQ0FBYUYsZUFBYixDQUFWLENBQU47QUFDQSxVQUFNRCxHQUFHSSxTQUFILENBQWFILGVBQWIsRUFBOEJDLFFBQTlCLENBQU47QUFDRCxHIiwiZmlsZSI6IndyaXRlRmlsZS5qcyIsInNvdXJjZXNDb250ZW50IjpbIi8qIEBmbG93ICovXG5pbXBvcnQgKiBhcyBwYXRoIGZyb20gJ3BhdGgnXG5pbXBvcnQgKiBhcyBmcyBmcm9tICdtei9mcydcbmltcG9ydCBjcmVhdGVEaXIgZnJvbSAnLi9jcmVhdGVEaXInXG5cbmV4cG9ydCBkZWZhdWx0IGFzeW5jIGZ1bmN0aW9uKFxuICBkZXN0aW5hdGlvblBhdGg6IHN0cmluZyxcbiAgY29udGVudHM6IHN0cmluZ1xuKTogUHJvbWlzZTx2b2lkPiB7XG4gIGF3YWl0IGNyZWF0ZURpcihwYXRoLmRpcm5hbWUoZGVzdGluYXRpb25QYXRoKSlcbiAgYXdhaXQgZnMud3JpdGVGaWxlKGRlc3RpbmF0aW9uUGF0aCwgY29udGVudHMpXG59XG4iXX0= | ||
async function _default(destinationPath, contents) { | ||
await (0, _createDir.default)(path.dirname(destinationPath)); | ||
await fs.writeFile(destinationPath, contents); | ||
} | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndyaXRlRmlsZS5qcyJdLCJuYW1lcyI6WyJkZXN0aW5hdGlvblBhdGgiLCJjb250ZW50cyIsInBhdGgiLCJkaXJuYW1lIiwiZnMiLCJ3cml0ZUZpbGUiXSwibWFwcGluZ3MiOiI7Ozs7Ozs7QUFDQTs7QUFDQTs7QUFDQTs7Ozs7O0FBRWUsd0JBQ2JBLGVBRGEsRUFFYkMsUUFGYSxFQUdFO0FBQ2YsUUFBTSx3QkFBVUMsSUFBSSxDQUFDQyxPQUFMLENBQWFILGVBQWIsQ0FBVixDQUFOO0FBQ0EsUUFBTUksRUFBRSxDQUFDQyxTQUFILENBQWFMLGVBQWIsRUFBOEJDLFFBQTlCLENBQU47QUFDRCIsInNvdXJjZXNDb250ZW50IjpbIi8qIEBmbG93ICovXG5pbXBvcnQgKiBhcyBwYXRoIGZyb20gJ3BhdGgnXG5pbXBvcnQgKiBhcyBmcyBmcm9tICdtei9mcydcbmltcG9ydCBjcmVhdGVEaXIgZnJvbSAnLi9jcmVhdGVEaXInXG5cbmV4cG9ydCBkZWZhdWx0IGFzeW5jIGZ1bmN0aW9uKFxuICBkZXN0aW5hdGlvblBhdGg6IHN0cmluZyxcbiAgY29udGVudHM6IHN0cmluZ1xuKTogUHJvbWlzZTx2b2lkPiB7XG4gIGF3YWl0IGNyZWF0ZURpcihwYXRoLmRpcm5hbWUoZGVzdGluYXRpb25QYXRoKSlcbiAgYXdhaXQgZnMud3JpdGVGaWxlKGRlc3RpbmF0aW9uUGF0aCwgY29udGVudHMpXG59XG4iXX0= |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
5
24310
131
1
+ Added@babel/core@^7.0.0-beta.55
+ Added@ampproject/remapping@2.3.0(transitive)
+ Added@babel/code-frame@7.26.2(transitive)
+ Added@babel/compat-data@7.26.2(transitive)
+ Added@babel/core@7.26.0(transitive)
+ Added@babel/generator@7.26.2(transitive)
+ Added@babel/helper-compilation-targets@7.25.9(transitive)
+ Added@babel/helper-module-imports@7.25.9(transitive)
+ Added@babel/helper-module-transforms@7.26.0(transitive)
+ Added@babel/helper-string-parser@7.25.9(transitive)
+ Added@babel/helper-validator-identifier@7.25.9(transitive)
+ Added@babel/helper-validator-option@7.25.9(transitive)
+ Added@babel/helpers@7.26.0(transitive)
+ Added@babel/parser@7.26.2(transitive)
+ Added@babel/template@7.25.9(transitive)
+ Added@babel/traverse@7.25.9(transitive)
+ Added@babel/types@7.26.0(transitive)
+ Added@jridgewell/gen-mapping@0.3.5(transitive)
+ Added@jridgewell/resolve-uri@3.1.2(transitive)
+ Added@jridgewell/set-array@1.2.1(transitive)
+ Added@jridgewell/sourcemap-codec@1.5.0(transitive)
+ Added@jridgewell/trace-mapping@0.3.25(transitive)
+ Addedbrowserslist@4.24.2(transitive)
+ Addedcaniuse-lite@1.0.30001680(transitive)
+ Addedconvert-source-map@2.0.0(transitive)
+ Addeddebug@4.3.7(transitive)
+ Addedelectron-to-chromium@1.5.62(transitive)
+ Addedescalade@3.2.0(transitive)
+ Addedgensync@1.0.0-beta.2(transitive)
+ Addedglobals@11.12.0(transitive)
+ Addedjs-tokens@4.0.0(transitive)
+ Addedjsesc@3.0.2(transitive)
+ Addedjson5@2.2.3(transitive)
+ Addedlru-cache@5.1.1(transitive)
+ Addedms@2.1.3(transitive)
+ Addednode-releases@2.0.18(transitive)
+ Addedpicocolors@1.1.1(transitive)
+ Addedsemver@6.3.1(transitive)
+ Addedupdate-browserslist-db@1.1.1(transitive)
+ Addedyallist@3.1.1(transitive)
- Removedbabel-core@^6.26.3
- Removedthenify@^3.3.0
- Removedansi-regex@2.1.1(transitive)
- Removedansi-styles@2.2.1(transitive)
- Removedbabel-code-frame@6.26.0(transitive)
- Removedbabel-core@6.26.3(transitive)
- Removedbabel-generator@6.26.1(transitive)
- Removedbabel-helpers@6.24.1(transitive)
- Removedbabel-messages@6.23.0(transitive)
- Removedbabel-register@6.26.0(transitive)
- Removedbabel-runtime@6.26.0(transitive)
- Removedbabel-template@6.26.0(transitive)
- Removedbabel-traverse@6.26.0(transitive)
- Removedbabel-types@6.26.0(transitive)
- Removedbabylon@6.18.0(transitive)
- Removedchalk@1.1.3(transitive)
- Removedconvert-source-map@1.9.0(transitive)
- Removedcore-js@2.6.12(transitive)
- Removeddebug@2.6.9(transitive)
- Removeddetect-indent@4.0.0(transitive)
- Removedescape-string-regexp@1.0.5(transitive)
- Removedesutils@2.0.3(transitive)
- Removedglobals@9.18.0(transitive)
- Removedhas-ansi@2.0.0(transitive)
- Removedhome-or-tmp@2.0.0(transitive)
- Removedinvariant@2.2.4(transitive)
- Removedis-finite@1.1.0(transitive)
- Removedjs-tokens@3.0.2(transitive)
- Removedjsesc@1.3.0(transitive)
- Removedjson5@0.5.1(transitive)
- Removedlodash@4.17.21(transitive)
- Removedloose-envify@1.4.0(transitive)
- Removedms@2.0.0(transitive)
- Removedos-homedir@1.0.2(transitive)
- Removedos-tmpdir@1.0.2(transitive)
- Removedprivate@0.1.8(transitive)
- Removedregenerator-runtime@0.11.1(transitive)
- Removedrepeating@2.0.1(transitive)
- Removedslash@1.0.0(transitive)
- Removedsource-map@0.5.7(transitive)
- Removedsource-map-support@0.4.18(transitive)
- Removedstrip-ansi@3.0.1(transitive)
- Removedsupports-color@2.0.0(transitive)
- Removedto-fast-properties@1.0.3(transitive)
- Removedtrim-right@1.0.1(transitive)
Updatednpm-packlist@^1.1.11