Skip to content

Commit

Permalink
fix: tryfix
Browse files Browse the repository at this point in the history
  • Loading branch information
Ganitzsh committed Nov 15, 2023
1 parent a16240c commit 52d8f73
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 17 deletions.
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,5 +71,5 @@ outputs:
Released version in format of X.Y.Z (major.minor.patch-prerelease+build).
name: Release me!
runs:
main: bootstrap.cjs
main: bootstrap.mjs
using: node20
14 changes: 0 additions & 14 deletions bootstrap.cjs

This file was deleted.

13 changes: 13 additions & 0 deletions bootstrap.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { execSync } from 'child_process';

try {
// Install dependencies
execSync('npm ci --omit=dev --no-audit --no-progress --prefer-offline', {
stdio: 'inherit',
});

await import('./dist/index.js');
} catch (error) {
console.error('Error during installation of dependencies:', error);
process.exit(1);
}
2 changes: 1 addition & 1 deletion scripts/install-dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -ex

npm --prefix "$1" ci "$1" --only=production --no-audit --no-progress --prefer-offline
npm --prefix "$1" ci "$1" --omit=dev --no-audit --no-progress --prefer-offline

if [ "$#" -gt 1 ]; then
# Install additional packages.
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.common.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"extends": "@tsconfig/node20/tsconfig.json",
"exclude": ["node_modules"],
"include": ["./jest.config.ts", "./src/**/*.ts", "./__mocks__/**/*.ts"],
"include": ["./bootstrap.mjs", "./jest.config.ts", "./src/**/*.ts", "./__mocks__/**/*.ts"],
"compilerOptions": {
"declaration": true,
"declarationMap": true,
Expand Down

0 comments on commit 52d8f73

Please sign in to comment.