mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-01-23 10:45:57 +00:00
The previous commit changed module resolution to bundler mode which fixed Angular tests but broke Node.js ESM imports in super-sync-server. Switch to tsup bundler that outputs both ESM (.mjs) and CJS (.js) formats, with proper exports field to support both environments: - CJS for super-sync-server (Node.js commonjs) - ESM for Angular/webpack bundler imports
31 lines
693 B
JSON
31 lines
693 B
JSON
{
|
|
"name": "@sp/shared-schema",
|
|
"version": "1.0.0",
|
|
"description": "Shared schema versioning and migrations for Super Productivity sync",
|
|
"main": "dist/index.js",
|
|
"module": "dist/index.mjs",
|
|
"types": "dist/index.d.ts",
|
|
"exports": {
|
|
".": {
|
|
"import": {
|
|
"types": "./dist/index.d.mts",
|
|
"default": "./dist/index.mjs"
|
|
},
|
|
"require": {
|
|
"types": "./dist/index.d.ts",
|
|
"default": "./dist/index.js"
|
|
}
|
|
}
|
|
},
|
|
"scripts": {
|
|
"build": "tsup",
|
|
"build:tsc": "tsc",
|
|
"test": "vitest run",
|
|
"test:watch": "vitest"
|
|
},
|
|
"devDependencies": {
|
|
"tsup": "^8.0.0",
|
|
"typescript": "^5.0.0",
|
|
"vitest": "^3.2.4"
|
|
}
|
|
}
|