Skip to content

Commit

Permalink
WiP
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Weimann <[email protected]>
  • Loading branch information
weeman1337 committed Nov 8, 2024
1 parent bae7066 commit ca56ddc
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 4 deletions.
1 change: 1 addition & 0 deletions matrix-meetings-bot/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"module": "commonjs",
"moduleResolution": "node",
"target": "es6",
"lib": ["esnext"],
"noImplicitAny": true,
Expand Down
21 changes: 18 additions & 3 deletions packages/calendar/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,26 @@
"type": "module",
"version": "1.0.0",
"source": "./src/index.ts",
"module": "./src/index.ts",
"types": "./src/index.ts",
"main": "./src/index.ts",
"module": "./lib/index.js",
"types": "./lib/index.d.ts",
"main": "./lib/index.cjs",
"files": [
"./src/testing/*"
],
"exports": {
".": {
"module": "./lib/index.js",
"import": {
"types": "./lib/index.d.ts",
"default": "./lib/index.js"
},
"require": {
"types": "./lib/index.d.cts",
"default": "./lib/index.cjs"
}
},
"./package.json": "./package.json"
},
"scripts": {
"docker:build": "echo \"Nothing to build\"",
"build": "tsc",
Expand All @@ -32,6 +46,7 @@
"devDependencies": {
"@types/lodash-es": "^4.17.12",
"@types/luxon": "^3.2.0",
"vite": "^5.4.10",
"vitest": "^2.1.4"
}
}
3 changes: 2 additions & 1 deletion packages/calendar/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "lib",
"rootDir": "src"
"rootDir": "src",
"declaration": true
},
"include": ["src"]
}
9 changes: 9 additions & 0 deletions packages/calendar/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
* limitations under the License.
*/

import { resolve } from 'path'
import { defineConfig } from 'vite';

// https://vitejs.dev/config/
Expand All @@ -22,6 +23,14 @@ export default defineConfig({
target: 'es2020',
},
build: {

lib: {
entry: resolve(__dirname, 'src/index.ts'),
formats: ['cjs', 'es', ],
name: 'Calendar',
fileName: 'index',
},

outDir: 'lib',
commonjsOptions: {
strictRequires: true,
Expand Down

0 comments on commit ca56ddc

Please sign in to comment.