diff --git a/deno.json b/deno.json index 74b3459..892cb80 100644 --- a/deno.json +++ b/deno.json @@ -5,7 +5,9 @@ "tasks": { "dev": "deno run --watch --allow-net --allow-read --allow-env src/server.ts", "start": "deno run --allow-net --allow-read --allow-env src/server.ts", - "build": "rescript build && deno bundle src/mod.ts dist/economic-toolkit.js", + "rescript:build": "deno run -A --node-modules-dir=auto npm:rescript@^12.0.0 build", + "rescript:clean": "deno run -A --node-modules-dir=auto npm:rescript@^12.0.0 clean", + "build": "deno task rescript:build && deno bundle src/mod.ts dist/economic-toolkit.js", "build:excel": "just build-excel", "build:libre": "just build-libre", "test": "deno test --allow-net --allow-read --allow-env", @@ -54,6 +56,10 @@ "@std/path": "jsr:@std/path@^1.0.0", "@std/fs": "jsr:@std/fs@^1.0.0", "@std/http": "jsr:@std/http@^1.0.0", - "@std/testing": "jsr:@std/testing@^1.0.0" - } + "@std/testing": "jsr:@std/testing@^1.0.0", + "rescript": "npm:rescript@^12.0.0", + "@rescript/core": "npm:@rescript/core@^1.6.0", + "@microsoft/office-js": "npm:@microsoft/office-js@^1.1.0" + }, + "nodeModulesDir": "auto" } diff --git a/package.json b/package.json deleted file mode 100644 index 88ad537..0000000 --- a/package.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "name": "economic-toolkit", - "version": "2.0.0", - "description": "Cross-platform Excel/LibreOffice add-in for economic modelling and investigative research", - "main": "dist/index.js", - "type": "module", - "scripts": { - "dev": "deno task dev", - "build": "rescript build && deno task build", - "build:rescript": "rescript build", - "build:excel": "deno task build:excel", - "build:libre": "deno task build:libre", - "test": "deno test", - "test:watch": "deno test --watch", - "test:coverage": "deno test --coverage", - "lint": "deno lint", - "lint:fix": "deno lint --fix", - "format": "deno fmt", - "watch": "deno task watch", - "clean": "rm -rf dist build lib", - "prepack": "deno task build" - }, - "keywords": [ - "excel", - "libreoffice", - "economics", - "data", - "addin", - "office.js", - "uno", - "rescript", - "julia" - ], - "author": "Hyperpolymath Contributors", - "license": "MPL-2.0", - "repository": { - "type": "git", - "url": "https://github.com/hyperpolymath/excel-economic-numbers-tool.git" - }, - "devDependencies": { - "@rescript/core": "^1.0.0", - "rescript": "^12.0.0" - }, - "dependencies": { - "@microsoft/office-js": "^1.1.0" - }, - "engines": { - "deno": ">=2.0.0" - } -}