@teambit/schema 0.0.735 → 0.0.738
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/exceptions/index.js.map +1 -1
- package/dist/exceptions/parser-not-found.js.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/parser.d.ts +2 -2
- package/dist/parser.js.map +1 -1
- package/dist/schema-extract.task.js.map +1 -1
- package/dist/schema-extractor.js.map +1 -1
- package/dist/schema.aspect.js.map +1 -1
- package/dist/schema.cmd.d.ts +1 -11
- package/dist/schema.cmd.js.map +1 -1
- package/dist/schema.composition.js.map +1 -1
- package/dist/schema.graphql.js.map +1 -1
- package/dist/schema.main.runtime.d.ts +2 -2
- package/dist/schema.main.runtime.js.map +1 -1
- package/dist/schema.service.js.map +1 -1
- package/package-tar/teambit-schema-0.0.738.tgz +0 -0
- package/package.json +8 -8
- package/{preview-1652808661748.js → preview-1653227849497.js} +2 -2
- package/tsconfig.json +1 -1
- package/package-tar/teambit-schema-0.0.735.tgz +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export { ParserNotFound } from './parser-not-found';\n"],"mappings":";;;;;;;;;;;;AAAA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":["ParserNotFound","Error","constructor","filePath"],"sources":["parser-not-found.ts"],"sourcesContent":["export class ParserNotFound extends Error {\n constructor(readonly filePath: string) {\n super(`\nno parser is configured to apply on file path: ${filePath}.\\n\nplease use an extension to handle your file extension formats.\n`);\n }\n}\n"],"mappings":";;;;;;;AAAO,MAAMA,cAAN,SAA6BC,KAA7B,CAAmC;EACxCC,WAAW,CAAUC,QAAV,EAA4B;IACrC,MAAO;AACX,iDAAiDA,QAAS;AAC1D;AACA,CAHI;IADqC,KAAlBA,QAAkB,GAAlBA,QAAkB;EAKtC;;AANuC"}
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export { Parser } from './parser';\nexport { SchemaExtractor } from './schema-extractor';\nexport type { SchemaMain } from './schema.main.runtime';\nexport { SchemaAspect } from './schema.aspect';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AAEA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA"}
|
package/dist/parser.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Export } from '@teambit/semantics.entities.semantic-schema';
|
|
2
2
|
export interface Parser {
|
|
3
3
|
/**
|
|
4
4
|
* regex to apply on which components compiler applies.
|
|
@@ -7,5 +7,5 @@ export interface Parser {
|
|
|
7
7
|
/**
|
|
8
8
|
* parse a module.
|
|
9
9
|
*/
|
|
10
|
-
parseModule(modulePath: string):
|
|
10
|
+
parseModule(modulePath: string): Export[];
|
|
11
11
|
}
|
package/dist/parser.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":[],"sources":["parser.ts"],"sourcesContent":["import { Export } from '@teambit/semantics.entities.semantic-schema';\n\nexport interface Parser {\n /**\n * regex to apply on which components compiler applies.\n */\n extension: RegExp;\n\n /**\n * parse a module.\n */\n parseModule(modulePath: string): Export[];\n}\n"],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":["SchemaExtract","constructor","aspectId","execute","Error"],"sources":["schema-extract.task.ts"],"sourcesContent":["import { BuildTask, BuiltTaskResult } from '@teambit/builder';\n\nexport class SchemaExtract implements BuildTask {\n name = 'schema-extraction';\n description = 'extract api schema for a set of components';\n\n constructor(readonly aspectId: string) {}\n\n execute(): Promise<BuiltTaskResult> {\n throw new Error('Method not implemented.');\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAEO,MAAMA,aAAN,CAAyC;EAI9CC,WAAW,CAAUC,QAAV,EAA4B;IAAA,KAAlBA,QAAkB,GAAlBA,QAAkB;IAAA,8CAHhC,mBAGgC;IAAA,qDAFzB,4CAEyB;EAAE;;EAEzCC,OAAO,GAA6B;IAClC,MAAM,IAAIC,KAAJ,CAAU,yBAAV,CAAN;EACD;;AAR6C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":[],"sources":["schema-extractor.ts"],"sourcesContent":["import { Component } from '@teambit/component';\nimport { APISchema } from '@teambit/semantics.entities.semantic-schema';\n\nexport interface SchemaExtractor {\n /**\n * extract a semantic schema from a component.\n */\n extract(component: Component): Promise<APISchema>;\n}\n"],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":["SchemaAspect","Aspect","create","id"],"sources":["schema.aspect.ts"],"sourcesContent":["import { Aspect } from '@teambit/harmony';\n\nexport const SchemaAspect = Aspect.create({\n id: 'teambit.semantics/schema',\n});\n"],"mappings":";;;;;;;AAAA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AAEO,MAAMA,YAAY,GAAGC,iBAAA,CAAOC,MAAP,CAAc;EACxCC,EAAE,EAAE;AADoC,CAAd,CAArB"}
|
package/dist/schema.cmd.d.ts
CHANGED
|
@@ -10,16 +10,6 @@ export declare class SchemaCommand implements Command {
|
|
|
10
10
|
options: CommandOptions;
|
|
11
11
|
constructor(schema: SchemaMain, component: ComponentMain);
|
|
12
12
|
report([idStr]: [any]): Promise<string>;
|
|
13
|
-
json([idStr]: [any]): Promise<
|
|
14
|
-
constructorName: string;
|
|
15
|
-
module: {
|
|
16
|
-
constructorName: string;
|
|
17
|
-
namespace: string | undefined;
|
|
18
|
-
exports: (Record<string, any> & {
|
|
19
|
-
constructorName: string;
|
|
20
|
-
})[];
|
|
21
|
-
};
|
|
22
|
-
filename: string;
|
|
23
|
-
}>;
|
|
13
|
+
json([idStr]: [any]): Promise<Record<string, any>>;
|
|
24
14
|
private getSchema;
|
|
25
15
|
}
|
package/dist/schema.cmd.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":["SchemaCommand","constructor","schema","component","report","idStr","getSchema","toStringPerType","json","toObject","host","getHost","id","resolveComponentId","get","ComponentNotFound"],"sources":["schema.cmd.ts"],"sourcesContent":["import { Command, CommandOptions } from '@teambit/cli';\nimport { ComponentMain } from '@teambit/component';\nimport { ComponentNotFound } from '@teambit/scope';\nimport { APISchema } from '@teambit/semantics.entities.semantic-schema';\nimport type { SchemaMain } from './schema.main.runtime';\n\nexport class SchemaCommand implements Command {\n name = 'schema <id>';\n description = 'shows the API schema of a certain component.';\n group = 'component';\n options = [['j', 'json', 'return the component data in json format']] as CommandOptions;\n\n constructor(private schema: SchemaMain, private component: ComponentMain) {}\n\n async report([idStr]) {\n const schema = await this.getSchema([idStr]);\n return schema.toStringPerType();\n }\n\n async json([idStr]) {\n const schema = await this.getSchema([idStr]);\n return schema.toObject();\n }\n\n private async getSchema([idStr]): Promise<APISchema> {\n const host = this.component.getHost();\n const id = await host.resolveComponentId(idStr);\n const component = await host.get(id);\n if (!component) throw new ComponentNotFound(id);\n\n return this.schema.getSchema(component);\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAEA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AAIO,MAAMA,aAAN,CAAuC;EAM5CC,WAAW,CAASC,MAAT,EAAqCC,SAArC,EAA+D;IAAA,KAAtDD,MAAsD,GAAtDA,MAAsD;IAAA,KAA1BC,SAA0B,GAA1BA,SAA0B;IAAA,8CALnE,aAKmE;IAAA,qDAJ5D,8CAI4D;IAAA,+CAHlE,WAGkE;IAAA,iDAFhE,CAAC,CAAC,GAAD,EAAM,MAAN,EAAc,0CAAd,CAAD,CAEgE;EAAE;;EAEhE,MAANC,MAAM,CAAC,CAACC,KAAD,CAAD,EAAU;IACpB,MAAMH,MAAM,GAAG,MAAM,KAAKI,SAAL,CAAe,CAACD,KAAD,CAAf,CAArB;IACA,OAAOH,MAAM,CAACK,eAAP,EAAP;EACD;;EAES,MAAJC,IAAI,CAAC,CAACH,KAAD,CAAD,EAAU;IAClB,MAAMH,MAAM,GAAG,MAAM,KAAKI,SAAL,CAAe,CAACD,KAAD,CAAf,CAArB;IACA,OAAOH,MAAM,CAACO,QAAP,EAAP;EACD;;EAEsB,MAATH,SAAS,CAAC,CAACD,KAAD,CAAD,EAA8B;IACnD,MAAMK,IAAI,GAAG,KAAKP,SAAL,CAAeQ,OAAf,EAAb;IACA,MAAMC,EAAE,GAAG,MAAMF,IAAI,CAACG,kBAAL,CAAwBR,KAAxB,CAAjB;IACA,MAAMF,SAAS,GAAG,MAAMO,IAAI,CAACI,GAAL,CAASF,EAAT,CAAxB;IACA,IAAI,CAACT,SAAL,EAAgB,MAAM,KAAIY,0BAAJ,EAAsBH,EAAtB,CAAN;IAEhB,OAAO,KAAKV,MAAL,CAAYI,SAAZ,CAAsBH,SAAtB,CAAP;EACD;;AAzB2C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":["Logo","height","display","justifyContent","width"],"sources":["schema.composition.tsx"],"sourcesContent":["import React from 'react';\n\nexport const Logo = () => (\n <div style={{ height: '100%', display: 'flex', justifyContent: 'center' }}>\n <img style={{ width: 70 }} src=\"https://static.bit.dev/extensions-icons/code.svg\" />\n </div>\n);\n"],"mappings":";;;;;;;;;AAAA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AAEO,MAAMA,IAAI,GAAG,mBAClB;EAAK,KAAK,EAAE;IAAEC,MAAM,EAAE,MAAV;IAAkBC,OAAO,EAAE,MAA3B;IAAmCC,cAAc,EAAE;EAAnD;AAAZ,gBACE;EAAK,KAAK,EAAE;IAAEC,KAAK,EAAE;EAAT,CAAZ;EAA2B,GAAG,EAAC;AAA/B,EADF,CADK"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":["schemaSchema","schema","typeDefs","gql","resolvers","ComponentHost","getSchema","host","id","componentId","resolveComponentId","component","get","empty","exports","docs"],"sources":["schema.graphql.ts"],"sourcesContent":["import { ComponentFactory } from '@teambit/component';\nimport gql from 'graphql-tag';\n\nimport { SchemaMain } from './schema.main.runtime';\n\nexport function schemaSchema(schema: SchemaMain) {\n return {\n typeDefs: gql`\n extend type ComponentHost {\n getSchema(id: String!): SchemaDocs\n }\n\n type SchemaDocs {\n exports: [String]\n }\n `,\n resolvers: {\n ComponentHost: {\n getSchema: async (host: ComponentFactory, { id }: { id: string }) => {\n const componentId = await host.resolveComponentId(id);\n const component = await host.get(componentId);\n const empty = {\n exports: [],\n };\n\n if (!component) return empty;\n const docs = await schema.getSchema(component);\n if (!docs) return empty;\n\n return docs;\n },\n },\n },\n };\n}\n"],"mappings":";;;;;;;;;;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AAIO,SAASA,YAAT,CAAsBC,MAAtB,EAA0C;EAC/C,OAAO;IACLC,QAAQ,EAAE,IAAAC,qBAAA,CAAI;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KATS;IAULC,SAAS,EAAE;MACTC,aAAa,EAAE;QACbC,SAAS,EAAE,OAAOC,IAAP,EAA+B;UAAEC;QAAF,CAA/B,KAA0D;UACnE,MAAMC,WAAW,GAAG,MAAMF,IAAI,CAACG,kBAAL,CAAwBF,EAAxB,CAA1B;UACA,MAAMG,SAAS,GAAG,MAAMJ,IAAI,CAACK,GAAL,CAASH,WAAT,CAAxB;UACA,MAAMI,KAAK,GAAG;YACZC,OAAO,EAAE;UADG,CAAd;UAIA,IAAI,CAACH,SAAL,EAAgB,OAAOE,KAAP;UAChB,MAAME,IAAI,GAAG,MAAMd,MAAM,CAACK,SAAP,CAAiBK,SAAjB,CAAnB;UACA,IAAI,CAACI,IAAL,EAAW,OAAOF,KAAP;UAEX,OAAOE,IAAP;QACD;MAbY;IADN;EAVN,CAAP;AA4BD"}
|
|
@@ -3,7 +3,7 @@ import { Component, ComponentMain } from '@teambit/component';
|
|
|
3
3
|
import { SlotRegistry } from '@teambit/harmony';
|
|
4
4
|
import { GraphqlMain } from '@teambit/graphql';
|
|
5
5
|
import { EnvsMain } from '@teambit/envs';
|
|
6
|
-
import {
|
|
6
|
+
import { APISchema, Export } from '@teambit/semantics.entities.semantic-schema';
|
|
7
7
|
import { Parser } from './parser';
|
|
8
8
|
import { SchemaExtractor } from './schema-extractor';
|
|
9
9
|
export declare type ParserSlot = SlotRegistry<Parser>;
|
|
@@ -35,7 +35,7 @@ export declare class SchemaMain {
|
|
|
35
35
|
/**
|
|
36
36
|
* parse a module into a component schema.
|
|
37
37
|
*/
|
|
38
|
-
parseModule(path: string):
|
|
38
|
+
parseModule(path: string): Export[];
|
|
39
39
|
getSchemaExtractor(component: Component): SchemaExtractor;
|
|
40
40
|
/**
|
|
41
41
|
* get a schema of a component.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":["SchemaMain","constructor","parserSlot","envs","config","getDefaultParser","get","defaultParser","parseModule","path","parsers","toArray","maybeParser","find","parser","match","extension","getSchemaExtractor","component","env","getEnv","Error","name","getSchema","schemaExtractor","extract","registerParser","register","provider","cli","graphql","schema","SchemaCommand","schemaSchema","MainRuntime","EnvsAspect","CLIAspect","ComponentAspect","GraphqlAspect","Slot","withType","SchemaAspect","addRuntime"],"sources":["schema.main.runtime.ts"],"sourcesContent":["import { MainRuntime, CLIMain, CLIAspect } from '@teambit/cli';\nimport ComponentAspect, { Component, ComponentMain } from '@teambit/component';\nimport { Slot, SlotRegistry } from '@teambit/harmony';\nimport GraphqlAspect, { GraphqlMain } from '@teambit/graphql';\nimport { EnvsAspect, EnvsMain } from '@teambit/envs';\nimport { APISchema, Export } from '@teambit/semantics.entities.semantic-schema';\nimport { Parser } from './parser';\nimport { SchemaAspect } from './schema.aspect';\nimport { SchemaExtractor } from './schema-extractor';\nimport { SchemaCommand } from './schema.cmd';\nimport { schemaSchema } from './schema.graphql';\n\nexport type ParserSlot = SlotRegistry<Parser>;\n\nexport type SchemaConfig = {\n /**\n * default parser\n */\n defaultParser: string;\n};\n\n/**\n * extension for extracting component schemas.\n */\nexport class SchemaMain {\n constructor(\n /**\n * parsers slot.\n */\n private parserSlot: ParserSlot,\n\n private envs: EnvsMain,\n\n private config: SchemaConfig\n ) {}\n\n /**\n * get the default parser.\n */\n getDefaultParser(): Parser {\n return this.parserSlot.get(this.config.defaultParser) as Parser;\n }\n\n /**\n * parse a module into a component schema.\n */\n parseModule(path: string): Export[] {\n const parsers = this.parserSlot.toArray();\n let maybeParser = parsers.find(([, parser]) => {\n const match = path.match(parser.extension);\n return match;\n });\n\n if (!maybeParser) {\n maybeParser = [this.config.defaultParser, this.getDefaultParser()];\n }\n\n const [, parser] = maybeParser;\n return parser.parseModule(path);\n }\n\n getSchemaExtractor(component: Component) {\n const env = this.envs.getEnv(component).env;\n if (typeof env.getSchemaExtractor === 'undefined') {\n throw new Error(`No SchemaExtractor defined for ${env.name}`);\n }\n\n return env.getSchemaExtractor();\n }\n\n /**\n * get a schema of a component.\n * @param component target component.\n */\n async getSchema(component: Component): Promise<APISchema> {\n const env = this.envs.getEnv(component).env;\n if (typeof env.getSchemaExtractor === 'undefined') {\n throw new Error(`No SchemaExtractor defined for ${env.name}`);\n }\n const schemaExtractor: SchemaExtractor = env.getSchemaExtractor();\n return schemaExtractor.extract(component);\n }\n\n /**\n * register a new parser.\n */\n registerParser(parser: Parser): SchemaMain {\n this.parserSlot.register(parser);\n return this;\n }\n\n static runtime = MainRuntime;\n static dependencies = [EnvsAspect, CLIAspect, ComponentAspect, GraphqlAspect];\n static slots = [Slot.withType<Parser>()];\n\n static defaultConfig = {\n defaultParser: 'teambit.typescript/typescript',\n };\n\n static async provider(\n [envs, cli, component, graphql]: [EnvsMain, CLIMain, ComponentMain, GraphqlMain],\n config: SchemaConfig,\n [parserSlot]: [ParserSlot]\n ) {\n const schema = new SchemaMain(parserSlot, envs, config);\n cli.register(new SchemaCommand(schema, component));\n graphql.register(schemaSchema(schema));\n\n // workspace.onComponentLoad(async (component) => {\n // const apiSchema = await schema.getSchema(component);\n // return {};\n // });\n\n return schema;\n }\n}\n\nSchemaAspect.addRuntime(SchemaMain);\n"],"mappings":"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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":["SchemaService","run","context","errors"],"sources":["schema.service.ts"],"sourcesContent":["import { EnvService, ExecutionContext } from '@teambit/envs';\n// import { APISchema } from './schema';\n\nexport class SchemaService implements EnvService<{}> {\n name = 'schema';\n\n async run(context: ExecutionContext) {\n return { errors: [], context };\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AACA;AAEO,MAAMA,aAAN,CAA8C;EAAA;IAAA,8CAC5C,QAD4C;EAAA;;EAG1C,MAAHC,GAAG,CAACC,OAAD,EAA4B;IACnC,OAAO;MAAEC,MAAM,EAAE,EAAV;MAAcD;IAAd,CAAP;EACD;;AALkD"}
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/schema",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.738",
|
|
4
4
|
"homepage": "https://bit.dev/teambit/semantics/schema",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"componentId": {
|
|
7
7
|
"scope": "teambit.semantics",
|
|
8
8
|
"name": "schema",
|
|
9
|
-
"version": "0.0.
|
|
9
|
+
"version": "0.0.738"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"graphql-tag": "2.12.1",
|
|
13
13
|
"@babel/runtime": "7.12.18",
|
|
14
14
|
"core-js": "^3.0.0",
|
|
15
15
|
"@teambit/harmony": "0.3.3",
|
|
16
|
-
"@teambit/semantics.entities.semantic-schema": "0.0.
|
|
17
|
-
"@teambit/builder": "0.0.
|
|
18
|
-
"@teambit/component": "0.0.
|
|
16
|
+
"@teambit/semantics.entities.semantic-schema": "0.0.11",
|
|
17
|
+
"@teambit/builder": "0.0.738",
|
|
18
|
+
"@teambit/component": "0.0.738",
|
|
19
19
|
"@teambit/cli": "0.0.491",
|
|
20
|
-
"@teambit/scope": "0.0.
|
|
21
|
-
"@teambit/envs": "0.0.
|
|
22
|
-
"@teambit/graphql": "0.0.
|
|
20
|
+
"@teambit/scope": "0.0.738",
|
|
21
|
+
"@teambit/envs": "0.0.738",
|
|
22
|
+
"@teambit/graphql": "0.0.738"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@types/react": "^17.0.8",
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const compositions = [require('/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.semantics_schema@0.0.
|
|
2
|
-
export const overview = [require('/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.semantics_schema@0.0.
|
|
1
|
+
export const compositions = [require('/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.semantics_schema@0.0.738/dist/schema.composition.js')]
|
|
2
|
+
export const overview = [require('/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.semantics_schema@0.0.738/dist/schema.docs.mdx')]
|
package/tsconfig.json
CHANGED
|
@@ -15,13 +15,13 @@
|
|
|
15
15
|
"declaration": true,
|
|
16
16
|
"sourceMap": true,
|
|
17
17
|
"skipLibCheck": true,
|
|
18
|
+
"experimentalDecorators": true,
|
|
18
19
|
"outDir": "dist",
|
|
19
20
|
"moduleResolution": "node",
|
|
20
21
|
"esModuleInterop": true,
|
|
21
22
|
"rootDir": ".",
|
|
22
23
|
"resolveJsonModule": true,
|
|
23
24
|
"emitDeclarationOnly": true,
|
|
24
|
-
"experimentalDecorators": true,
|
|
25
25
|
"emitDecoratorMetadata": true,
|
|
26
26
|
"allowSyntheticDefaultImports": true,
|
|
27
27
|
"strictPropertyInitialization": false,
|
|
Binary file
|