mirror of
https://github.com/openpgpjs/openpgpjs.git
synced 2025-11-24 06:25:50 +00:00
Rollup: change config option capitalization
This commit is contained in:
parent
773b6c7364
commit
f927629c26
4
.github/workflows/tests.yml
vendored
4
.github/workflows/tests.yml
vendored
@ -114,7 +114,7 @@ jobs:
|
||||
|
||||
- name: Run browser tests (lightweight) # overwrite test/lib
|
||||
run: |
|
||||
npm run build-test -- --configTestLightweightBuild
|
||||
npm run build-test -- --config-test-lightweight-build
|
||||
npm run test-browser:ci -- --static-logging
|
||||
|
||||
test-browsers-compatibility:
|
||||
@ -162,7 +162,7 @@ jobs:
|
||||
|
||||
- name: Run browserstack tests (lightweight) # overwrite test/lib
|
||||
run: |
|
||||
npm run build-test -- --configTestLightweightBuild
|
||||
npm run build-test -- --config-test-lightweight-build
|
||||
npm run test-browserstack -- --static-logging
|
||||
env:
|
||||
LIGHTWEIGHT: true
|
||||
|
||||
@ -43,7 +43,7 @@
|
||||
],
|
||||
"scripts": {
|
||||
"build": "rollup --config",
|
||||
"build-test": "npm run build -- --configBuildOnly=test",
|
||||
"build-test": "npm run build -- --config-build-only=test",
|
||||
"prepare": "npm run build",
|
||||
"test": "mocha --timeout 120000 test/unittests.js",
|
||||
"test-type-definitions": "tsx test/typescript/definitions.ts",
|
||||
|
||||
@ -172,20 +172,20 @@ const getBrowserTestBuild = useLightweightBuild => ({
|
||||
* https://rollupjs.org/command-line-interface/#configuration-files
|
||||
*
|
||||
* The custom options we support are:
|
||||
* @param commandLineArgs.configBuildOnly {'dist'|'node'|'lightweight'|'test'} to specify a build target;
|
||||
* defaults to 'dist', which does not build tests.
|
||||
* @param commandLineArgs.configTestLightweightBuild {Boolean}: in the context of building browser tests,
|
||||
* - "config-build-only": 'dist'|'node'|'lightweight'|'test'|string - to specify a build target;
|
||||
* defaults to 'dist', which does not build tests;
|
||||
* - "config-test-lightweight-build": Boolean - in the context of building browser tests,
|
||||
* whether the lightweight build should be included instead of the standard one
|
||||
*/
|
||||
export default commandLineArgs => Object.assign([
|
||||
nodeBuild,
|
||||
fullBrowserBuild,
|
||||
lightweightBrowserBuild,
|
||||
getBrowserTestBuild(commandLineArgs.configTestLightweightBuild)
|
||||
getBrowserTestBuild(commandLineArgs['config-test-lightweight-build'])
|
||||
].filter(rollupConfig => {
|
||||
rollupConfig.output = rollupConfig.output.filter(output => {
|
||||
return (output.file || output.dir + '/' + output.entryFileNames).includes(
|
||||
commandLineArgs.configBuildOnly || 'dist' // Don't build test bundle by default.
|
||||
commandLineArgs['config-build-only'] || 'dist' // Don't build test bundle by default.
|
||||
);
|
||||
});
|
||||
return rollupConfig.output.length;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user