Skip to content

Commit 7f7633e

Browse files
authored
Merge pull request #6 from octet-stream/esm
2 parents 111c7e5 + 2505a4a commit 7f7633e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+488
-440
lines changed

.c8rc.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"include": ["lib/**/**.ts"],
3-
"exclude": ["lib/__helper__", "lib/**/*.test.ts"]
2+
"include": ["src/**/*.ts"],
3+
"exclude": ["src/__helper__", "src/**/*.test.ts"]
44
}

.eslintrc.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44
"parserOptions": {
55
"project": "./tsconfig.eslint.json"
66
},
7+
"settings": {
8+
"import/resolver": {
9+
"typescript": {}
10+
}
11+
},
712
"env": {
813
"browser": true,
914
"node": true

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,5 @@ coverage
1212
*.old
1313
@type
1414

15-
/lib/**/*.js
15+
/src/**/*.js
16+
/lib

.lintstagedrc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
{
2-
"lib/**/*.ts": "eslint --fix",
3-
"ava.config.cjs": "eslint --fix"
2+
"src/**/*.ts": "eslint --fix"
43
}

.npmignore

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,30 +3,24 @@
33
node_modules
44
coverage
55
__helper__
6-
coverage
76
.codecov
87
.husky
98
.eslintignore
109
package-lock.json
1110
yarn-error.log
1211
pnpm-lock.yaml
1312
.c8rc.json
14-
.env
1513

1614
/code-of-conduct.md
1715
/.editorconfig
1816
/.eslintrc.json
1917
/.lintstagedrc
2018
/.travis.yml
21-
/ava.config.cjs
22-
/ava.config.mjs
2319
/ava.config.js
2420
/yarn.lock
2521
/test.mjs
2622
/tsconfig.json
27-
/tsconfig.esm.json
28-
/tsconfig.cjs.json
2923
/tsconfig.eslint.json
3024
/tsconfig.d.ts.json
3125
/tsconfig.ava.json
32-
lib/**/*.ts
26+
/src

ava.config.cjs

Lines changed: 0 additions & 14 deletions
This file was deleted.

ava.config.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
export default {
2+
extensions: {
3+
ts: "module"
4+
},
5+
nodeArguments: [
6+
"--loader=ts-node/esm/transpile-only"
7+
],
8+
files: [
9+
"src/**/*.test.ts"
10+
]
11+
}

lib/cjs/package.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

lib/esm/package.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

lib/index.ts

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)