Trey Overton
05/19/2022, 2:02 PMTrey Overton
05/19/2022, 3:42 PMTim
05/19/2022, 9:07 PMconst root = this.node.root as <http://sst.App|sst.App>;
const { appPath } = root;
const dirname = path.relative(appPath, __dirname);
where dirname
has the relative path from the app root to the stack definition inside node_modules
Tim
05/19/2022, 9:07 PMTrey Overton
05/20/2022, 1:49 PMurl.fileURLToPath(import.meta.url);
Perhaps this might be an alternative to your version, except yours already works, so is amazing.