feat: change qix typescript definition to @qlik/api (#1493)

BREAKING CHANGE: @qlik/api typescript definition is not compatible with @types/qlik-engineapi

Signed-off-by: Johan Enell <johan.enell@qlik.com>
This commit is contained in:
Johan Enell
2024-03-19 15:13:33 +01:00
committed by GitHub
parent 35af332a83
commit f7b631051b
19 changed files with 189 additions and 195 deletions

View File

@@ -73,7 +73,7 @@ const GLOBALS = {
const watch = process.argv.indexOf('-w') > 2;
const TYPES_SCOPE_RX = /^@types\//;
const TYPES_SCOPE_RX = /^@qlik\/api/;
const config = ({ format = 'umd', debug = false, file, targetPkg }) => {
const umdName = targetName
@@ -82,6 +82,8 @@ const config = ({ format = 'umd', debug = false, file, targetPkg }) => {
.join('');
if (Object.keys(targetPkg.dependencies || {}).filter((dep) => !TYPES_SCOPE_RX.test(dep)).length) {
console.log(targetPkg.name);
console.log(JSON.stringify(Object.keys(targetPkg.dependencies || {}).filter((dep) => !TYPES_SCOPE_RX.test(dep))));
throw new Error('Dependencies for a web javascript library makes no sense');
}