fix build errors
This commit is contained in:
parent
04b8ada4d5
commit
25dc090cec
3 changed files with 5 additions and 7 deletions
|
|
@ -57,7 +57,7 @@ async function installNodeModuleInTempDirAndCopyToCurrent(packageName, toCopy) {
|
|||
console.log(`Copying ${packageName} to ${toCopy}`);
|
||||
// This is a way to install only one package without npm trying to install all the dependencies
|
||||
// Create a temporary directory for installing the package
|
||||
const adjustedName = packageName.replace(/^@/, "").replace("/", "-");
|
||||
const adjustedName = packageName.replace(/@/g, "").replace("/", "-");
|
||||
const tempDir = path.join(
|
||||
__dirname,
|
||||
"tmp",
|
||||
|
|
|
|||
|
|
@ -299,7 +299,7 @@ const exe = os === "win32" ? ".exe" : "";
|
|||
console.log(`Copying ${packageName} to ${toCopy}`);
|
||||
// This is a way to install only one package without npm trying to install all the dependencies
|
||||
// Create a temporary directory for installing the package
|
||||
const adjustedName = packageName.replace(/^@/, "").replace("/", "-");
|
||||
const adjustedName = packageName.replace(/@/g, "").replace("/", "-");
|
||||
|
||||
const tempDir = `/tmp/continue-node_modules-${adjustedName}`;
|
||||
const currentDir = process.cwd();
|
||||
|
|
|
|||
|
|
@ -239,7 +239,7 @@ const MentionList = forwardRef((props: MentionListProps, ref) => {
|
|||
setSelectedIndex((prevIndex) => {
|
||||
const newIndex = prevIndex - 1 >= 0 ? prevIndex - 1 : 0;
|
||||
itemRefs.current[newIndex]?.scrollIntoView({
|
||||
behavior: "instant",
|
||||
behavior: "instant" as ScrollBehavior,
|
||||
block: "nearest",
|
||||
});
|
||||
return newIndex;
|
||||
|
|
@ -250,7 +250,7 @@ const MentionList = forwardRef((props: MentionListProps, ref) => {
|
|||
setSelectedIndex((prevIndex) => {
|
||||
const newIndex = prevIndex + 1 < totalItems ? prevIndex + 1 : prevIndex;
|
||||
itemRefs.current[newIndex]?.scrollIntoView({
|
||||
behavior: "instant",
|
||||
behavior: "instant" as ScrollBehavior,
|
||||
block: "nearest",
|
||||
});
|
||||
return newIndex;
|
||||
|
|
@ -362,9 +362,7 @@ const MentionList = forwardRef((props: MentionListProps, ref) => {
|
|||
<DropdownIcon item={item} className="mr-2" />
|
||||
</>
|
||||
)}
|
||||
<span title={item.id}>
|
||||
{item.title}
|
||||
</span>
|
||||
<span title={item.id}>{item.title}</span>
|
||||
{" "}
|
||||
</div>
|
||||
<span
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue