plugin-uploader is not installed even if "use @kintone/plugin-uploader" is selected
tasshi-me opened this issue · 1 comments
tasshi-me commented
Target Package
- @kintone/create-plugin
Environment
- Operating System: Windows only
- Browser: N/A
- Node.js version: 16.15.0
Current Behavior
plugin-uploader is not installed even if "use @kintone/plugin-uploader" is selected.
Both minimum
and modern
templates have the same problem.
Expected Behavior
Install plugin-uploader correctly.
tasshi-me commented
In a Windows environment, the following condition is always false because of the difference in path delimiter.
LHS: C:/Users/tasshi/workspace/js-sdk/packages/create-plugin/templates/minimum/package.json
RHS: C:\Users\tasshi\workspace\js-sdk\packages\create-plugin\templates\minimum\package.json
);
} else if (filePath === path.join(srcDir, "package.json")) {
const packageJson: PackageJson = JSON.parse(
fs.readFileSync(filePath, "utf-8")
);
packageJson.name = manifest.name.en.replace(/\s/g, "-");
https://github.com/kintone/js-sdk/blob/master/packages/create-plugin/src/template.ts#L79