Skip to content

Commit 5803640

Browse files
Move to src directory
1 parent 197ab77 commit 5803640

File tree

19 files changed

+68
-25
lines changed

19 files changed

+68
-25
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"scripts": {
2020
"pretest": "tsc -p test/tsconfig.json",
2121
"test": "ava -v",
22-
"clean": "rimraf dist",
22+
"clean": "rimraf dist output test/output",
2323
"build": "rollup -c; shx chmod a+x dist/filesize",
2424
"try": "./dist/filesize",
2525
"release": "np",

rollup.config.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ const plugins = executable => [
4444

4545
export default [
4646
{
47-
input: 'index.ts',
47+
input: 'src/index.ts',
4848
output: {
4949
file: 'dist/filesize',
5050
format: 'cjs',
@@ -54,7 +54,7 @@ export default [
5454
plugins: plugins(true),
5555
},
5656
{
57-
input: 'index.ts',
57+
input: 'src/index.ts',
5858
output: {
5959
file: 'dist/index.js',
6060
format: 'cjs',
@@ -64,7 +64,7 @@ export default [
6464
plugins: plugins(false),
6565
},
6666
{
67-
input: 'api.ts',
67+
input: 'src/api.ts',
6868
output: {
6969
file: 'dist/api.mjs',
7070
format: 'esm',

api.ts renamed to src/api.ts

File renamed without changes.
File renamed without changes.

fs.ts renamed to src/fs.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import { promises as fs } from 'fs';
1818

1919
/**
2020
* Returns if a path is a directory.
21-
* @param path
21+
* @param path
2222
*/
2323
export async function isDirectory(path: string): Promise<boolean> {
2424
try {
@@ -29,7 +29,7 @@ export async function isDirectory(path: string): Promise<boolean> {
2929

3030
/**
3131
* Returns if a path is a file.
32-
* @param path
32+
* @param path
3333
*/
3434
export async function isFile(path: string): Promise<boolean> {
3535
try {
@@ -40,7 +40,7 @@ export async function isFile(path: string): Promise<boolean> {
4040

4141
/**
4242
* Returns contents of a path as a string
43-
* @param path
43+
* @param path
4444
*/
4545
export async function readFile(path: string): Promise<string | null> {
4646
try {

index.ts renamed to src/index.ts

File renamed without changes.

log.ts renamed to src/log.ts

File renamed without changes.

object.ts renamed to src/object.ts

File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)