From 93e8d01a721474e36328f5014cab2b2ba5303022 Mon Sep 17 00:00:00 2001 From: e01 Date: Sat, 24 Jul 2021 15:05:00 +0300 Subject: [PATCH] Allow extension to be loaded via directus package.json --- .npmignore | 1 + README.md | 2 ++ package.json | 3 +++ 3 files changed, 6 insertions(+) create mode 100644 .npmignore diff --git a/.npmignore b/.npmignore new file mode 100644 index 0000000..7f4b696 --- /dev/null +++ b/.npmignore @@ -0,0 +1 @@ +.editorconfig diff --git a/README.md b/README.md index 64945ba..36e7b2a 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,7 @@ ## How to install Simple quick install step, just copy and paste in your Directus project root directory. + ```bash ( source .env &&\ curl -o searchsync.zip -L https://github.com/dimitrov-adrian/directus-extension-searchsync/archive/refs/heads/main.zip &&\ @@ -19,6 +20,7 @@ Simple quick install step, just copy and paste in your Directus project root dir cp "$EXTENSIONS_PATH/hooks/directus-extension-searchsync-main/example.searchsync.config.js" searchsync.config.js && \ cd "$EXTENSIONS_PATH/hooks/directus-extension-searchsync-main" && npm i) ``` + Then open the `./searchsync.config.js` file and edit, and restart directus. ## Configuration diff --git a/package.json b/package.json index fd5142e..04c39dc 100644 --- a/package.json +++ b/package.json @@ -7,6 +7,9 @@ }, "main": "index.js", "license": "MIT", + "directus:extension": { + "type": "hook" + }, "homepage": "https://github.com/dimitrov-adrian/directus-extension-searchsync", "repository": { "type": "git",