@astrojs/deno
Advanced tools
Comparing version 0.1.6 to 0.1.7
# @astrojs/node | ||
## 0.1.7 | ||
### Patch Changes | ||
- [#3734](https://github.com/withastro/astro/pull/3734) [`4acd245d`](https://github.com/withastro/astro/commit/4acd245d8f59871eb9c0083ae1a0fe7aa70c84f5) Thanks [@bholmesdev](https://github.com/bholmesdev)! - Fix: append shim to top of built file to avoid "can't read process of undefined" issues | ||
## 0.1.6 | ||
@@ -4,0 +10,0 @@ |
@@ -5,2 +5,6 @@ import esbuild from "esbuild"; | ||
import { fileURLToPath } from "url"; | ||
const SHIM = `globalThis.process = { | ||
argv: [], | ||
env: Deno.env.toObject(), | ||
};`; | ||
function getAdapter(args) { | ||
@@ -56,3 +60,6 @@ return { | ||
bundle: true, | ||
external: ["@astrojs/markdown-remark"] | ||
external: ["@astrojs/markdown-remark"], | ||
banner: { | ||
js: SHIM | ||
} | ||
}); | ||
@@ -59,0 +66,0 @@ try { |
@@ -1,2 +0,1 @@ | ||
import './shim.js'; | ||
import type { SSRManifest } from 'astro'; | ||
@@ -3,0 +2,0 @@ interface Options { |
@@ -1,2 +0,1 @@ | ||
import "./shim.js"; | ||
import { App } from "astro/app"; | ||
@@ -3,0 +2,0 @@ import { Server } from "https://deno.land/std@0.132.0/http/server.ts"; |
{ | ||
"name": "@astrojs/deno", | ||
"description": "Deploy your site to a Deno server", | ||
"version": "0.1.6", | ||
"version": "0.1.7", | ||
"type": "module", | ||
@@ -22,7 +22,7 @@ "types": "./dist/index.d.ts", | ||
"dependencies": { | ||
"esbuild": "^0.14.42" | ||
"esbuild": "^0.14.43" | ||
}, | ||
"devDependencies": { | ||
"astro": "1.0.0-beta.51", | ||
"astro-scripts": "0.0.4" | ||
"astro": "1.0.0-beta.58", | ||
"astro-scripts": "0.0.5" | ||
}, | ||
@@ -29,0 +29,0 @@ "scripts": { |
@@ -12,2 +12,7 @@ import type { AstroAdapter, AstroIntegration } from 'astro'; | ||
const SHIM = `globalThis.process = { | ||
argv: [], | ||
env: Deno.env.toObject(), | ||
};`; | ||
export function getAdapter(args?: Options): AstroAdapter { | ||
@@ -67,2 +72,5 @@ return { | ||
external: ['@astrojs/markdown-remark'], | ||
banner: { | ||
js: SHIM, | ||
}, | ||
}); | ||
@@ -69,0 +77,0 @@ |
@@ -1,6 +0,1 @@ | ||
// NOTE(fks): Side-effect -- shim.js must run first. This isn't guaranteed by | ||
// the language, but it is a Node.js behavior that we rely on here. Keep this | ||
// separate from the other imports so that it doesn't get organized & reordered. | ||
import './shim.js'; | ||
// Normal Imports | ||
@@ -48,2 +43,3 @@ import type { SSRManifest } from 'astro'; | ||
_startPromise = Promise.resolve(_server.listenAndServe()); | ||
// eslint-disable-next-line no-console | ||
console.error(`Server running on port ${port}`); | ||
@@ -50,0 +46,0 @@ } |
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
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
24455
25
Updatedesbuild@^0.14.43