Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33,061 changes: 33,061 additions & 0 deletions dist-lib/index.js

Large diffs are not rendered by default.

385 changes: 287 additions & 98 deletions dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/package.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"type": "module"
"type": "commonjs"
}
2 changes: 1 addition & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ const jestConfig = {
verbose: true,
};

export default jestConfig;
module.exports = jestConfig;
8 changes: 7 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,13 @@
"version": "1.0.0",
"description": "Install 1Password CLI into your GitHub Actions jobs",
"main": "dist/index.js",
"type": "module",
"type": "commonjs",
"exports": {
".": {
"import": "./dist/index.js",
"require": "./dist/index.js"
}
},
"scripts": {
"build": "ncc build ./src/index.ts",
"format": "prettier",
Expand Down
3 changes: 3 additions & 0 deletions src/action/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { install } from "../index";

install();
4 changes: 1 addition & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { VersionResolver } from "./version";
/**
* Entry point for the GitHub Action.
*/
const run = async (): Promise<void> => {
export const install = async (): Promise<void> => {
try {
const versionResolver = new VersionResolver(core.getInput("version"));
await versionResolver.resolve();
Expand All @@ -22,5 +22,3 @@ const run = async (): Promise<void> => {
}
}
};
// eslint-disable-next-line
run();
3 changes: 3 additions & 0 deletions src/lib/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { install } from "../index";

export { install };
Loading