Skip to content

Commit 1ade790

Browse files
committed
Restructure source folders
1 parent 28e7d02 commit 1ade790

9 files changed

Lines changed: 7 additions & 7 deletions

File tree

bin/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env node
22

33
import { Command } from 'commander';
4-
import { pkg } from '../src/static.js';
4+
import { pkg } from '../lib/static.js';
55

66
import {
77
handleRender,
@@ -15,7 +15,7 @@ import {
1515
handleUseAction,
1616
handleUpgrade,
1717
getProgramName
18-
} from './handler.js';
18+
} from '../lib/handler.js';
1919

2020
const program = new Command();
2121

File renamed without changes.

bin/handler.js renamed to lib/handler.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ import os from 'node:os';
44
import { stdin } from 'node:process';
55
import { execSync } from 'node:child_process';
66

7-
import { pkg, config, configPath, configDownloadPath } from '../src/static.js'
8-
import { parse } from '../src/parse.js';
9-
import { preview } from '../src/preview/index.js';
10-
import { render } from '../src/render.js';
11-
import { generateSVG, generateShape } from '../src/generate.js';
7+
import { pkg, config, configPath, configDownloadPath } from './static.js'
8+
import { parse } from './parse.js';
9+
import { preview } from './preview/index.js';
10+
import { render } from './render.js';
11+
import { generateSVG, generateShape } from './generate.js';
1212

1313
export async function handleRender(source, options) {
1414
let { content, error } = await read(source);
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)