Skip to content

Commit

Permalink
fix(#192): replace getStaticDirectory with kit.files.assets (#193)
Browse files Browse the repository at this point in the history
Co-authored-by: James Hegedus <jthegedus@hey.com>
Fixes #192
  • Loading branch information
pham authored Dec 14, 2022
1 parent 277cb17 commit a4b4daa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const entrypoint = function (options = {}) {

builder.log.minor(`Adapter configuration:\n\t${JSON.stringify(options)}`);
const {functions, publicDir} = parseFirebaseConfiguration({firebaseJsonPath, target, sourceRewriteMatch});
ensureStaticResourceDirsDiffer({source: path.join(process.cwd(), builder.getStaticDirectory()), dest: publicDir});
ensureStaticResourceDirsDiffer({source: path.join(process.cwd(), builder.config.kit.files.assets), dest: publicDir});
const functionsPackageJson = JSON.parse(readFileSync(path.join(functions.source, 'package.json'), 'utf8'));
if (!functionsPackageJson?.main) {
throw new Error(`Error reading ${functionsPackageJson}. Required field "main" missing.`);
Expand Down

0 comments on commit a4b4daa

Please sign in to comment.