Skip to content
This repository has been archived by the owner on Apr 4, 2023. It is now read-only.

Commit

Permalink
fix: Make this library executable with npx
Browse files Browse the repository at this point in the history
Fixes eclipse-che/che#20780

Change-Id: If721ccc4c53f001f28e6522695ab219e71c0ec1b
Signed-off-by: Florent Benoit <fbenoit@redhat.com>
  • Loading branch information
benoitf committed Nov 16, 2021
1 parent 3665cbe commit e121bd2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tools/devworkspace-handler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
"version": "0.0.1",
"private": false,
"description": "Handle management of che-theia-plugins and devWorkspace templates",
"main": "lib/entrypoint.js",
"bin": "lib/entrypoint.js",
"publishConfig": {
"access": "public"
},
Expand Down Expand Up @@ -37,11 +39,13 @@
"@devfile/api": "latest",
"axios": "0.21.2",
"inversify": "^5.0.1",
"fs-extra": "^9.1.0",
"js-yaml": "^4.0.0",
"jsonc-parser": "^3.0.0",
"reflect-metadata": "^0.1.13"
},
"devDependencies": {
"@types/fs-extra": "^9.0.11",
"rollup": "^2.44.0"
},
"jest": {
Expand Down
2 changes: 2 additions & 0 deletions tools/devworkspace-handler/src/entrypoint.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env node
/* eslint-disable header/header */
/**********************************************************************
* Copyright (c) 2021 Red Hat, Inc.
*
Expand Down

0 comments on commit e121bd2

Please sign in to comment.