-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from iotum/jerry_hu/add-meeting-action
add meeting action
- Loading branch information
Showing
31 changed files
with
3,146 additions
and
1,495 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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', | ||
}); |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.