Skip to content

Commit

Permalink
handle getpath in assets
Browse files Browse the repository at this point in the history
  • Loading branch information
znewsham committed May 3, 2023
1 parent 955373c commit 63820a1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/assets/package.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package.describe({
name: 'assets',
version: '0.0.2',
version: '0.0.3',
description: 'a simple assets package',
});

Expand Down
3 changes: 3 additions & 0 deletions packages/assets/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ export function createAssets(moduleId) {
return Fiber.current
? Promise.await(fsPromises.readFile(path.join(basePath, file))).toString()
: fs.readFileSync(path.join(basePath, file)).toString();
},
absoluteFilePath(file) {
return path.join(basePath, file);
}
}
};

0 comments on commit 63820a1

Please sign in to comment.