fix default type
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -13,6 +13,7 @@ dist
|
|||||||
dist-ssr
|
dist-ssr
|
||||||
coverage
|
coverage
|
||||||
*.local
|
*.local
|
||||||
|
.npmrc
|
||||||
|
|
||||||
# Editor directories and files
|
# Editor directories and files
|
||||||
.vscode/*
|
.vscode/*
|
||||||
|
|||||||
@@ -1,10 +1,14 @@
|
|||||||
{
|
{
|
||||||
"name": "@takerofnotes/plugin-sdk",
|
"name": "takerofnotes-plugin-sdk",
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"description": "SDK to create a storage plugin for Taker of Notes",
|
"description": "SDK to create a storage plugin for Taker of Notes",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"types": "dist/index.d.ts",
|
"types": "dist/index.d.ts",
|
||||||
|
"repository": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "git+https://github.com/nicwands/takerofnotes-plugin-sdk.git"
|
||||||
|
},
|
||||||
"files": [
|
"files": [
|
||||||
"dist"
|
"dist"
|
||||||
],
|
],
|
||||||
@@ -16,7 +20,8 @@
|
|||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "tsup src/index.ts --format esm --dts",
|
"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",
|
"author": "nicwands",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ export interface ConfigField {
|
|||||||
key: string
|
key: string
|
||||||
label: string
|
label: string
|
||||||
type: 'text' | 'password' | 'directory' | 'number' | 'boolean'
|
type: 'text' | 'password' | 'directory' | 'number' | 'boolean'
|
||||||
default: 'text' | 'password' | 'directory' | 'number' | 'boolean'
|
default: string
|
||||||
required?: boolean
|
required?: boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user