Skip to content

Commit

Permalink
Merge pull request #20 from iotum/jerry_hu/add-meeting-action
Browse files Browse the repository at this point in the history
add meeting action
  • Loading branch information
jerry2013 authored Apr 25, 2024
2 parents 2f070e2 + b0cb52c commit c168470
Show file tree
Hide file tree
Showing 31 changed files with 3,146 additions and 1,495 deletions.
3 changes: 3 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@
"ignorePatterns": [
"dist/*"
],
"globals": {
"require": "readonly"
},
"env": {
"browser": true,
"jest/globals": true
Expand Down
31 changes: 31 additions & 0 deletions build.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
const { build } = require('esbuild');
const { dependencies, peerDependencies } = require('./package.json');
const { Generator: dtsGenerator } = require('npm-dts');

new dtsGenerator({
entry: 'src/index.ts',
output: 'dist/index.d.ts',
}).generate();

/** @type {import('esbuild').BuildOptions} */
const sharedConfig = {
entryPoints: ['src/index.ts'],
bundle: true,
minify: false,
external: Object.keys(dependencies).concat(
Object.keys(peerDependencies || {}),
),
};

build({
...sharedConfig,
platform: 'node', // for CJS
outfile: 'dist/index.js',
});

build({
...sharedConfig,
outfile: 'dist/index.esm.js',
platform: 'neutral', // for ESM
format: 'esm',
});
116 changes: 0 additions & 116 deletions dist/dashboard.d.ts

This file was deleted.

79 changes: 0 additions & 79 deletions dist/dashboard.js

This file was deleted.

Loading

0 comments on commit c168470

Please sign in to comment.