diff --git a/packages/@postdfm/ast/src/astNode.ts b/packages/@postdfm/ast/src/astNode.ts index 5f05f448..8eafb5a6 100644 --- a/packages/@postdfm/ast/src/astNode.ts +++ b/packages/@postdfm/ast/src/astNode.ts @@ -1,5 +1,5 @@ -import { ASTType } from "./astType"; -import { ASTRaws } from "./astRaws"; +import { ASTType } from "@postdfm/ast/astType"; +import { ASTRaws } from "@postdfm/ast/astRaws"; export class ASTNode { public astType: ASTType; diff --git a/packages/@postdfm/ast/src/index.ts b/packages/@postdfm/ast/src/index.ts index 0f36b0bc..54275e82 100644 --- a/packages/@postdfm/ast/src/index.ts +++ b/packages/@postdfm/ast/src/index.ts @@ -1,35 +1,35 @@ -export { ASTType } from "./astType"; -export { ASTRaws } from "./astRaws"; -export { ASTNode } from "./astNode"; +export { ASTType } from "@postdfm/ast/astType"; +export { ASTRaws } from "@postdfm/ast/astRaws"; +export { ASTNode } from "@postdfm/ast/astNode"; -export { Keywords } from "./keywords"; +export { Keywords } from "@postdfm/ast/keywords"; -export { Value } from "./value/value"; -export { StringValue } from "./value/stringValue"; -export { ControlString } from "./value/controlString"; -export { LiteralString } from "./value/literalString"; -export { BinaryStringValue } from "./value/binaryStringValue"; -export { IntegerValue } from "./value/integerValue"; -export { HexCodeValue } from "./value/hexCodeValue"; -export { DoubleValue } from "./value/doubleValue"; -export { SingleValue } from "./value/singleValue"; -export { CurrencyValue } from "./value/currencyValue"; -export { DateTimeValue } from "./value/dateTimeValue"; -export { BooleanValue } from "./value/booleanValue"; -export { IdentifierValue } from "./value/identifierValue"; +export { Value } from "@postdfm/ast/value/value"; +export { StringValue } from "@postdfm/ast/value/stringValue"; +export { ControlString } from "@postdfm/ast/value/controlString"; +export { LiteralString } from "@postdfm/ast/value/literalString"; +export { BinaryStringValue } from "@postdfm/ast/value/binaryStringValue"; +export { IntegerValue } from "@postdfm/ast/value/integerValue"; +export { HexCodeValue } from "@postdfm/ast/value/hexCodeValue"; +export { DoubleValue } from "@postdfm/ast/value/doubleValue"; +export { SingleValue } from "@postdfm/ast/value/singleValue"; +export { CurrencyValue } from "@postdfm/ast/value/currencyValue"; +export { DateTimeValue } from "@postdfm/ast/value/dateTimeValue"; +export { BooleanValue } from "@postdfm/ast/value/booleanValue"; +export { IdentifierValue } from "@postdfm/ast/value/identifierValue"; -export { Item } from "./item"; +export { Item } from "@postdfm/ast/item"; -export { List } from "./list/list"; -export { BinaryStringList } from "./list/binaryStringList"; -export { IdentifierList } from "./list/identifierList"; -export { VariantList } from "./list/variantList"; -export { ItemList } from "./list/itemList"; +export { List } from "@postdfm/ast/list/list"; +export { BinaryStringList } from "@postdfm/ast/list/binaryStringList"; +export { IdentifierList } from "@postdfm/ast/list/identifierList"; +export { VariantList } from "@postdfm/ast/list/variantList"; +export { ItemList } from "@postdfm/ast/list/itemList"; -export { Property } from "./property"; +export { Property } from "@postdfm/ast/property"; -export { ObjectKind } from "./objectKind"; +export { ObjectKind } from "@postdfm/ast/objectKind"; -export { DObject } from "./object"; +export { DObject } from "@postdfm/ast/object"; -export { Root } from "./root"; +export { Root } from "@postdfm/ast/root"; diff --git a/packages/@postdfm/ast/src/item.ts b/packages/@postdfm/ast/src/item.ts index 904b8f73..59f68d25 100644 --- a/packages/@postdfm/ast/src/item.ts +++ b/packages/@postdfm/ast/src/item.ts @@ -1,7 +1,7 @@ -import { ASTNode } from "./astNode"; -import { ASTRaws } from "./astRaws"; -import { ASTType } from "./astType"; -import { Property } from "./property"; +import { ASTNode } from "@postdfm/ast/astNode"; +import { ASTRaws } from "@postdfm/ast/astRaws"; +import { ASTType } from "@postdfm/ast/astType"; +import { Property } from "@postdfm/ast/property"; interface ItemRaws extends ASTRaws { afterItem?: string; diff --git a/packages/@postdfm/ast/src/list/anyList.ts b/packages/@postdfm/ast/src/list/anyList.ts index 9d4c53e0..361b3204 100644 --- a/packages/@postdfm/ast/src/list/anyList.ts +++ b/packages/@postdfm/ast/src/list/anyList.ts @@ -1,7 +1,7 @@ -import { BinaryStringList } from "./binaryStringList"; -import { IdentifierList } from "./identifierList"; -import { VariantList } from "./variantList"; -import { ItemList } from "./itemList"; +import { BinaryStringList } from "@postdfm/ast/list/binaryStringList"; +import { IdentifierList } from "@postdfm/ast/list/identifierList"; +import { VariantList } from "@postdfm/ast/list/variantList"; +import { ItemList } from "@postdfm/ast/list/itemList"; export type AnyList = | BinaryStringList diff --git a/packages/@postdfm/ast/src/list/binaryStringList.ts b/packages/@postdfm/ast/src/list/binaryStringList.ts index 4f0f900b..75e920d4 100644 --- a/packages/@postdfm/ast/src/list/binaryStringList.ts +++ b/packages/@postdfm/ast/src/list/binaryStringList.ts @@ -1,6 +1,6 @@ -import { ASTType } from "../astType"; -import { BinaryStringValue } from "../value/binaryStringValue"; -import { List } from "./list"; +import { ASTType } from "@postdfm/ast/astType"; +import { BinaryStringValue } from "@postdfm/ast/value/binaryStringValue"; +import { List } from "@postdfm/ast/list/list"; export class BinaryStringList extends List { constructor(values?: BinaryStringValue[]) { diff --git a/packages/@postdfm/ast/src/list/identifierList.ts b/packages/@postdfm/ast/src/list/identifierList.ts index 63ca14b0..8a777e9d 100644 --- a/packages/@postdfm/ast/src/list/identifierList.ts +++ b/packages/@postdfm/ast/src/list/identifierList.ts @@ -1,6 +1,6 @@ -import { ASTType } from "../astType"; -import { IdentifierValue } from "../value/identifierValue"; -import { List } from "./list"; +import { ASTType } from "@postdfm/ast/astType"; +import { IdentifierValue } from "@postdfm/ast/value/identifierValue"; +import { List } from "@postdfm/ast/list/list"; export class IdentifierList extends List { constructor(values?: IdentifierValue[]) { diff --git a/packages/@postdfm/ast/src/list/itemList.ts b/packages/@postdfm/ast/src/list/itemList.ts index 3d7bd8d8..000e915a 100644 --- a/packages/@postdfm/ast/src/list/itemList.ts +++ b/packages/@postdfm/ast/src/list/itemList.ts @@ -1,6 +1,6 @@ -import { ASTType } from "../astType"; -import { Item } from "../item"; -import { List } from "./list"; +import { ASTType } from "@postdfm/ast/astType"; +import { Item } from "@postdfm/ast/item"; +import { List } from "@postdfm/ast/list/list"; export class ItemList extends List { constructor(values?: Item[]) { diff --git a/packages/@postdfm/ast/src/list/list.ts b/packages/@postdfm/ast/src/list/list.ts index 3664a995..9e8784dc 100644 --- a/packages/@postdfm/ast/src/list/list.ts +++ b/packages/@postdfm/ast/src/list/list.ts @@ -1,6 +1,6 @@ -import { ASTNode } from "../astNode"; -import { ASTRaws } from "../astRaws"; -import { ASTType } from "../astType"; +import { ASTNode } from "@postdfm/ast/astNode"; +import { ASTRaws } from "@postdfm/ast/astRaws"; +import { ASTType } from "@postdfm/ast/astType"; interface ListRaws extends ASTRaws { afterOpen?: string; diff --git a/packages/@postdfm/ast/src/list/variantList.ts b/packages/@postdfm/ast/src/list/variantList.ts index b717e31e..c915f706 100644 --- a/packages/@postdfm/ast/src/list/variantList.ts +++ b/packages/@postdfm/ast/src/list/variantList.ts @@ -1,6 +1,6 @@ -import { ASTType } from "../astType"; -import { VariantValue } from "../value/variantValue"; -import { List } from "./list"; +import { ASTType } from "@postdfm/ast/astType"; +import { VariantValue } from "@postdfm/ast/value/variantValue"; +import { List } from "@postdfm/ast/list/list"; export class VariantList extends List { constructor(values?: Array) { diff --git a/packages/@postdfm/ast/src/object.ts b/packages/@postdfm/ast/src/object.ts index f3a9707d..e826bbe2 100644 --- a/packages/@postdfm/ast/src/object.ts +++ b/packages/@postdfm/ast/src/object.ts @@ -1,8 +1,8 @@ -import { ASTNode } from "./astNode"; -import { ASTRaws } from "./astRaws"; -import { ASTType } from "./astType"; -import { ObjectKind } from "./objectKind"; -import { Property } from "./property"; +import { ASTNode } from "@postdfm/ast/astNode"; +import { ASTRaws } from "@postdfm/ast/astRaws"; +import { ASTType } from "@postdfm/ast/astType"; +import { ObjectKind } from "@postdfm/ast/objectKind"; +import { Property } from "@postdfm/ast/property"; interface ObjectRaws extends ASTRaws { beforeDef?: string; diff --git a/packages/@postdfm/ast/src/property.ts b/packages/@postdfm/ast/src/property.ts index 1133bfa4..8027b438 100644 --- a/packages/@postdfm/ast/src/property.ts +++ b/packages/@postdfm/ast/src/property.ts @@ -1,8 +1,8 @@ -import { ASTNode } from "./astNode"; -import { ASTRaws } from "./astRaws"; -import { ASTType } from "./astType"; -import { AnyList } from "./list/anyList"; -import { VariantValue } from "./value/variantValue"; +import { ASTNode } from "@postdfm/ast/astNode"; +import { ASTRaws } from "@postdfm/ast/astRaws"; +import { ASTType } from "@postdfm/ast/astType"; +import { AnyList } from "@postdfm/ast/list/anyList"; +import { VariantValue } from "@postdfm/ast/value/variantValue"; interface PropertyRaws extends ASTRaws { afterName?: string; diff --git a/packages/@postdfm/ast/src/root.ts b/packages/@postdfm/ast/src/root.ts index ab48048d..a3cd1e41 100644 --- a/packages/@postdfm/ast/src/root.ts +++ b/packages/@postdfm/ast/src/root.ts @@ -1,6 +1,6 @@ -import { ASTNode } from "./astNode"; -import { ASTType } from "./astType"; -import { DObject } from "./object"; +import { ASTNode } from "@postdfm/ast/astNode"; +import { ASTType } from "@postdfm/ast/astType"; +import { DObject } from "@postdfm/ast/object"; export class Root extends ASTNode { public child?: DObject; diff --git a/packages/@postdfm/ast/src/value/binaryStringValue.ts b/packages/@postdfm/ast/src/value/binaryStringValue.ts index 44c1ae4a..cadba155 100644 --- a/packages/@postdfm/ast/src/value/binaryStringValue.ts +++ b/packages/@postdfm/ast/src/value/binaryStringValue.ts @@ -1,5 +1,5 @@ -import { ASTType } from "../astType"; -import { Value } from "./value"; +import { ASTType } from "@postdfm/ast/astType"; +import { Value } from "@postdfm/ast/value/value"; export class BinaryStringValue extends Value { constructor(value?: string) { diff --git a/packages/@postdfm/ast/src/value/booleanValue.ts b/packages/@postdfm/ast/src/value/booleanValue.ts index a65b8dc3..0661b246 100644 --- a/packages/@postdfm/ast/src/value/booleanValue.ts +++ b/packages/@postdfm/ast/src/value/booleanValue.ts @@ -1,5 +1,5 @@ -import { ASTType } from "../astType"; -import { Value } from "./value"; +import { ASTType } from "@postdfm/ast/astType"; +import { Value } from "@postdfm/ast/value/value"; export class BooleanValue extends Value { constructor(value: boolean) { diff --git a/packages/@postdfm/ast/src/value/controlString.ts b/packages/@postdfm/ast/src/value/controlString.ts index 3afdef68..da1af251 100644 --- a/packages/@postdfm/ast/src/value/controlString.ts +++ b/packages/@postdfm/ast/src/value/controlString.ts @@ -1,5 +1,5 @@ -import { ASTType } from "../astType"; -import { StringValuePart } from "./stringValuePart"; +import { ASTType } from "@postdfm/ast/astType"; +import { StringValuePart } from "@postdfm/ast/value/stringValuePart"; export class ControlString extends StringValuePart { constructor(value?: string) { diff --git a/packages/@postdfm/ast/src/value/currencyValue.ts b/packages/@postdfm/ast/src/value/currencyValue.ts index fc6fac98..6361bca0 100644 --- a/packages/@postdfm/ast/src/value/currencyValue.ts +++ b/packages/@postdfm/ast/src/value/currencyValue.ts @@ -1,6 +1,6 @@ -import { ASTType } from "../astType"; -import { Float } from "./float"; -import { Value } from "./value"; +import { ASTType } from "@postdfm/ast/astType"; +import { Float } from "@postdfm/ast/value/float"; +import { Value } from "@postdfm/ast/value/value"; export class CurrencyValue extends Value { constructor(value?: Float) { diff --git a/packages/@postdfm/ast/src/value/dateTimeValue.ts b/packages/@postdfm/ast/src/value/dateTimeValue.ts index 53db6fed..23ddfd23 100644 --- a/packages/@postdfm/ast/src/value/dateTimeValue.ts +++ b/packages/@postdfm/ast/src/value/dateTimeValue.ts @@ -1,6 +1,6 @@ -import { ASTType } from "../astType"; -import { Float } from "./float"; -import { Value } from "./value"; +import { ASTType } from "@postdfm/ast/astType"; +import { Float } from "@postdfm/ast/value/float"; +import { Value } from "@postdfm/ast/value/value"; export class DateTimeValue extends Value { constructor(value?: Float) { diff --git a/packages/@postdfm/ast/src/value/doubleValue.ts b/packages/@postdfm/ast/src/value/doubleValue.ts index d039f331..e22d8ade 100644 --- a/packages/@postdfm/ast/src/value/doubleValue.ts +++ b/packages/@postdfm/ast/src/value/doubleValue.ts @@ -1,6 +1,6 @@ -import { ASTType } from "../astType"; -import { Float } from "./float"; -import { Value } from "./value"; +import { ASTType } from "@postdfm/ast/astType"; +import { Float } from "@postdfm/ast/value/float"; +import { Value } from "@postdfm/ast/value/value"; export class DoubleValue extends Value { constructor(value?: Float) { diff --git a/packages/@postdfm/ast/src/value/hexCodeValue.ts b/packages/@postdfm/ast/src/value/hexCodeValue.ts index c6dd504c..66e4666a 100644 --- a/packages/@postdfm/ast/src/value/hexCodeValue.ts +++ b/packages/@postdfm/ast/src/value/hexCodeValue.ts @@ -1,5 +1,5 @@ -import { ASTType } from "../astType"; -import { Value } from "./value"; +import { ASTType } from "@postdfm/ast/astType"; +import { Value } from "@postdfm/ast/value/value"; export class HexCodeValue extends Value { constructor(value?: string) { diff --git a/packages/@postdfm/ast/src/value/identifierValue.ts b/packages/@postdfm/ast/src/value/identifierValue.ts index b71db9df..5163c586 100644 --- a/packages/@postdfm/ast/src/value/identifierValue.ts +++ b/packages/@postdfm/ast/src/value/identifierValue.ts @@ -1,5 +1,5 @@ -import { ASTType } from "../astType"; -import { Value } from "./value"; +import { ASTType } from "@postdfm/ast/astType"; +import { Value } from "@postdfm/ast/value/value"; export class IdentifierValue extends Value { constructor(value: string) { diff --git a/packages/@postdfm/ast/src/value/integerValue.ts b/packages/@postdfm/ast/src/value/integerValue.ts index c62ce85a..e5014e59 100644 --- a/packages/@postdfm/ast/src/value/integerValue.ts +++ b/packages/@postdfm/ast/src/value/integerValue.ts @@ -1,5 +1,5 @@ -import { ASTType } from "../astType"; -import { Value } from "./value"; +import { ASTType } from "@postdfm/ast/astType"; +import { Value } from "@postdfm/ast/value/value"; export class IntegerValue extends Value { constructor(value?: number) { diff --git a/packages/@postdfm/ast/src/value/literalString.ts b/packages/@postdfm/ast/src/value/literalString.ts index bee3e121..7810aecb 100644 --- a/packages/@postdfm/ast/src/value/literalString.ts +++ b/packages/@postdfm/ast/src/value/literalString.ts @@ -1,5 +1,5 @@ -import { ASTType } from "../astType"; -import { StringValuePart } from "./stringValuePart"; +import { ASTType } from "@postdfm/ast/astType"; +import { StringValuePart } from "@postdfm/ast/value/stringValuePart"; export class LiteralString extends StringValuePart { constructor(value?: string) { diff --git a/packages/@postdfm/ast/src/value/singleValue.ts b/packages/@postdfm/ast/src/value/singleValue.ts index 474cca1a..abb683fd 100644 --- a/packages/@postdfm/ast/src/value/singleValue.ts +++ b/packages/@postdfm/ast/src/value/singleValue.ts @@ -1,6 +1,6 @@ -import { ASTType } from "../astType"; -import { Float } from "./float"; -import { Value } from "./value"; +import { ASTType } from "@postdfm/ast/astType"; +import { Float } from "@postdfm/ast/value/float"; +import { Value } from "@postdfm/ast/value/value"; export class SingleValue extends Value { constructor(value?: Float) { diff --git a/packages/@postdfm/ast/src/value/stringValue.ts b/packages/@postdfm/ast/src/value/stringValue.ts index 1408c48e..90c460c0 100644 --- a/packages/@postdfm/ast/src/value/stringValue.ts +++ b/packages/@postdfm/ast/src/value/stringValue.ts @@ -1,6 +1,6 @@ -import { ASTType } from "../astType"; -import { StringValuePart } from "./stringValuePart"; -import { Value } from "./value"; +import { ASTType } from "@postdfm/ast/astType"; +import { StringValuePart } from "@postdfm/ast/value/stringValuePart"; +import { Value } from "@postdfm/ast/value/value"; export class StringValue extends Value { constructor(value?: StringValuePart[]) { diff --git a/packages/@postdfm/ast/src/value/stringValuePart.ts b/packages/@postdfm/ast/src/value/stringValuePart.ts index 5533d97c..cdba63db 100644 --- a/packages/@postdfm/ast/src/value/stringValuePart.ts +++ b/packages/@postdfm/ast/src/value/stringValuePart.ts @@ -1,5 +1,5 @@ -import { ASTType } from "../astType"; -import { Value } from "./value"; +import { ASTType } from "@postdfm/ast/astType"; +import { Value } from "@postdfm/ast/value/value"; export class StringValuePart extends Value { constructor(astType: ASTType, value?: string) { diff --git a/packages/@postdfm/ast/src/value/value.ts b/packages/@postdfm/ast/src/value/value.ts index e8138a03..7bde4e0c 100644 --- a/packages/@postdfm/ast/src/value/value.ts +++ b/packages/@postdfm/ast/src/value/value.ts @@ -1,5 +1,5 @@ -import { ASTNode } from "../astNode"; -import { ASTType } from "../astType"; +import { ASTNode } from "@postdfm/ast/astNode"; +import { ASTType } from "@postdfm/ast/astType"; export class Value extends ASTNode { public value: T; diff --git a/packages/@postdfm/ast/src/value/variantValue.ts b/packages/@postdfm/ast/src/value/variantValue.ts index e8f144ab..d3bba4e3 100644 --- a/packages/@postdfm/ast/src/value/variantValue.ts +++ b/packages/@postdfm/ast/src/value/variantValue.ts @@ -1,16 +1,16 @@ -import { BinaryStringValue } from "./binaryStringValue"; -import { BooleanValue } from "./booleanValue"; -import { ControlString } from "./controlString"; -import { CurrencyValue } from "./currencyValue"; -import { DateTimeValue } from "./dateTimeValue"; -import { DoubleValue } from "./doubleValue"; -import { HexCodeValue } from "./hexCodeValue"; -import { IdentifierValue } from "./identifierValue"; -import { IntegerValue } from "./integerValue"; -import { LiteralString } from "./literalString"; -import { SingleValue } from "./singleValue"; -import { StringValue } from "./stringValue"; -import { StringValuePart } from "./stringValuePart"; +import { BinaryStringValue } from "@postdfm/ast/value/binaryStringValue"; +import { BooleanValue } from "@postdfm/ast/value/booleanValue"; +import { ControlString } from "@postdfm/ast/value/controlString"; +import { CurrencyValue } from "@postdfm/ast/value/currencyValue"; +import { DateTimeValue } from "@postdfm/ast/value/dateTimeValue"; +import { DoubleValue } from "@postdfm/ast/value/doubleValue"; +import { HexCodeValue } from "@postdfm/ast/value/hexCodeValue"; +import { IdentifierValue } from "@postdfm/ast/value/identifierValue"; +import { IntegerValue } from "@postdfm/ast/value/integerValue"; +import { LiteralString } from "@postdfm/ast/value/literalString"; +import { SingleValue } from "@postdfm/ast/value/singleValue"; +import { StringValue } from "@postdfm/ast/value/stringValue"; +import { StringValuePart } from "@postdfm/ast/value/stringValuePart"; export type VariantValue = | BinaryStringValue diff --git a/packages/@postdfm/ast/tsconfig.json b/packages/@postdfm/ast/tsconfig.json index 2e56a4f9..ceb0aeaf 100644 --- a/packages/@postdfm/ast/tsconfig.json +++ b/packages/@postdfm/ast/tsconfig.json @@ -4,7 +4,7 @@ "baseUrl": ".", "outDir": "dist", "paths": { - "*": ["./src/*"] + "@postdfm/ast/*": ["./src/*"] } }, "include": ["src/**/*"] diff --git a/packages/@postdfm/ast2dfm/src/index.ts b/packages/@postdfm/ast2dfm/src/index.ts index b1cd11e8..b0f61287 100644 --- a/packages/@postdfm/ast2dfm/src/index.ts +++ b/packages/@postdfm/ast2dfm/src/index.ts @@ -1,5 +1,5 @@ import { Root } from "@postdfm/ast"; -import Stringifier from "./stringifier"; +import Stringifier from "@postdfm/ast2dfm/stringifier"; function stringify(ast: Root): string { const stringifier = new Stringifier(); diff --git a/packages/@postdfm/ast2dfm/tsconfig.json b/packages/@postdfm/ast2dfm/tsconfig.json index 2e56a4f9..0e96927e 100644 --- a/packages/@postdfm/ast2dfm/tsconfig.json +++ b/packages/@postdfm/ast2dfm/tsconfig.json @@ -4,7 +4,7 @@ "baseUrl": ".", "outDir": "dist", "paths": { - "*": ["./src/*"] + "@postdfm/ast2dfm/*": ["./src/*"] } }, "include": ["src/**/*"] diff --git a/packages/@postdfm/dfm2ast/src/index.ts b/packages/@postdfm/dfm2ast/src/index.ts index 80e4878f..1d278ac0 100644 --- a/packages/@postdfm/dfm2ast/src/index.ts +++ b/packages/@postdfm/dfm2ast/src/index.ts @@ -7,7 +7,7 @@ const { Parser, Grammar } = (< { default: { Parser: typeof ParserType; Grammar: typeof GrammarType } } >(nearleyPkg)).default; -import grammar from "./grammar"; +import grammar from "@postdfm/dfm2ast/grammar"; function parse(dfm: string): Root { const parser = new Parser(Grammar.fromCompiled(grammar)); diff --git a/packages/@postdfm/dfm2ast/tsconfig.json b/packages/@postdfm/dfm2ast/tsconfig.json index 2e56a4f9..1892d924 100644 --- a/packages/@postdfm/dfm2ast/tsconfig.json +++ b/packages/@postdfm/dfm2ast/tsconfig.json @@ -4,7 +4,7 @@ "baseUrl": ".", "outDir": "dist", "paths": { - "*": ["./src/*"] + "@postdfm/dfm2ast/*": ["./src/*"] } }, "include": ["src/**/*"] diff --git a/packages/@postdfm/plugin/src/index.ts b/packages/@postdfm/plugin/src/index.ts index a1885262..271daeef 100644 --- a/packages/@postdfm/plugin/src/index.ts +++ b/packages/@postdfm/plugin/src/index.ts @@ -1,2 +1,2 @@ -export { Hooks } from "./hooks"; -export { Plugin } from "./plugin"; +export { Hooks } from "@postdfm/plugin/hooks"; +export { Plugin } from "@postdfm/plugin/plugin"; diff --git a/packages/@postdfm/plugin/src/plugin.ts b/packages/@postdfm/plugin/src/plugin.ts index 7cb2877f..2d8531f5 100644 --- a/packages/@postdfm/plugin/src/plugin.ts +++ b/packages/@postdfm/plugin/src/plugin.ts @@ -1,4 +1,4 @@ -import type { Hooks } from "./hooks"; +import type { Hooks } from "@postdfm/plugin/hooks"; export abstract class Plugin { abstract install(hooks: Hooks): void; diff --git a/packages/@postdfm/plugin/tsconfig.json b/packages/@postdfm/plugin/tsconfig.json index 2e56a4f9..0f5892b9 100644 --- a/packages/@postdfm/plugin/tsconfig.json +++ b/packages/@postdfm/plugin/tsconfig.json @@ -4,7 +4,7 @@ "baseUrl": ".", "outDir": "dist", "paths": { - "*": ["./src/*"] + "@postdfm/plugin/*": ["./src/*"] } }, "include": ["src/**/*"] diff --git a/packages/@postdfm/transform/src/index.ts b/packages/@postdfm/transform/src/index.ts index 34193be8..f436db36 100644 --- a/packages/@postdfm/transform/src/index.ts +++ b/packages/@postdfm/transform/src/index.ts @@ -1 +1 @@ -export { Transformer } from "./transformer"; +export { Transformer } from "@postdfm/transform/transformer"; diff --git a/packages/@postdfm/transform/tsconfig.json b/packages/@postdfm/transform/tsconfig.json index 2e56a4f9..817f07d2 100644 --- a/packages/@postdfm/transform/tsconfig.json +++ b/packages/@postdfm/transform/tsconfig.json @@ -4,7 +4,7 @@ "baseUrl": ".", "outDir": "dist", "paths": { - "*": ["./src/*"] + "@postdfm/transform/*": ["./src/*"] } }, "include": ["src/**/*"]