feat(base-formula): scaffold shared package

This commit is contained in:
Philipinho
2026-04-23 23:24:13 +01:00
parent bf75cc9c74
commit 99fd4a9503
12 changed files with 56 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
export {};
+3
View File
@@ -0,0 +1,3 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=index.client.js.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"index.client.js","sourceRoot":"","sources":["../src/index.client.ts"],"names":[],"mappings":""}
+1
View File
@@ -0,0 +1 @@
export {};
+3
View File
@@ -0,0 +1,3 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=index.server.js.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"index.server.js","sourceRoot":"","sources":["../src/index.server.ts"],"names":[],"mappings":""}
+27
View File
@@ -0,0 +1,27 @@
{
"name": "@docmost/base-formula",
"homepage": "https://docmost.com",
"private": true,
"scripts": {
"build": "tsc --build",
"dev": "tsc --watch"
},
"main": "dist/index.server.js",
"module": "./src/index.server.ts",
"exports": {
"./client": {
"types": "./src/index.client.ts",
"default": "./src/index.client.ts"
},
"./server": {
"types": "./src/index.server.ts",
"default": "./src/index.server.ts"
},
".": {
"types": "./src/index.server.ts",
"default": "./src/index.server.ts"
}
},
"types": "src/index.server.ts",
"dependencies": {}
}
@@ -0,0 +1,3 @@
// Client-side public surface: parse, typecheck, cycle-detect, pretty-print.
// Does NOT export eval or the function registry.
export {};
@@ -0,0 +1,2 @@
// Server-side public surface: everything in client + evaluator + registry.
export {};
+11
View File
@@ -0,0 +1,11 @@
{
"extends": "../editor-ext/tsconfig.json",
"compilerOptions": {
"outDir": "./dist",
"rootDir": "./src",
"declaration": true,
"composite": true
},
"include": ["src/**/*"],
"exclude": ["dist", "node_modules"]
}
File diff suppressed because one or more lines are too long
+2
View File
@@ -843,6 +843,8 @@ importers:
specifier: ^8.57.1
version: 8.57.1(eslint@9.39.4(jiti@2.4.2))(typescript@5.9.3)
packages/base-formula: {}
packages/editor-ext:
dependencies:
marked: