Skip to content

Commit

Permalink
feat: allow esbuild 0.16 (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
webdeveric authored Dec 12, 2022
1 parent 09fca47 commit 881f75b
Show file tree
Hide file tree
Showing 5 changed files with 364 additions and 191 deletions.
20 changes: 13 additions & 7 deletions esbuild-node-externals/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
"main": "dist/index.js",
"typings": "dist/index.d.ts",
"scripts": {
"typecheck": "tsc --noEmit",
"prebuild": "rimraf ./dist",
"build": "tsc",
"watch": "tsc --watch"
},
Expand All @@ -20,16 +22,20 @@
"dist",
"src"
],
"engines": {
"node": ">=12"
},
"dependencies": {
"find-up": "^5.0.0",
"tslib": "^2.4.1"
},
"peerDependencies": {
"esbuild": "0.12 - 0.15"
"esbuild": "0.12 - 0.16"
},
"devDependencies": {
"@types/node": "16.11.7",
"esbuild": "^0.13.0",
"typescript": "4.4.4"
},
"dependencies": {
"find-up": "5.0.0",
"tslib": "2.3.1"
"esbuild": "^0.16.4",
"rimraf": "^3.0.2",
"typescript": "^4.9.4"
}
}
3 changes: 2 additions & 1 deletion esbuild-node-externals/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Plugin } from 'esbuild';
import type { Plugin } from 'esbuild';

import { findPackagePaths, findDependencies } from './utils';

export interface Options {
Expand Down
27 changes: 22 additions & 5 deletions esbuild-node-externals/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,30 @@
"rootDir": "./src",
"outDir": "./dist",
"importHelpers": true,
"target": "es6",
"module": "commonjs",
"moduleResolution": "node",
"lib": ["es2019", "es2020.promise", "es2020.bigint", "es2020.string"],
"removeComments": true,
"target": "es2019",
"declaration": true,
"sourceMap": true,
"module": "commonjs",
"moduleResolution": "node",
"strict": true,
"downlevelIteration": true,
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
"lib": ["es2019"]
}
"skipLibCheck": true,
"isolatedModules": true,
"forceConsistentCasingInFileNames": true,
"allowUnusedLabels": false,
"allowUnreachableCode": false,
"noUnusedLocals": true,
"noUnusedParameters": true,
"importsNotUsedAsValues": "error",
"noErrorTruncation": true,
"exactOptionalPropertyTypes": true,
"noImplicitOverride": false,
"noUncheckedIndexedAccess": false
},
"include": ["src/**/*"],
"exclude": ["node_modules"]
}
2 changes: 1 addition & 1 deletion examples/basic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"koa": "2.13.4"
},
"devDependencies": {
"esbuild": "^0.13.0",
"esbuild": "^0.16.4",
"esbuild-node-externals": "workspace:esbuild-node-externals"
}
}
Loading

0 comments on commit 881f75b

Please sign in to comment.