Skip to content

Commit

Permalink
chore: remove workflow logic, update tsconfig, octokit.rest, clear ma…
Browse files Browse the repository at this point in the history
…nifest
  • Loading branch information
Keyrxng committed Nov 3, 2024
1 parent 7aac49d commit 8e61947
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 127 deletions.
43 changes: 0 additions & 43 deletions .github/workflows/compute.yml

This file was deleted.

27 changes: 3 additions & 24 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -1,26 +1,5 @@
{
"name": "ts-template",
"description": "ts-template for UbiquityOS plugins.",
"ubiquity:listeners": ["issue_comment.created"],
"commands": {
"command1": {
"ubiquity:example": "/command1 argument",
"description": "Command 1 with an argument."
}
},
"configuration": {
"default": {
"configurableResponse": "Hello, world!"
},
"type": "object",
"properties": {
"configurableResponse": {
"type": "string"
},
"customStringsUrl": {
"type": "string"
}
},
"required": ["configurableResponse"]
}
"name": "permit-generation",
"description": "Uses Permit2 to create reward permits.",
"ubiquity:listeners": []
}
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
"prepare": "husky install",
"test": "jest --coverage",
"build": "tsup",
"build:worker": "npx tsx build/esbuild-build.ts",
"worker": "wrangler dev --env dev --port 4000"
},
"keywords": [
Expand Down
2 changes: 1 addition & 1 deletion src/helpers/validator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export async function returnDataToKernel(
},
},
} = context;
return octokit.repos.createDispatchEvent({
return octokit.rest.repos.createDispatchEvent({
owner,
repo,
event_type: eventType,
Expand Down
52 changes: 0 additions & 52 deletions src/main.ts

This file was deleted.

11 changes: 5 additions & 6 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
// "disableSolutionSearching": true, /* Opt a project out of multi-project reference checking when editing. */
// "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */
/* Language and Environment */
// "target": "es2016" /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */,
"target": "ES2022" /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */,
// "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
// "jsx": "preserve", /* Specify what JSX code is generated. */
// "experimentalDecorators": true, /* Enable experimental support for legacy experimental decorators. */
Expand All @@ -22,9 +22,9 @@
// "useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */
// "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */
/* Modules */
// "module": "commonjs" /* Specify what module code is generated. */,
"module": "ES2022" /* Specify what module code is generated. */,
// "rootDir": "./", /* Specify the root folder within your source files. */
// "moduleResolution": "Classic" /* Specify how TypeScript looks up a file from a given module specifier. */,
"moduleResolution": "Node" /* Specify how TypeScript looks up a file from a given module specifier. */,
// "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
// "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */
// "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
Expand Down Expand Up @@ -55,7 +55,7 @@
// "noEmit": true, /* Disable emitting files from a compilation. */
// "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */
// "importsNotUsedAsValues": "remove", /* Specify emit/checking behavior for imports that are only used for types. */
"downlevelIteration": true /* Emit more compliant, but verbose and less performant JavaScript for iteration. */,
// "downlevelIteration": true /* Emit more compliant, but verbose and less performant JavaScript for iteration. */,
// "sourceRoot": "", /* Specify the root path for debuggers to find the reference source code. */
// "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */
// "inlineSources": true, /* Include source code in the sourcemaps inside the emitted JavaScript. */
Expand Down Expand Up @@ -96,7 +96,6 @@
// "allowUnreachableCode": true, /* Disable error reporting for unreachable code. */
/* Completeness */
// "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */
"skipLibCheck": true /* Skip type checking all .d.ts files. */,
"resolveJsonModule": true
"skipLibCheck": true /* Skip type checking all .d.ts files. */
}
}

0 comments on commit 8e61947

Please sign in to comment.