Skip to content

Commit

Permalink
feat: export typescript
Browse files Browse the repository at this point in the history
This allows downstream users to use a different version of typescript.
  • Loading branch information
jdpnielsen committed Feb 13, 2024
1 parent 9f86e15 commit fdbe557
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
4 changes: 3 additions & 1 deletion example/blueprints/block/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@ import {
patchTsFile,
runner,
assembleTemplate,
ts,
} from '@jdpnielsen/assemble';

import path from 'path';
import { SyntaxKind } from 'typescript';

const { SyntaxKind } = ts;

runner(async (context: AssembleContext) => {
const answers = await prompt<{ name: string }>([
Expand Down
5 changes: 4 additions & 1 deletion example/blueprints/template/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,12 @@ import {
runner,
assembleTemplate,
patchTsFile,
ts,
} from '@jdpnielsen/assemble';

import path from 'node:path';
import { SyntaxKind } from 'typescript';

const { SyntaxKind } = ts;

runner(async (context: AssembleContext) => {
const answers = await prompt<{ name: string }>([
Expand Down
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import ts from 'typescript';
export { ts };
export { prompt } from 'enquirer';
export { changeCase } from './lib/change-case';
export { runner } from './lib/runner';
Expand Down

0 comments on commit fdbe557

Please sign in to comment.