-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move sources to src and compilation output to lib. Use react/jsx-runt…
…ime as react compilation target
- Loading branch information
1 parent
04633d4
commit f6615af
Showing
10 changed files
with
126 additions
and
144 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,9 @@ | ||
{ | ||
"root": true, | ||
"env": { | ||
"browser": true, | ||
"node": true | ||
}, | ||
"parserOptions": { | ||
"project": "./tsconfig.eslint.json" | ||
}, | ||
"settings": { | ||
"react": { | ||
"version": "18.x" | ||
}, | ||
"import/resolver": { | ||
"typescript": {} | ||
} | ||
}, | ||
"plugins": [ | ||
"@typescript-eslint", | ||
"ava" | ||
], | ||
"extends": [ | ||
"@octetstream/eslint-config/esm/typescript/react" | ||
], | ||
"rules": { | ||
"import/no-extraneous-dependencies": ["error", { | ||
"devDependencies": ["**/*.test.tsx"] | ||
}], | ||
|
||
"ava/no-ignored-test-files": ["error", { | ||
"files": ["*.test.{ts,tsx}"] | ||
}] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,9 +4,4 @@ node_modules | |
coverage | ||
yarn-error.log | ||
|
||
/*.cjs | ||
/*.mjs | ||
/*.js | ||
/*.jsx | ||
/*.d.ts | ||
/*.map | ||
/lib |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,6 +22,4 @@ coverage | |
/tsconfig.d.ts.json | ||
/tsconfig.eslint.json | ||
/tsconfig.ava.json | ||
/*.ts | ||
/*.test.ts | ||
/*.test.tsx | ||
/src |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,24 +9,24 @@ | |
"hooks", | ||
"react-hooks" | ||
], | ||
"source": "./useSuspender.ts", | ||
"main": "./useSuspender.mjs", | ||
"umd:main": "./useSuspender.umd.js", | ||
"module": "./useSuspender.legacy.mjs", | ||
"types": "./useSuspender.d.ts", | ||
"source": "./src/useSuspender.ts", | ||
"main": "./lib/useSuspender.mjs", | ||
"umd:main": "./lib/useSuspender.umd.js", | ||
"module": "./lib/useSuspender.legacy.mjs", | ||
"types": "./lib/useSuspender.d.ts", | ||
"exports": { | ||
"import": "./useSuspender.mjs", | ||
"require": "./useSuspender.cjs", | ||
"types": "./useSuspender.d.ts", | ||
"default": "./useSuspender.mjs" | ||
"import": "./lib/useSuspender.mjs", | ||
"require": "./lib/useSuspender.cjs", | ||
"types": "./lib/useSuspender.d.ts", | ||
"default": "./lib/useSuspender.mjs" | ||
}, | ||
"repository": "octet-stream/use-suspender", | ||
"author": "Nick K. <[email protected]>", | ||
"license": "MIT", | ||
"private": false, | ||
"scripts": { | ||
"cleanup": "del-cli useSuspender.cjs useSuspender.cjs.map useSuspender.esm.js useSuspender.esm.js.map useSuspender.mjs useSuspender.mjs.map useSuspender.legacy.mjs useSuspender.legacy.mjs.map useSuspender.umd.js useSuspender.umd.js.map useSuspender.d.ts", | ||
"build": "microbundle", | ||
"cleanup": "del-cli lib", | ||
"build": "microbundle --tsconfig tsconfig.build.json --jsx React.createElement --jsxFragment React.Fragment --jsxImportSource react --globals react/jsx-runtime=jsx", | ||
"size-limit": "size-limit", | ||
"staged": "lint-staged", | ||
"coverage": "c8 npm test", | ||
|
@@ -39,7 +39,7 @@ | |
"postpublish": "pinst --enable" | ||
}, | ||
"devDependencies": { | ||
"@octetstream/eslint-config": "7.0.2", | ||
"@octetstream/eslint-config": "7.1.0", | ||
"@size-limit/preset-small-lib": "8.2.4", | ||
"@testing-library/react": "14.0.0", | ||
"@types/node": "18.15.11", | ||
|
@@ -50,7 +50,7 @@ | |
"ava": "5.2.0", | ||
"c8": "7.13.0", | ||
"del-cli": "5.0.0", | ||
"eslint": "8.37.0", | ||
"eslint": "8.38.0", | ||
"eslint-config-airbnb-typescript": "17.0.0", | ||
"eslint-import-resolver-typescript": "3.5.5", | ||
"eslint-plugin-ava": "14.0.0", | ||
|
Oops, something went wrong.