@web/dev-server-esbuild
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -14,2 +14,3 @@ "use strict"; | ||
const parse5_1 = require("parse5"); | ||
const get_tsconfig_1 = require("get-tsconfig"); | ||
const getEsbuildTarget_js_1 = require("./getEsbuildTarget.js"); | ||
@@ -36,3 +37,4 @@ const filteredWarnings = ['Unsupported source map comment']; | ||
if (this.esbuildConfig.tsconfig) { | ||
this.tsconfigRaw = await (0, util_1.promisify)(fs_1.default.readFile)(this.esbuildConfig.tsconfig, 'utf8'); | ||
const parsedTsconfig = await (0, get_tsconfig_1.parseTsconfig)(this.esbuildConfig.tsconfig); | ||
this.tsconfigRaw = JSON.stringify(parsedTsconfig); | ||
} | ||
@@ -39,0 +41,0 @@ } |
{ | ||
"name": "@web/dev-server-esbuild", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"publishConfig": { | ||
@@ -31,4 +31,10 @@ "access": "public" | ||
"start:demo:ts": "es-dev-server --config demo/ts/server.config.js", | ||
"test": "mocha \"test/**/*.test.ts\" --require ts-node/register", | ||
"test:watch": "mocha \"test/**/*.test.ts\" --require ts-node/register --watch --watch-files src,test" | ||
"test": "mocha \"test/**/*.test.ts\" --require ts-node/register --reporter dot", | ||
"test:watch": "mocha \"test/**/*.test.ts\" --require ts-node/register --watch --watch-files src,test", | ||
"lint": "npm run lint:eslint && npm run lint:prettier", | ||
"lint:eslint": "eslint --ext .ts,.js,.mjs,.cjs .", | ||
"lint:prettier": "prettier \"**/*.{ts,js,mjs,cjs,md}\" --check --ignore-path .eslintignore", | ||
"format": "npm run format:eslint && npm run format:prettier", | ||
"format:eslint": "eslint --ext .ts,.js,.mjs,.cjs . --fix", | ||
"format:prettier": "prettier \"**/*.{ts,js,mjs,cjs,md}\" \"**/package.json\" --write --ignore-path .eslintignore" | ||
}, | ||
@@ -57,3 +63,4 @@ "files": [ | ||
"@web/dev-server-core": "^0.7.0", | ||
"esbuild": "^0.19.5", | ||
"esbuild": "^0.19.11", | ||
"get-tsconfig": "^4.7.2", | ||
"parse5": "^6.0.1", | ||
@@ -63,7 +70,49 @@ "ua-parser-js": "^1.0.33" | ||
"devDependencies": { | ||
"@types/chai": "^4.3.11", | ||
"@types/mocha": "^10.0.6", | ||
"@types/ua-parser-js": "^0.7.35", | ||
"@typescript-eslint/eslint-plugin": "^6.18.0", | ||
"@web/dev-server-rollup": "^0.6.1", | ||
"chai": "^4.4.0", | ||
"eslint": "^8.56.0", | ||
"eslint-config-prettier": "^9.1.0", | ||
"lit-element": "^3.0.0 || ^4.0.1", | ||
"preact": "^10.5.9" | ||
"mocha": "^10.2.0", | ||
"node-fetch": "^2.7.0", | ||
"portfinder": "^1.0.32", | ||
"preact": "^10.5.9", | ||
"prettier": "^3.1.1", | ||
"ts-node": "^10.9.2" | ||
}, | ||
"eslintConfig": { | ||
"parser": "@typescript-eslint/parser", | ||
"plugins": [ | ||
"@typescript-eslint" | ||
], | ||
"extends": [ | ||
"eslint:recommended", | ||
"eslint-config-prettier", | ||
"plugin:@typescript-eslint/recommended" | ||
], | ||
"env": { | ||
"node": true, | ||
"mocha": true, | ||
"es2020": true | ||
}, | ||
"rules": { | ||
"@typescript-eslint/no-non-null-assertion": "off", | ||
"@typescript-eslint/explicit-module-boundary-types": "off", | ||
"@typescript-eslint/no-explicit-any": "off", | ||
"@typescript-eslint/no-empty-interface": "off", | ||
"@typescript-eslint/no-unused-vars": "error", | ||
"@typescript-eslint/no-var-requires": "off", | ||
"@typescript-eslint/ban-ts-comment": "off" | ||
} | ||
}, | ||
"prettier": { | ||
"singleQuote": true, | ||
"arrowParens": "avoid", | ||
"printWidth": 100, | ||
"trailingComma": "all" | ||
} | ||
} |
@@ -1,2 +0,2 @@ | ||
# Dev server esbuild | ||
# @web/dev-server-esbuild | ||
@@ -3,0 +3,0 @@ Plugin for using [esbuild](https://github.com/evanw/esbuild) in the dev server. |
@@ -21,2 +21,3 @@ import { | ||
import { parse as parseHtml, serialize as serializeHtml } from 'parse5'; | ||
import { parseTsconfig } from 'get-tsconfig'; | ||
@@ -65,3 +66,4 @@ import { getEsbuildTarget } from './getEsbuildTarget.js'; | ||
if (this.esbuildConfig.tsconfig) { | ||
this.tsconfigRaw = await promisify(fs.readFile)(this.esbuildConfig.tsconfig, 'utf8'); | ||
const parsedTsconfig = await parseTsconfig(this.esbuildConfig.tsconfig); | ||
this.tsconfigRaw = JSON.stringify(parsedTsconfig); | ||
} | ||
@@ -68,0 +70,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
50632
821
6
15
1
+ Addedget-tsconfig@^4.7.2
+ Addedget-tsconfig@4.8.1(transitive)
+ Addedresolve-pkg-maps@1.0.0(transitive)
Updatedesbuild@^0.19.11