fix diplay workspace name (#1291)

Co-authored-by: Danish Arora <35004822+danisharora099@users.noreply.github.com>
This commit is contained in:
Sasha 2023-04-03 12:52:27 +02:00 committed by GitHub
parent 3722ae7487
commit 7075f10780
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -53,7 +53,7 @@
}, },
"overrides": [ "overrides": [
{ {
"files": ["*.spec.ts", "**/test_utils/*.ts"], "files": ["*.spec.ts", "**/test_utils/*.ts", "*.js", "*.cjs"],
"rules": { "rules": {
"@typescript-eslint/no-non-null-assertion": "off", "@typescript-eslint/no-non-null-assertion": "off",
"no-console": "off" "no-console": "off"

View File

@ -1,8 +1,8 @@
import cp from "child_process";
import fs from "fs"; import fs from "fs";
import path from "path"; import path from "path";
import cp from "child_process";
import { promisify } from "util";
import { fileURLToPath } from "url"; import { fileURLToPath } from "url";
import { promisify } from "util";
const PACKAGE_JSON = "package.json"; const PACKAGE_JSON = "package.json";
// hack to get __dirname // hack to get __dirname
@ -45,7 +45,7 @@ async function run() {
`npm publish --workspace ${info.workspace} --tag latest --access public` `npm publish --workspace ${info.workspace} --tag latest --access public`
); );
console.info( console.info(
`Successfully published ${info.name} with version ${info.version}.` `Successfully published ${info.workspace} with version ${info.version}.`
); );
} catch (err) { } catch (err) {
console.error( console.error(