From bda9424d3740c6f58c968ea15041bb02096659c4 Mon Sep 17 00:00:00 2001 From: Hans Fast Date: Sat, 22 Nov 2025 08:12:12 +0100 Subject: [PATCH] add package.json --- README.md | 2 +- config.ori | 2 +- foo.handler.js | 2 +- package.json | 17 +++++++++++++++++ 4 files changed, 20 insertions(+), 3 deletions(-) create mode 100644 package.json diff --git a/README.md b/README.md index 8e87476..acbfa6b 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ export default { //config.ori { hello = "world" - foo.handler = ./dj.handler.js + foo.handler = foo.handler.js } ``` diff --git a/config.ori b/config.ori index 44bcf4b..b53bdb8 100644 --- a/config.ori +++ b/config.ori @@ -1,5 +1,5 @@ { hello = "world" - foo.handler = ./dj.handler.js + foo.handler = foo.handler.js } diff --git a/foo.handler.js b/foo.handler.js index e557560..df5455a 100644 --- a/foo.handler.js +++ b/foo.handler.js @@ -1,4 +1,4 @@ -//I believe this is not being used, because in doctree.js, isUnpackable is false, and toString is not exported by @weborigami/origami anymore ... ? +//I believe this is not being used at all, because toString is not exported by @weborigami/origami anymore ... ? import { toString } from "@weborigami/origami"; export default { diff --git a/package.json b/package.json new file mode 100644 index 0000000..21293fb --- /dev/null +++ b/package.json @@ -0,0 +1,17 @@ +{ + "name": "ori-handler-test", + "version": "1.0.0", + "description": "Following the [docs](https://weborigami.org/language/filetypes#custom-file-types), I have created a file `foobar.foo` and a handler `foo.handler.js`.", + "main": "foo.handler.js", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "repository": { + "type": "git", + "url": "git:hans/ori-handler-test" + }, + "keywords": [], + "author": "", + "license": "ISC", + "type": "commonjs" +}