diff --git a/.changeset/khaki-humans-sort.md b/.changeset/khaki-humans-sort.md new file mode 100644 index 000000000..e9e34adb2 --- /dev/null +++ b/.changeset/khaki-humans-sort.md @@ -0,0 +1,5 @@ +--- +'astro': patch +--- + +update esbuild@0.14.25 diff --git a/package.json b/package.json index 13f6e0482..566c72b6f 100644 --- a/package.json +++ b/package.json @@ -58,7 +58,7 @@ "@typescript-eslint/eslint-plugin": "^5.14.0", "@typescript-eslint/parser": "^5.14.0", "del": "^6.0.0", - "esbuild": "0.13.7", + "esbuild": "0.14.25", "eslint": "^8.10.0", "eslint-config-prettier": "^8.5.0", "eslint-plugin-prettier": "^4.0.0", @@ -67,6 +67,6 @@ "pretty-bytes": "^6.0.0", "tiny-glob": "^0.2.9", "turbo": "^1.1.5", - "typescript": "4.5.2" + "typescript": "~4.6.2" } } diff --git a/packages/astro-parser/package.json b/packages/astro-parser/package.json index 18fffa951..9da7d2725 100644 --- a/packages/astro-parser/package.json +++ b/packages/astro-parser/package.json @@ -22,7 +22,7 @@ "dev": "astro-scripts dev \"src/**/*.ts\"" }, "dependencies": { - "@types/node": "^15.12.2", + "@types/node": "^14.0.0", "acorn": "^8.6.0", "locate-character": "^2.0.5", "magic-string": "^0.25.3" diff --git a/packages/astro/package.json b/packages/astro/package.json index c6d366c7e..a77cf6fb4 100644 --- a/packages/astro/package.json +++ b/packages/astro/package.json @@ -76,8 +76,8 @@ "common-ancestor-path": "^1.0.1", "debug": "^4.3.3", "eol": "^0.9.1", - "es-module-lexer": "^0.9.3", - "esbuild": "0.13.7", + "es-module-lexer": "^0.10.0", + "esbuild": "0.14.25", "estree-walker": "^3.0.0", "fast-glob": "^3.2.7", "fast-xml-parser": "^4.0.0-beta.3", @@ -119,14 +119,14 @@ "@types/common-ancestor-path": "^1.0.0", "@types/connect": "^3.4.35", "@types/debug": "^4.1.7", - "@types/estree": "^0.0.50", + "@types/estree": "^0.0.51", "@types/mime": "^2.0.3", "@types/mocha": "^9.0.0", "@types/parse5": "^6.0.3", "@types/resolve": "^1.20.1", "@types/rimraf": "^3.0.2", "@types/send": "^0.17.1", - "@types/yargs-parser": "^20.2.1", + "@types/yargs-parser": "^21.0.0", "astro-scripts": "workspace:*", "chai": "^4.3.4", "cheerio": "^1.0.0-rc.10", diff --git a/packages/astro/src/cli/index.ts b/packages/astro/src/cli/index.ts index 962586ac3..afb564847 100644 --- a/packages/astro/src/cli/index.ts +++ b/packages/astro/src/cli/index.ts @@ -97,7 +97,7 @@ function resolveCommand(flags: Arguments): CLICommand { } else if (flags.help) { return 'help'; } - const cmd = flags._[2]; + const cmd = flags._[2] as string; const supportedCommands = new Set(['dev', 'build', 'preview', 'check']); if (supportedCommands.has(cmd)) { return cmd as 'dev' | 'build' | 'preview' | 'check'; diff --git a/packages/astro/test/0-css.test.js b/packages/astro/test/0-css.test.js index 492138001..eec091c24 100644 --- a/packages/astro/test/0-css.test.js +++ b/packages/astro/test/0-css.test.js @@ -96,12 +96,10 @@ describe('CSS', function () { describe('JSX', () => { it('.css', async () => { const el = $('#react-css'); - // 1. check HTML expect(el.attr('class')).to.include('react-title'); - // 2. check CSS - expect(bundledCSS).to.include('.react-title{'); + expect(bundledCSS).to.include('.react-title'); }); it('.module.css', async () => { @@ -196,7 +194,7 @@ describe('CSS', function () { expect(el.attr('class')).to.include(moduleClass); // 2. check CSS - expect(bundledCSS).to.include(`${moduleClass}{`); + expect(bundledCSS).to.match(new RegExp(`.${moduleClass}[^{]*{font-family:cursive}`)); }); it('