Skip to content

Commit

Permalink
chore: deps updates (#3714)
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesHenry committed Jun 7, 2023
1 parent 16df3e9 commit aca9efc
Show file tree
Hide file tree
Showing 7 changed files with 438 additions and 444 deletions.
118 changes: 118 additions & 0 deletions a.json
@@ -0,0 +1,118 @@
{
"name": "lerna",
"version": "7.0.0-alpha.7",
"description": "Lerna is a fast, modern build system for managing and publishing multiple JavaScript/TypeScript packages from the same repository",
"keywords": ["lerna", "monorepo", "multi-package"],
"homepage": "https://lerna.js.org",
"license": "MIT",
"author": {
"name": "Sebastian McKenzie",
"email": "sebmck@gmail.com"
},
"bin": {
"lerna": "dist/cli.js"
},
"files": ["dist", "schemas/lerna-schema.json", "migrations.json"],
"main": "./src/index.js",
"engines": {
"node": "^14.17.0 || >=16.0.0"
},
"publishConfig": {
"tag": "next"
},
"repository": {
"type": "git",
"url": "git+https://github.com/lerna/lerna.git",
"directory": "packages/lerna"
},
"nx-migrations": {
"migrations": "./migrations.json"
},
"dependencies": {
"@lerna/child-process": "7.0.0-alpha.7",
"@lerna/create": "7.0.0-alpha.7",
"@npmcli/run-script": "6.0.2",
"@nx/devkit": ">=16.1.3 < 17",
"@octokit/plugin-enterprise-rest": "6.0.1",
"@octokit/rest": "19.0.11",
"byte-size": "8.1.1",
"chalk": "4.1.0",
"clone-deep": "4.0.1",
"cmd-shim": "6.0.1",
"columnify": "1.6.0",
"config-chain": "1.1.13",
"conventional-changelog-angular": "6.0.0",
"conventional-changelog-core": "5.0.1",
"conventional-recommended-bump": "7.0.1",
"cosmiconfig": "8.1.3",
"dedent": "0.7.0",
"envinfo": "^7.7.4",
"execa": "5.0.0",
"fs-extra": "9.1.0",
"get-port": "5.1.1",
"get-stream": "6.0.0",
"git-url-parse": "13.1.0",
"glob-parent": "5.1.2",
"globby": "11.1.0",
"graceful-fs": "4.2.10",
"has-unicode": "2.0.1",
"import-local": "^3.0.2",
"init-package-json": "5.0.0",
"inquirer": "^8.2.4",
"is-ci": "3.0.1",
"is-stream": "2.0.0",
"jest-diff": ">=29.4.3 < 30",
"js-yaml": "^4.1.0",
"libnpmaccess": "^6.0.3",
"libnpmpublish": "7.1.4",
"load-json-file": "6.2.0",
"make-dir": "3.1.0",
"minimatch": "3.0.5",
"multimatch": "5.0.0",
"node-fetch": "2.6.7",
"npm-package-arg": "8.1.1",
"npm-packlist": "5.1.1",
"npm-registry-fetch": "^14.0.3",
"npmlog": "^6.0.2",
"nx": ">=16.1.3 < 17",
"p-map": "4.0.0",
"p-map-series": "2.1.0",
"p-pipe": "3.1.0",
"p-queue": "6.6.2",
"p-reduce": "2.1.0",
"p-waterfall": "2.1.1",
"pacote": "15.1.1",
"pify": "5.0.0",
"read-cmd-shim": "3.0.0",
"read-package-json": "5.0.1",
"resolve-from": "5.0.0",
"rimraf": "^4.4.1",
"semver": "^7.3.8",
"signal-exit": "3.0.7",
"slash": "3.0.0",
"ssri": "9.0.1",
"strong-log-transformer": "2.1.0",
"tar": "6.1.11",
"temp-dir": "1.0.0",
"typescript": ">=3 < 6",
"upath": "^2.0.1",
"uuid": "8.3.2",
"validate-npm-package-license": "3.0.4",
"validate-npm-package-name": "4.0.0",
"write-file-atomic": "4.0.1",
"write-pkg": "4.0.0",
"yargs": "16.2.0",
"yargs-parser": "20.2.4"
},
"exports": {
".": "./dist/index.js",
"./cli": "./dist/cli.js",
"./commands/*": "./dist/commands/*/index.js",
"./commands/*/command": "./dist/commands/*/command.js",
"./commands/diff/lib/*": "./dist/commands/diff/lib/*.js",
"./commands/publish/lib/*": "./dist/commands/publish/lib/*.js",
"./commands/version/lib/*": "./dist/commands/version/lib/*.js",
"./migrations/**/*": "./dist/migrations/**/*"
},
"gitHead": "bb0ea3cd52cfb49cc2b6125fe35047c038bae4f8"
}
39 changes: 17 additions & 22 deletions libs/commands/create/src/index.ts
Expand Up @@ -19,7 +19,7 @@ import { camelCase } from "yargs-parser";
const childProcess = require("@lerna/child-process");

// eslint-disable-next-line @typescript-eslint/no-var-requires
const initPackageJson = require("pify")(require("init-package-json"));
const initPackageJson = require("init-package-json");

// eslint-disable-next-line @typescript-eslint/no-var-requires
const { builtinNpmrc } = require("./lib/builtin-npmrc");
Expand Down Expand Up @@ -181,36 +181,31 @@ class CreateCommand extends Command {
);
}

execute() {
let chain = Promise.resolve();

chain = chain.then(() => fs.mkdirp(this.libDir));
chain = chain.then(() => fs.mkdirp(this.testDir));
chain = chain.then(() => Promise.all([this.writeReadme(), this.writeLibFile(), this.writeTestFile()]));
async execute() {
await fs.mkdirp(this.libDir);
await fs.mkdirp(this.testDir);
await Promise.all([this.writeReadme(), this.writeLibFile(), this.writeTestFile()]);

if (this.binFileName) {
chain = chain.then(() => fs.mkdirp(this.binDir));
chain = chain.then(() => Promise.all([this.writeBinFile(), this.writeCliFile(), this.writeCliTest()]));
await fs.mkdirp(this.binDir);
await Promise.all([this.writeBinFile(), this.writeCliFile(), this.writeCliTest()]);
}

chain = chain.then(() => initPackageJson(this.targetDir, LERNA_MODULE_DATA, this.conf));
const data = await initPackageJson(this.targetDir, LERNA_MODULE_DATA, this.conf);

return chain.then((data) => {
if (this.options.esModule) {
this.logger.notice(
"✔",
dedent`
if (this.options.esModule) {
this.logger.notice(
"✔",
dedent`
Ensure '${path.relative(".", this.pkgsDir)}/*/${this.outDir}' has been added to ./.gitignore
Ensure rollup or babel build scripts are in the root
`
);
}

this.logger.success(
"create",
`New package ${data.name} created at ./${path.relative(".", this.targetDir)}`
);
});
}
this.logger.success(
"create",
`New package ${data.name} created at ./${path.relative(".", this.targetDir)}`
);
}

gitConfig(prop) {
Expand Down

0 comments on commit aca9efc

Please sign in to comment.