From 24f50220e12c8a6d6f2765c3b06fb9d2bee4d1b6 Mon Sep 17 00:00:00 2001 From: "Fred K. Schott" Date: Sat, 10 Apr 2021 13:17:09 -0700 Subject: [PATCH] update package.json --- README.md | 5 +++-- package.json | 14 ++------------ src/compiler/codegen.ts | 4 ++-- 3 files changed, 7 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index cd1241b7f..537547a58 100644 --- a/README.md +++ b/README.md @@ -4,8 +4,9 @@ A next-generation static-site generator with partial hydration. Use your favorit ## 🔧 Setup -``` -npm install astro +```bash +# currently hidden during private beta, please don't share :) +npm install astro@shhhhh ``` ## 🧞 Development diff --git a/package.json b/package.json index e221e8642..7239689e1 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,6 @@ { "name": "astro", - "version": "0.0.1", - "main": "index.js", - "private": true, + "version": "0.0.3", "author": "Skypack", "license": "MIT", "type": "module", @@ -35,12 +33,8 @@ "@snowpack/plugin-vue": "^2.4.0", "@vue/server-renderer": "^3.0.11", "acorn": "^7.4.0", - "acorn-jsx": "^5.3.1", - "astring": "^1.7.0", "autoprefixer": "^10.2.5", - "css-tree": "^1.1.2", - "deepmerge": "^4.2.2", - "domhandler": "^4.0.0", + "cheerio": "^1.0.0-rc.5", "es-module-lexer": "^0.4.1", "esbuild": "^0.10.1", "estree-walker": "^3.0.0", @@ -48,7 +42,6 @@ "find-up": "^5.0.0", "github-slugger": "^1.3.0", "gray-matter": "^4.0.2", - "htmlparser2": "^6.0.0", "kleur": "^4.1.4", "locate-character": "^2.0.5", "magic-string": "^0.25.3", @@ -69,7 +62,6 @@ "sass": "^1.32.8", "snowpack": "^3.2.2", "svelte": "^3.35.0", - "tiny-glob": "^0.2.8", "vue": "^3.0.11", "yargs-parser": "^20.2.7" }, @@ -86,12 +78,10 @@ "@types/yargs-parser": "^20.2.0", "@typescript-eslint/eslint-plugin": "^4.18.0", "@typescript-eslint/parser": "^4.18.0", - "cheerio": "^1.0.0-rc.5", "concurrently": "^6.0.0", "eslint": "^7.22.0", "eslint-config-prettier": "^8.1.0", "eslint-plugin-prettier": "^3.3.1", - "nodemon": "^2.0.7", "prettier": "^2.2.1", "typescript": "^4.2.3", "uvu": "^0.5.1" diff --git a/src/compiler/codegen.ts b/src/compiler/codegen.ts index 031cc8ee2..be9493435 100644 --- a/src/compiler/codegen.ts +++ b/src/compiler/codegen.ts @@ -5,7 +5,7 @@ import type { JsxItem, TransformResult } from '../@types/astro'; import eslexer from 'es-module-lexer'; import esbuild from 'esbuild'; -import glob from 'tiny-glob/sync.js'; +import { fdir, PathsOutput } from 'fdir'; import path from 'path'; import { walk } from 'estree-walker'; import babelParser from '@babel/parser'; @@ -419,7 +419,7 @@ function compileModule(module: Script, state: CodegenState, compileOptions: Comp if (cachedLookups.get(spec)) { found = cachedLookups.get(spec) as string[]; } else { - found = glob(spec, { cwd: path.dirname(state.filename), filesOnly: true }); + found = new fdir().glob(spec).withFullPaths().crawl(path.dirname(state.filename)).sync() as PathsOutput; cachedLookups.set(spec, found); miniGlobCache.set(state.filename, cachedLookups); }