Skip to content

Commit f128ea6

Browse files
committed
refactor: move folders
1 parent 49a5ea4 commit f128ea6

12 files changed

+18
-44
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -102,3 +102,6 @@ dist
102102

103103
# TernJS port file
104104
.tern-port
105+
106+
# TypeScript declarations
107+
types

listeners.ts

-32
This file was deleted.

package-lock.json

+5-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
{
22
"name": "apphook",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"description": "A way to implant/modify other piece of code",
5-
"main": "index.js",
5+
"main": "./dist/index.js",
6+
"types": "./types/index.d.ts",
67
"scripts": {
78
"build": "tsc",
8-
"test": "jest --coverage"
9+
"test": "jest --coverage tests"
910
},
1011
"repository": {
1112
"type": "git",
@@ -14,8 +15,7 @@
1415
"keywords": [
1516
"hook",
1617
"plugin",
17-
"event",
18-
"subcribe"
18+
"event"
1919
],
2020
"author": "Kelly Peilin Chan <[email protected]>",
2121
"license": "MIT",
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

index.ts renamed to src/index.ts

File renamed without changes.

rules.ts renamed to src/rules.ts

File renamed without changes.

__tests__/apphook.test.ts renamed to tests/apphook.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* @Last Modified by: Kelly Peilin Chan ([email protected])
77
* @Last Modified time: 2022-10-19 14:26:00
88
*/
9-
import { IFilter, ICondition, IRule, ITrigger, AppHook } from '..';
9+
import { IFilter, ICondition, IRule, ITrigger, AppHook } from '../src';
1010

1111
class TestCondition implements ICondition {
1212
doCheck(): boolean {

tsconfig.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,11 @@
77
"skipLibCheck": true,
88
"forceConsistentCasingInFileNames": true,
99
"outDir":"dist",
10-
"sourceMap": true
10+
"sourceMap": true,
11+
"declaration": true,
12+
"declarationDir": "./types"
1113
},
14+
"include": ["src/**/*"],
1215
"$schema": "https://json.schemastore.org/tsconfig",
1316
"display": "Recommended"
1417
}

0 commit comments

Comments
 (0)