-
Notifications
You must be signed in to change notification settings - Fork 4
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 #5 from flybywiresim/feat/use-static-lib
refactor: use simconnect static lib
- Loading branch information
Showing
7 changed files
with
4,992 additions
and
8,997 deletions.
There are no files selected for viewing
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,35 +1,33 @@ | ||
'use strict'; | ||
|
||
import commonjs from '@rollup/plugin-commonjs'; | ||
import copy from 'rollup-plugin-copy'; | ||
import typescript from 'rollup-plugin-typescript2'; | ||
|
||
import packageJson from './package.json'; | ||
|
||
export default { | ||
input: 'src/index.ts', | ||
output: [ | ||
{ | ||
file: packageJson.main, | ||
format: 'cjs', | ||
sourcemap: true, | ||
}, | ||
{ | ||
file: packageJson.module, | ||
format: 'esm', | ||
sourcemap: true, | ||
}, | ||
], | ||
plugins: [ | ||
commonjs(), | ||
typescript({ | ||
useTsconfigDeclarationDir: true, | ||
exclude: ['**/*.test.ts', '**/*.spec.ts', 'examples/**/*.ts'], | ||
}), | ||
copy({ | ||
targets: [ | ||
{ src: 'src/bindings/simconnect/build/Release/simconnect.node', dest: 'dist/libs/' }, | ||
], | ||
}), | ||
], | ||
}; | ||
'use strict'; | ||
|
||
import commonjs from '@rollup/plugin-commonjs'; | ||
import copy from 'rollup-plugin-copy'; | ||
import typescript from 'rollup-plugin-typescript2'; | ||
|
||
export default { | ||
input: 'src/index.ts', | ||
output: [ | ||
{ | ||
file: 'dist/index.js', | ||
format: 'cjs', | ||
sourcemap: true, | ||
}, | ||
{ | ||
file: 'dist/index.esm.js', | ||
format: 'esm', | ||
sourcemap: true, | ||
}, | ||
], | ||
plugins: [ | ||
commonjs(), | ||
typescript({ | ||
useTsconfigDeclarationDir: true, | ||
exclude: ['**/*.test.ts', '**/*.spec.ts', 'examples/**/*.ts'], | ||
}), | ||
copy({ | ||
targets: [ | ||
{ src: 'src/bindings/simconnect/build/Release/simconnect.node', dest: 'dist/libs/' }, | ||
], | ||
}), | ||
], | ||
}; |
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
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