Skip to content

Commit

Permalink
Remove import from polaris in build ts file
Browse files Browse the repository at this point in the history
  • Loading branch information
juzser committed Mar 6, 2024
1 parent 187e490 commit 59e8432
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
13 changes: 12 additions & 1 deletion build/gen-docs-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,18 @@ import { globby } from 'globby';
import { default as path } from 'path';
import { default as fs } from 'fs';
import { default as ts } from 'typescript';
import { Type } from '../polaris/polaris.shopify.com/src/types';

export type Type = {
filePath: string;
name: string;
value: string | number | object;
syntaxKind?: string;
description?: string;
isOptional?: true;
deprecationMessage?: string;
defaultValue?: string;
members?: Type[];
};

const typePath = './docs/assets/components-types';

Expand Down
3 changes: 1 addition & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,12 @@
],
"outDir": "dist/types",

"noEmit": true,
// "noEmit": true,
"moduleResolution": "node",
"allowImportingTsExtensions": true,
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve",
"esModuleInterop": true,

"strict": true,
"noUnusedLocals": true,
Expand Down

0 comments on commit 59e8432

Please sign in to comment.