diff --git a/.gitignore b/.gitignore index a3f7a51..c1a61f4 100644 --- a/.gitignore +++ b/.gitignore @@ -13,6 +13,7 @@ dist dist-ssr coverage *.local +.npmrc # Editor directories and files .vscode/* diff --git a/package.json b/package.json index 59c9b01..400d300 100644 --- a/package.json +++ b/package.json @@ -1,10 +1,14 @@ { - "name": "@takerofnotes/plugin-sdk", + "name": "takerofnotes-plugin-sdk", "version": "0.1.0", "description": "SDK to create a storage plugin for Taker of Notes", "type": "module", "main": "dist/index.js", "types": "dist/index.d.ts", + "repository": { + "type": "git", + "url": "git+https://github.com/nicwands/takerofnotes-plugin-sdk.git" + }, "files": [ "dist" ], @@ -16,7 +20,8 @@ }, "scripts": { "build": "tsup src/index.ts --format esm --dts", - "dev": "tsup src/index.ts --format esm --dts --watch" + "dev": "tsup src/index.ts --format esm --dts --watch", + "prepublishOnly": "npm run build" }, "author": "nicwands", "license": "MIT", diff --git a/src/types.ts b/src/types.ts index c793eeb..eae85b4 100644 --- a/src/types.ts +++ b/src/types.ts @@ -2,7 +2,7 @@ export interface ConfigField { key: string label: string type: 'text' | 'password' | 'directory' | 'number' | 'boolean' - default: 'text' | 'password' | 'directory' | 'number' | 'boolean' + default: string required?: boolean }