@fastly/compute-js-static-publish 6.0.0-beta.2 → 6.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"file":"init-app.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/init-app.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAiQvD,wBAAgB,OAAO,CAAC,iBAAiB,EAAE,kBAAkB,QAmd5D"}
1
+ {"version":3,"file":"init-app.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/init-app.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAiQvD,wBAAgB,OAAO,CAAC,iBAAiB,EAAE,kBAAkB,QAqd5D"}
@@ -583,7 +583,9 @@ ${useWebpack ? 'module.exports =' : 'export default'} config;
583
583
  fs.copyFileSync(webpackConfigJsSrcPath, webpackConfigJsPath);
584
584
  }
585
585
  // src/index.js
586
- const staticsRelativePath = path.relative('./src', staticContentRootDir);
586
+ const staticsRelativePath = staticContentRootDir !== './src' ?
587
+ path.relative('./src', staticContentRootDir) :
588
+ '.';
587
589
  const indexJsContent = /* language=JavaScript */ `\
588
590
  /// <reference types="@fastly/js-compute" />
589
591
  import { getServer } from '${staticsRelativePath}/statics.js';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fastly/compute-js-static-publish",
3
3
  "type": "module",
4
- "version": "6.0.0-beta.2",
4
+ "version": "6.0.0",
5
5
  "description": "Static Publisher for Fastly Compute JavaScript",
6
6
  "main": "./build/index.js",
7
7
  "types": "./build/index.d.ts",