-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #55 from octet-stream/esm
- Loading branch information
Showing
40 changed files
with
1,072 additions
and
1,539 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,4 +1,4 @@ | ||
{ | ||
"include": ["lib/**/**.ts"], | ||
"exclude": ["lib/__helper__", "lib/**/*.test.ts"] | ||
"include": ["src/**/*.ts"], | ||
"exclude": ["src/__helper__", "src/**/*.test.ts"] | ||
} |
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,65 +1,34 @@ | ||
{ | ||
"root": true, | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": { | ||
"project": "./tsconfig.eslint.json" | ||
}, | ||
"env": { | ||
"browser": true, | ||
"node": true | ||
}, | ||
"plugins": [ | ||
"@typescript-eslint", | ||
"ava" | ||
], | ||
"extends": [ | ||
"airbnb-typescript", | ||
"@octetstream", | ||
"plugin:ava/recommended" | ||
"plugin:ava/recommended", | ||
"@octetstream/eslint-config/esm/typescript" | ||
], | ||
"settings": { | ||
"import/resolver": { | ||
"typescript": {} | ||
} | ||
}, | ||
"rules": { | ||
"no-void": 0, | ||
"func-names": 0, | ||
"no-shadow": 0, | ||
"no-use-before-define": 0, | ||
"max-len": [ | ||
"error", | ||
{ | ||
"code": 80, | ||
"ignoreComments": true | ||
} | ||
], | ||
"import/no-unresolved": [ | ||
"error", | ||
{ | ||
"ignore": [ | ||
"dinky.js" | ||
"formdata-node" | ||
] | ||
} | ||
], | ||
|
||
"no-plusplus": 0, | ||
|
||
// These two rules are false-positive and have no solution for TS | ||
"no-redeclare": 0, | ||
"no-dupe-class-members": 0, | ||
"lines-between-class-members": 0, | ||
|
||
"@typescript-eslint/semi": 0, | ||
"@typescript-eslint/no-shadow": 0, | ||
"@typescript-eslint/quotes": [ | ||
"error", | ||
"double" | ||
], | ||
"@typescript-eslint/object-curly-spacing": [ | ||
"error", | ||
"never" | ||
], | ||
"@typescript-eslint/comma-dangle": 0 | ||
"lines-between-class-members": 0 | ||
} | ||
} |
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
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 |
---|---|---|
|
@@ -12,4 +12,4 @@ coverage | |
*.old | ||
@type | ||
|
||
/lib/**/*.js | ||
/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
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
export default { | ||
extensions: { | ||
ts: "module" | ||
}, | ||
nodeArguments: [ | ||
"--loader=ts-node/esm/transpile-only" | ||
], | ||
files: [ | ||
"src/**/*.test.ts" | ||
] | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,6 +1,7 @@ | ||
{ | ||
"name": "formdata-node", | ||
"version": "4.3.3", | ||
"type": "module", | ||
"description": "Spec-compliant FormData implementation for Node.js", | ||
"repository": "octet-stream/form-data", | ||
"sideEffects": false, | ||
|
@@ -14,28 +15,25 @@ | |
], | ||
"author": "Nick K. <[email protected]>", | ||
"license": "MIT", | ||
"main": "./lib/cjs/index.js", | ||
"module": "./lib/esm/browser.js", | ||
"browser": "./lib/cjs/browser.js", | ||
"main": "./lib/index.js", | ||
"module": "./lib/browser.js", | ||
"browser": "./lib/browser.js", | ||
"exports": { | ||
"./package.json": "./package.json", | ||
".": { | ||
"node": { | ||
"types": "./@type/index.d.ts", | ||
"import": "./lib/esm/index.js", | ||
"require": "./lib/cjs/index.js" | ||
"import": "./lib/index.js" | ||
}, | ||
"browser": { | ||
"types": "./@type/browser.d.ts", | ||
"import": "./lib/esm/browser.js", | ||
"require": "./lib/cjs/browser.js" | ||
"import": "./lib/browser.js" | ||
}, | ||
"default": "./lib/esm/index.js" | ||
"default": "./lib/index.js" | ||
}, | ||
"./file-from-path": { | ||
"types": "./@type/fileFromPath.d.ts", | ||
"import": "./lib/esm/fileFromPath.js", | ||
"require": "./lib/cjs/fileFromPath.js" | ||
"import": "./lib/fileFromPath.js" | ||
} | ||
}, | ||
"types": "./@type/index.d.ts", | ||
|
@@ -47,51 +45,46 @@ | |
} | ||
}, | ||
"engines": { | ||
"node": ">= 12.20" | ||
"node": ">= 14.17" | ||
}, | ||
"scripts": { | ||
"eslint": "eslint lib/**/*.ts", | ||
"eslint": "eslint src/**/*.ts", | ||
"staged": "lint-staged", | ||
"coverage": "c8 npm test", | ||
"report:html": "c8 -r=html npm test", | ||
"ci": "c8 npm test && c8 report --reporter=json", | ||
"build:esm": "ttsc --project tsconfig.esm.json", | ||
"build:cjs": "ttsc --project tsconfig.cjs.json", | ||
"build:types": "ttsc --project tsconfig.d.ts.json", | ||
"build": "npm run build:esm && npm run build:cjs && npm run build:types", | ||
"build:types": "tsc --project tsconfig.d.ts.json", | ||
"build": "tsc && npm run build:types", | ||
"test": "ava --fail-fast", | ||
"cleanup": "npx rimraf @type \"lib/**/*.js\"", | ||
"cleanup": "del-cli @type lib", | ||
"prepare": "npm run cleanup && npm run build", | ||
"postinstall": "husky install", | ||
"prepublishOnly": "pinst --disable", | ||
"postpublish": "pinst --enable" | ||
}, | ||
"devDependencies": { | ||
"@octetstream/eslint-config": "5.0.0", | ||
"@types/node": "17.0.19", | ||
"@octetstream/eslint-config": "6.2.1", | ||
"@types/node": "17.0.42", | ||
"@types/sinon": "10.0.11", | ||
"@typescript-eslint/eslint-plugin": "4.32.0", | ||
"@typescript-eslint/parser": "4.32.0", | ||
"@zoltu/typescript-transformer-append-js-extension": "1.0.1", | ||
"ava": "4.0.1", | ||
"c8": "7.11.0", | ||
"eslint": "7.32.0", | ||
"eslint-config-airbnb-typescript": "12.3.1", | ||
"eslint-import-resolver-typescript": "2.5.0", | ||
"eslint-plugin-ava": "12.0.0", | ||
"eslint-plugin-jsx-a11y": "6.4.1", | ||
"eslint-plugin-react": "7.26.1", | ||
"husky": "7.0.4", | ||
"lint-staged": "12.3.4", | ||
"@typescript-eslint/eslint-plugin": "5.27.1", | ||
"@typescript-eslint/parser": "5.27.1", | ||
"ava": "4.3.0", | ||
"c8": "7.11.3", | ||
"del-cli": "4.0.1", | ||
"eslint": "8.17.0", | ||
"eslint-config-airbnb-typescript": "17.0.0", | ||
"eslint-import-resolver-typescript": "2.7.1", | ||
"eslint-plugin-ava": "13.2.0", | ||
"eslint-plugin-import": "^2.26.0", | ||
"husky": "8.0.1", | ||
"lint-staged": "13.0.1", | ||
"pinst": "3.0.0", | ||
"rimraf": "^3.0.2", | ||
"sinon": "13.0.1", | ||
"ts-node": "10.5.0", | ||
"ttypescript": "1.5.13", | ||
"typescript": "4.5.5" | ||
"sinon": "14.0.0", | ||
"ts-node": "10.8.1", | ||
"typescript": "4.7.3" | ||
}, | ||
"dependencies": { | ||
"node-domexception": "1.0.0", | ||
"web-streams-polyfill": "4.0.0-beta.1" | ||
"web-streams-polyfill": "4.0.0-beta.2" | ||
} | ||
} |
Oops, something went wrong.