From 8b9101ebe02f72579049c092369dce54388cd7bc Mon Sep 17 00:00:00 2001 From: Slava Leleka Date: Wed, 19 Jul 2023 18:21:39 +0300 Subject: [PATCH] fix agtree exports Squashed commit of the following: commit de0f67fa6210144fc6d25ff416a47729647dda34 Merge: 058bd8c5 cb73a90d Author: Slava Leleka Date: Wed Jul 19 14:55:57 2023 +0300 Merge branch 'master' into fix/adgtree-exports commit 058bd8c5b8cdf80fddb0bfc69b3632f9ea78a941 Author: Slava Leleka Date: Wed Jul 19 14:22:44 2023 +0300 fix exports --- packages/agtree/src/index.ts | 88 +++++++++++++++++------------------ packages/agtree/tsconfig.json | 3 +- 2 files changed, 46 insertions(+), 45 deletions(-) diff --git a/packages/agtree/src/index.ts b/packages/agtree/src/index.ts index 7e4d0687a5..868f9937e9 100644 --- a/packages/agtree/src/index.ts +++ b/packages/agtree/src/index.ts @@ -5,53 +5,53 @@ // Parser export { RuleParser } from './parser/rule'; export { - Agent, - AgentCommentRule, - AnyCommentRule, - AnyCosmeticRule, - AnyExpressionNode, - AnyOperator, - AnyRule, - CommentBase, + type Agent, + type AgentCommentRule, + type AnyCommentRule, + type AnyCosmeticRule, + type AnyExpressionNode, + type AnyOperator, + type AnyRule, + type CommentBase, CommentMarker, - CommentRule, + type CommentRule, CommentRuleType, - ConfigCommentRule, - CosmeticRule, + type ConfigCommentRule, + type CosmeticRule, CosmeticRuleSeparator, CosmeticRuleType, - CssInjectionRule, - CssInjectionRuleBody, - Domain, - DomainList, - DomainListSeparator, - ElementHidingRule, - ElementHidingRuleBody, - EmptyRule, - ExpressionOperatorNode, - ExpressionParenthesisNode, - ExpressionVariableNode, - FilterList, - Hint, - HintCommentRule, - HtmlFilteringRule, - HtmlFilteringRuleBody, - JsInjectionRule, - Location, - LocationRange, - MetadataCommentRule, - Modifier, - ModifierList, - NetworkRule, - Node, - Parameter, - ParameterList, - PreProcessorCommentRule, - RuleBase, + type CssInjectionRule, + type CssInjectionRuleBody, + type Domain, + type DomainList, + type DomainListSeparator, + type ElementHidingRule, + type ElementHidingRuleBody, + type EmptyRule, + type ExpressionOperatorNode, + type ExpressionParenthesisNode, + type ExpressionVariableNode, + type FilterList, + type Hint, + type HintCommentRule, + type HtmlFilteringRule, + type HtmlFilteringRuleBody, + type JsInjectionRule, + type Location, + type LocationRange, + type MetadataCommentRule, + type Modifier, + type ModifierList, + type NetworkRule, + type Node, + type Parameter, + type ParameterList, + type PreProcessorCommentRule, + type RuleBase, RuleCategory, - ScriptletInjectionRule, - ScriptletInjectionRuleBody, - Value, + type ScriptletInjectionRule, + type ScriptletInjectionRuleBody, + type Value, } from './parser/common'; export { AdblockSyntaxError } from './parser/errors/adblock-syntax-error'; export { AgentCommentRuleParser } from './parser/comment/agent-rule'; @@ -97,11 +97,11 @@ export { UBO_SCRIPTLET_MASK, } from './utils/constants'; export { AdblockSyntax } from './utils/adblockers'; -export { CosmeticRuleSeparatorFinderResult, CosmeticRuleSeparatorUtils } from './utils/cosmetic-rule-separator'; +export { type CosmeticRuleSeparatorFinderResult, CosmeticRuleSeparatorUtils } from './utils/cosmetic-rule-separator'; export { CssTree } from './utils/csstree'; export { CssTreeNodeType, CssTreeParserContext } from './utils/csstree-constants'; export { DomainUtils } from './utils/domain'; -export { VariableTable, LogicalExpressionUtils } from './utils/logical-expression'; +export { type VariableTable, LogicalExpressionUtils } from './utils/logical-expression'; export { shiftLoc, locRange } from './utils/location'; // Constants diff --git a/packages/agtree/tsconfig.json b/packages/agtree/tsconfig.json index b937b8bade..296ff16f8b 100644 --- a/packages/agtree/tsconfig.json +++ b/packages/agtree/tsconfig.json @@ -15,6 +15,7 @@ "forceConsistentCasingInFileNames": true, "strict": true, "skipLibCheck": true, + "isolatedModules": true, "rootDir": "./" }, "include": [ @@ -30,4 +31,4 @@ "module": "ESNext" } } -} \ No newline at end of file +}