diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ec7cca8..c04171e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -20,4 +20,4 @@ jobs: ${{ runner.os }}-node- - run: npm ci - name: build - run: npm exec js-compute-runtime ./src/index.js ./bin/main.wasm + run: npm run build diff --git a/fastly.toml b/fastly.toml index bd6c821..c1acdb4 100644 --- a/fastly.toml +++ b/fastly.toml @@ -1,5 +1,11 @@ -manifest_version = 2 -name = "Default starter for JavaScript" -description = "A basic starter kit that demonstrates routing, simple synthetic responses and overriding caching rules." +# This file describes a Fastly Compute@Edge package. To learn more visit: +# https://developer.fastly.com/reference/fastly-toml/ + authors = [""] +description = "A basic starter kit that demonstrates routing, simple synthetic responses and overriding caching rules." language = "javascript" +manifest_version = 2 +name = "Default starter for JavaScript" + +[scripts] + build = "npm run build" diff --git a/npm-shrinkwrap.json b/npm-shrinkwrap.json index ae8746e..656df6f 100644 --- a/npm-shrinkwrap.json +++ b/npm-shrinkwrap.json @@ -64,17 +64,24 @@ "@jakechampion/wizer-win32-x64": "1.6.0" } }, + "node_modules/@jakechampion/wizer-darwin-arm64": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/@jakechampion/wizer-darwin-arm64/-/wizer-darwin-arm64-1.6.0.tgz", + "integrity": "sha512-bQdIPdR+Ye0GiNdirVhx0kx14oY2uzwXfh/2dDgteBdcb7mDubzKbdt3ROMyV1UFRVhOtqbthZNk7qLBB6Occg==", + "cpu": ["arm64"], + "optional": true, + "os": ["darwin"], + "bin": { + "wizer-darwin-arm64": "wizer" + } + }, "node_modules/@jakechampion/wizer-darwin-x64": { "version": "1.6.0", "resolved": "https://registry.npmjs.org/@jakechampion/wizer-darwin-x64/-/wizer-darwin-x64-1.6.0.tgz", "integrity": "sha512-b+hdpZbhilsroSJU4Z2t+qj9lz3lr3M0TTyM8vlHODP0j8ZabZwPM8314wuSdSrHM5fZ9qIAO2Q94AUBBOeuRA==", - "cpu": [ - "x64" - ], + "cpu": ["x64"], "optional": true, - "os": [ - "darwin" - ], + "os": ["darwin"], "bin": { "wizer-darwin-x64": "wizer" } @@ -83,17 +90,24 @@ "version": "1.6.0", "resolved": "https://registry.npmjs.org/@jakechampion/wizer-linux-x64/-/wizer-linux-x64-1.6.0.tgz", "integrity": "sha512-nOH/wwoN/jaLYBKyCnEQJtqEOrSuXMOWIdnh/vAp5w4sFXuyelyZY0k6g9b8puzLOyXJTrUoYfhHyf2vdLGlxQ==", - "cpu": [ - "x64" - ], + "cpu": ["x64"], "optional": true, - "os": [ - "linux" - ], + "os": ["linux"], "bin": { "wizer-linux-x64": "wizer" } }, + "node_modules/@jakechampion/wizer-win32-x64": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/@jakechampion/wizer-win32-x64/-/wizer-win32-x64-1.6.0.tgz", + "integrity": "sha512-9xzpraJIhLdOnXTC1DjxjyfV52BBlAZTTAlpnE04GxVRvRGZ6wPi/RdACkg3inAfeTP7A/bTq3BJLql/Hansdw==", + "cpu": ["x64"], + "optional": true, + "os": ["win32"], + "bin": { + "wizer-win32-x64": "wizer" + } + }, "node_modules/@jridgewell/gen-mapping": { "version": "0.3.2", "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.2.tgz", @@ -2031,6 +2045,12 @@ "integrity": "sha512-b+hdpZbhilsroSJU4Z2t+qj9lz3lr3M0TTyM8vlHODP0j8ZabZwPM8314wuSdSrHM5fZ9qIAO2Q94AUBBOeuRA==", "optional": true }, + "@jakechampion/wizer-linux-x64": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/@jakechampion/wizer-linux-x64/-/wizer-linux-x64-1.6.0.tgz", + "integrity": "sha512-nOH/wwoN/jaLYBKyCnEQJtqEOrSuXMOWIdnh/vAp5w4sFXuyelyZY0k6g9b8puzLOyXJTrUoYfhHyf2vdLGlxQ==", + "optional": true + }, "@jridgewell/gen-mapping": { "version": "0.3.2", "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.2.tgz", diff --git a/package.json b/package.json index 5e70177..3461603 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,6 @@ "type": "git", "url": "git+https://github.com/fastly/compute-starter-kit-javascript-default.git" }, - "type": "module", "author": "oss@fastly.com", "license": "MIT", "bugs": {