Skip to content

Commit

Permalink
chore: update scripts (#1513)
Browse files Browse the repository at this point in the history
  • Loading branch information
tatomyr committed May 10, 2024
1 parent c896c83 commit ef0a09c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
4 changes: 3 additions & 1 deletion benchmark/package.json
Expand Up @@ -16,7 +16,9 @@
"cli-1.7": "npm:@redocly/cli@1.7.0",
"cli-1.8": "npm:@redocly/cli@1.8.2",
"cli-1.9": "npm:@redocly/cli@1.9.1",
"cli-1.10": "npm:@redocly/cli@1.10.3",
"cli-1.10": "npm:@redocly/cli@1.10.6",
"cli-1.11": "npm:@redocly/cli@1.11.0",
"cli-1.12": "npm:@redocly/cli@1.12.2",
"cli-next": "file:../redocly-cli.tgz"
}
}
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -20,7 +20,7 @@
"prettier": "npx prettier --write \"**/*.{ts,js,yaml,json,md}\"",
"prettier:check": "npx prettier --check \"**/*.{ts,js,yaml,json,md}\"",
"eslint": "eslint packages/**",
"clean": "rm -rf packages/**/lib packages/**/node_modules packages/**/*.tsbuildinfo package-lock.json node_modules dist",
"clean": "rm -rf packages/**/lib packages/**/node_modules packages/**/*.tsbuildinfo package-lock.json node_modules dist && git checkout package-lock.json",
"watch": "tsc -b tsconfig.build.json --watch ",
"compile": "tsc -b tsconfig.build.json",
"prepare": "npm run compile",
Expand Down
6 changes: 6 additions & 0 deletions scripts/local-pack.sh
@@ -1,8 +1,14 @@
#!/bin/sh

# Backup package.json
cp packages/cli/package.json packages/cli/package.json.bak

cd packages/core && core=$(npm pack | tail -n 1) && mv $core ../../openapi-core.tgz && cd ../../ &&

version=$(cat ./packages/core/package.json | jq '.version' | tr -d '"')
jq '.dependencies."@redocly/openapi-core" = $packagefile' ./packages/cli/package.json --arg packagefile ./openapi-core.tgz > package.json.tmp && mv package.json.tmp ./packages/cli/package.json &&

cd packages/cli && cli=$(npm pack | tail -n 1) && mv $cli ../../redocly-cli.tgz

# Revert changes to the package.json
mv package.json.bak package.json

1 comment on commit ef0a09c

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage report

St.
Category Percentage Covered / Total
🟡 Statements 77.02% 4452/5780
🟡 Branches 67.5% 2463/3649
🟡 Functions 70.64% 741/1049
🟡 Lines 77.22% 4187/5422

Test suite run success

734 tests passing in 102 suites.

Report generated by 🧪jest coverage report action from ef0a09c

Please sign in to comment.