From 622ffbf761856649b77aec2e2a001bfc1c25bccf Mon Sep 17 00:00:00 2001 From: Nate Goldsborough Date: Thu, 25 Aug 2022 00:43:59 -0500 Subject: [PATCH] Adding csClasses command, broken code do not use --- COMPSCI-Fall-Class-List.json | 237 ---------------------------------- commands/owner/csClassPoll.ts | 108 ++++++++++++++++ csClasses.ts | 192 +++++++++++++++++++++++++++ index.ts | 2 +- tsconfig.json | 2 +- 5 files changed, 302 insertions(+), 239 deletions(-) delete mode 100644 COMPSCI-Fall-Class-List.json create mode 100644 commands/owner/csClassPoll.ts create mode 100644 csClasses.ts diff --git a/COMPSCI-Fall-Class-List.json b/COMPSCI-Fall-Class-List.json deleted file mode 100644 index 94a7bbd..0000000 --- a/COMPSCI-Fall-Class-List.json +++ /dev/null @@ -1,237 +0,0 @@ -[ - { - "code": "COMPSCI 150", - "title": "Survey of Computer Science", - "info": "A survey of computer science. Topics include data storage and manipulation, operating systems and networks, algorithms and data structures, programming languages, artificial intelligence, and computability.\n\nCounts as repeat of CompSci 299 with similar topic. Prereq: none." - }, - { - "code": "COMPSCI 202", - "title": "Introductory Programming Using Python", - "info": "A survey of computer science. Topics include data storage and manipulation, operating systems and networks, algorithms and data structures, programming languages, artificial intelligence, and computability.\n\nCounts as repeat of CompSci 299 with similar topic. Prereq: none." - }, - { - "code": "COMPSCI 250", - "title": "Introductory Computer Programming", - "info": "Programming in Python. Basic control structures including recursion. Basic and library data types. Problem solving with objects. Writing classes. Basic software development skills.\n\nCounts as repeat of CompSci 290 with similar topic. Pre-req: Level 30 on Math Placement Test, or a grade of C or better in Math 105 or 108." - }, - { - "code": "COMPSCI 251", - "title": "Intermediate Computer Programming", - "info": "Problem solving with structured programming techniques using an object-oriented programming language, including control structures, functions, arrays, vectors, and pre-defined objects.\n\nPrereq: Math Placement level 30." - }, - { - "code": "COMPSCI 317", - "title": "Discrete Information Structures", - "info": "Problem solving with structured programming techniques using an object-oriented programming language, including control structures, functions, arrays, vectors, and pre-defined objects.\n\nPrereq: Math Placement level 30." - }, - { - "code": "COMPSCI 337", - "title": "System Programming", - "info": "Introduction to the application programmer interface for a modern operating system. Overview of mechanisms for object oriented programming and memory management\n\nPrereq: C or better in CompSci 251(P)" - }, - { - "code": "COMPSCI 351", - "title": "Data Structures and Algorithms", - "info": "Programming in a structured, high-level, object-oriented language. Implementation of data structures and algorithms and their application.\n\nPrereq: Math Placement Level 40 or Math 116(P) or 211(P); C or better in CompSci 251(P)." - }, - { - "code": "COMPSCI 361", - "title": "Introduction to Software Engineering", - "info": "Introduction to core topics of software engineering including requirements analysis, object-oriented design, testing, and project management. Overview of ethical and social issues in computing.\n\nPrereq: C or better in CompSci 351(P), satisfaction of GER English Composition competency req." - }, - { - "code": "COMPSCI 423", - "title": "Introduction to Natural Language Processing", - "info": "Introduction to natural language processing programs and an overview of the field. Topics include syntactic frameworks, parsing, semantics, interpretation, and applications.\n\nPrereq: jr st; C or better in CompSci 351(P)." - }, - { - "code": "COMPSCI 431", - "title": "Programming Languages Concepts", - "info": "Examination of abstract features of languages. Study of syntactic and semantic models; design and programming in procedural, object-oriented, functional and logical languages. Implementation methods.\n\nPrereq: jr st; grade of C or better in CompSci 351(252)(P)." - }, - { - "code": "COMPSCI 431G", - "title": "Programming Languages Concepts", - "info": "Examination of abstract features of languages. Study of syntactic and semantic models; design and programming in procedural, object-oriented, functional and logical languages. Implementation methods.\n\nPrereq: jr st; grade of C or better in CompSci 351(252)(P)." - }, - { - "code": "COMPSCI 458", - "title": "Computer Architecture", - "info": "Processor organization, memory hierarchy, pipelining, computer architectures exploiting instruction/data/thread level parallelism, warehouse scale computers.\n\nCOMPSCI 458 and ELECENG 458 are jointly offered and count as repeats of one another. Prereq: sophomore standing and a grade of C or better in COMPSCI 241(P) or COMPSCI 251(P)." - }, - { - "code": "COMPSCI 458G", - "title": "Computer Architecture", - "info": "Processor organization, memory hierarchy, pipelining, computer architectures exploiting instruction/data/thread level parallelism, warehouse scale computers.\n\nCOMPSCI 458 and ELECENG 458 are jointly offered and count as repeats of one another. Prereq: sophomore standing and a grade of C or better in COMPSCI 241(P) or COMPSCI 251(P)." - }, - { - "code": "COMPSCI 481", - "title": "Server-side Internet Programming", - "info": "Introduces students to the concept of server-side programming and web applications development. Topics include dynamic web site development, session management, security, and relational databases.\n\nPrereq:jr st; one of COMPSCI 113 (P), INFOST 320 (P), or ART 324 (P); C or better in COMPSCI 202(P), COMPSCI 361(P) or COMPST 702(P)." - }, - { - "code": "COMPSCI 481G", - "title": "Server-side Internet Programming", - "info": "Introduces students to the concept of server-side programming and web applications development. Topics include dynamic web site development, session management, security, and relational databases.\n\nPrereq:jr st; one of COMPSCI 113 (P), INFOST 320 (P), or ART 324 (P); C or better in COMPSCI 202(P), COMPSCI 361(P) or COMPST 702(P)." - }, - { - "code": "COMPSCI 520", - "title": "Computer Networks", - "info": "Layered network architecture, protocols, data transmission, local area networks, multiplexing and switching, routing flow and congestion control, internetworking, wireless networking, network reliability and security.\n\nPrereq: jr. st; CompSci 315(215)(P) or CompSci 458(P) or ElecEng 367(P)." - }, - { - "code": "COMPSCI 520G", - "title": "Computer Networks", - "info": "Layered network architecture, protocols, data transmission, local area networks, multiplexing and switching, routing flow and congestion control, internetworking, wireless networking, network reliability and security.\n\nPrereq: jr. st; CompSci 315(215)(P) or CompSci 458(P) or ElecEng 367(P)." - }, - { - "code": "COMPSCI 535", - "title": "Algorithm Design and Analysis", - "info": "Introduction to abstract data structures, analysis of time and space requirements of numerical and non-numerical algorithms methods for data manipulation.\n\nPrereq: junior standing; MATH 211(P), MATH 213(P), MATH 221(P) or MATH 231(P); a grade of C or better in COMPSCI 351(P); and either COMPSCI 317(P) or both MATH 341(P) and MTHSTAT 361(P)." - }, - { - "code": "COMPSCI 535G", - "title": "Algorithm Design and Analysis", - "info": "Introduction to abstract data structures, analysis of time and space requirements of numerical and non-numerical algorithms methods for data manipulation.\n\nPrereq: junior standing; MATH 211(P), MATH 213(P), MATH 221(P) or MATH 231(P); a grade of C or better in COMPSCI 351(P); and either COMPSCI 317(P) or both MATH 341(P) and MTHSTAT 361(P)." - }, - { - "code": "COMPSCI 537", - "title": "Introduction to Operating Systems", - "info": "Process management including process creation, switching, multithreading, scheduling, communication and concurrency control; memory management including paging, segmentation and virtual memory; systems programming.\n\nPrereq: jr st; CompSci 458(C) or ElecEng 458(C); CompSci 337(P)." - }, - { - "code": "COMPSCI 537G", - "title": "Introduction to Operating Systems", - "info": "Process management including process creation, switching, multithreading, scheduling, communication and concurrency control; memory management including paging, segmentation and virtual memory; systems programming.\n\nPrereq: jr st; CompSci 458(C) or ElecEng 458(C); CompSci 337(P)." - }, - { - "code": "COMPSCI 552", - "title": "Advanced Object-Oriented Programming", - "info": "An advanced course in object-oriented programming. Abstraction; single and multiple inheritance; dynamic binding of functions; polymorphic types and operators; survey of object-oriented techniques.\n\nPrereq: jr st; C or better in both CompSci 351(P) & 361(P)." - }, - { - "code": "COMPSCI 552G", - "title": "Advanced Object-Oriented Programming", - "info": "An advanced course in object-oriented programming. Abstraction; single and multiple inheritance; dynamic binding of functions; polymorphic types and operators; survey of object-oriented techniques.\n\nPrereq: jr st; C or better in both CompSci 351(P) & 361(P)." - }, - { - "code": "COMPSCI 594", - "title": "Capstone Project Preparation", - "info": "Student teams will develop requirements and functionality specifications for their capstone projects and conduct the necessary research on the prior art and technologies to be used.\n\nMeant to be taken in the semester immediately prior to the one in which the student will take COMPSCI 595. Prereq: senior standing." - }, - { - "code": "COMPSCI 595", - "title": "Capstone Project", - "info": "Students will integrate their knowledge of the undergraduate computer science curriculum by implementing a significant computer science team project.\n\nPrereq: senior standing, COMPSCI 351(P), COMPSCI 361(P), COMPSCI 594(P) and credit in at least 6 credits of 400 or higher COMPSCI or ELECENG courses." - }, - { - "code": "COMPSCI 599", - "title": "Senior Thesis", - "info": "Independent scholarly research in Computer Science supervised by a faculty member.\n\nPrereq: sr st & cons instr." - }, - { - "code": "COMPSCI 657", - "title": "Topics in Computer Science: 3D Graphics", - "info": "Lectures on recent advances in computer science. Specific credits and any additional prerequisites will be announced in Schedule of Classes whenever course is offered.\n\nMay be retaken w/chg in topic to 9 cr max. Prereq: jr st." - }, - { - "code": "COMPSCI 657", - "title": "Topics in Computer Science: Cloud Computing", - "info": "Lectures on recent advances in computer science. Specific credits and any additional prerequisites will be announced in Schedule of Classes whenever course is offered.\n\nMay be retaken w/chg in topic to 9 cr max. Prereq: jr st." - }, - { - "code": "COMPSCI 657", - "title": "Topics in Computer Science: Concurrent Programming", - "info": "Lectures on recent advances in computer science. Specific credits and any additional prerequisites will be announced in Schedule of Classes whenever course is offered.\n\nMay be retaken w/chg in topic to 9 cr max. Prereq: jr st." - }, - { - "code": "COMPSCI 657", - "title": "Topics in Computer Science: Database Security", - "info": "Lectures on recent advances in computer science. Specific credits and any additional prerequisites will be announced in Schedule of Classes whenever course is offered.\n\nMay be retaken w/chg in topic to 9 cr max. Prereq: jr st." - }, - { - "code": "COMPSCI 657", - "title": "Topics in Computer Science: Introduction to Research Computing", - "info": "Lectures on recent advances in computer science. Specific credits and any additional prerequisites will be announced in Schedule of Classes whenever course is offered.\n\nMay be retaken w/chg in topic to 9 cr max. Prereq: jr st." - }, - { - "code": "COMPSCI 657", - "title": "Topics in Computer Science: Social Computing: Platforms, Technologies, and Peo", - "info": "Lectures on recent advances in computer science. Specific credits and any additional prerequisites will be announced in Schedule of Classes whenever course is offered.\n\nMay be retaken w/chg in topic to 9 cr max. Prereq: jr st." - }, - { - "code": "COMPSCI 699", - "title": "Independent Study", - "info": "May be retaken to max of 6 cr by undergraduates. Prereq: jr st; cons instr." - }, - { - "code": "COMPSCI 720", - "title": "Computational Models of Decision Making", - "info": "Theoretical foundations and practical problems of formulating and constructing computational models of decision making.\n\nPrereq: basic course in Probability or Statistics." - }, - { - "code": "COMPSCI 723", - "title": "Natural Language Processing", - "info": "Principles and problems of natural language processing with emphasis on recent advances and open problems. Topics: lexicons, parsing, interpretation, discourse structure, generation, and collaborative interfaces.\n\nNot open to students with cr in CompSci 423. Prereq: grad st; CompSci 422(P) or 710(P)." - }, - { - "code": "COMPSCI 790", - "title": "Advanced Topics in Computer Science: 3D Graphics", - "info": "Discussion of special advanced topics in theoretical as well as applied areas in computer science.\n\nRetakable w/chg in topic to 9 cr max. Specific topics may be jointly-offered w/Philos. Prereq: grad st; add'l prereqs depending on topic." - }, - { - "code": "COMPSCI 790", - "title": "Advanced Topics in Computer Science: Cloud Computing", - "info": "Discussion of special advanced topics in theoretical as well as applied areas in computer science.\n\nRetakable w/chg in topic to 9 cr max. Specific topics may be jointly-offered w/Philos. Prereq: grad st; add'l prereqs depending on topic." - }, - { - "code": "COMPSCI 790", - "title": "Advanced Topics in Computer Science: Concurrent Programming", - "info": "Discussion of special advanced topics in theoretical as well as applied areas in computer science.\n\nRetakable w/chg in topic to 9 cr max. Specific topics may be jointly-offered w/Philos. Prereq: grad st; add'l prereqs depending on topic." - }, - { - "code": "COMPSCI 790", - "title": "Advanced Topics in Computer Science: Database Security", - "info": "Discussion of special advanced topics in theoretical as well as applied areas in computer science.\n\nRetakable w/chg in topic to 9 cr max. Specific topics may be jointly-offered w/Philos. Prereq: grad st; add'l prereqs depending on topic." - }, - { - "code": "COMPSCI 790", - "title": "Advanced Topics in Computer Science: Introduction to Research Computing", - "info": "Discussion of special advanced topics in theoretical as well as applied areas in computer science.\n\nRetakable w/chg in topic to 9 cr max. Specific topics may be jointly-offered w/Philos. Prereq: grad st; add'l prereqs depending on topic." - }, - { - "code": "COMPSCI 790", - "title": "Advanced Topics in Computer Science: Social Computing: Platforms, Technologies, and Peo", - "info": "Discussion of special advanced topics in theoretical as well as applied areas in computer science.\n\nRetakable w/chg in topic to 9 cr max. Specific topics may be jointly-offered w/Philos. Prereq: grad st; add'l prereqs depending on topic." - }, - { - "code": "COMPSCI 870", - "title": "Medical Informatics Seminar", - "info": "Presentations by medical informatics affiliated faculty and invited speakers. Graduate students may present their work or published research from recent medical informatics journals or conferences.\n\nMeets once every two weeks for 100 minutes. Prereq: grad st." - }, - { - "code": "COMPSCI 888", - "title": "Candidate for Degree", - "info": "Available for graduate students who must meet minimum credit load requirement.\n\nFee for 1 cr assessed; unit does not count towards credit load for Fin Aid. Repeatable. Satisfactory/Unsatisfactory only. Prereq: graduate standing." - }, - { - "code": "COMPSCI 990", - "title": "Masters Thesis", - "info": "Prereq: grad st; cons instr." - }, - { - "code": "COMPSCI 995", - "title": "Master's Capstone Project", - "info": "Independent project supervised by student's adviser\n\nPrereq: grad st; cons instr & grad prog comm." - }, - { - "code": "COMPSCI 998", - "title": "Doctoral Thesis", - "info": "Prereq: grad st; cons instr & grad prog committee." - }, - { - "code": "COMPSCI 999", - "title": "Advanced Independent Study", - "info": "Prereq: grad st; cons instr & grad prog comm." - } -] \ No newline at end of file diff --git a/commands/owner/csClassPoll.ts b/commands/owner/csClassPoll.ts new file mode 100644 index 0000000..9ee898a --- /dev/null +++ b/commands/owner/csClassPoll.ts @@ -0,0 +1,108 @@ +import chalk from "chalk"; +import { MessageEmbed, MessageActionRow, MessageSelectMenu, MessageActionRowComponent } from "discord.js"; +import { ICommand } from "wokcommands"; +import { checkForRoles } from "../../rolesOps"; +import csClassOptions from "../../csClasses"; + +export default { + name: "csClassPoll", + category: "owner", + description: "Posts the Cs Class Poll", + slash: true, + testOnly: false, + guildOnly: true, + requiredPermissions: ["MANAGE_GUILD", "MANAGE_ROLES"], + ownerOnly: true, + + callback: async ({ client, interaction: msgInt }) => { + // Define embeds used in this command + const infoEmbed = new MessageEmbed() + .setTitle("Choose a role") + .setColor("#0099ff") + .setDescription("Select the option(s) with your current COMPSCI classes.") + .setFooter({ + text: `Delivered in: ${client.ws.ping}ms | CSSC-Bot | ${process.env.VERSION}`, + iconURL: "https://playantares.com/resources/CSSC-bot/icon.jpg", + }); + + + // Create some vars + let csClassOptionsChunks = []; + let lessThan25Row = new MessageActionRow() + let greaterThan25RowList: MessageActionRowComponent[] = []; + + // Check if csClassOptions is larger than 25 items + if (csClassOptions.length > 25) { + // Split csClassOptions into chunks of 25 + for (let i = 0; i < csClassOptions.length; i += 25) { + csClassOptionsChunks.push(csClassOptions.slice(i, i + 25)); + console.log(csClassOptions.slice(i, i + 25)) //! DEBUG + console.log("got here") //! DEBUG + } + } + // Loop through csClassOptionsChunks + for (let i = 0; i < csClassOptionsChunks.length; i++) { + // Loop through csClassOptionsChunks[i] + let menu = new MessageSelectMenu() + menu.setCustomId(`csClassPoll+${i}`) + console.log(`csClassPoll+${i}`) //! DEBUG + menu.setPlaceholder("Select an option") + lessThan25Row.addComponents(menu); + for (let j = 0; j < csClassOptionsChunks[i].length; j++) { + // Create row one of the buttons for the poll + menu.addOptions( + { + label: csClassOptionsChunks[i][j].label, + value: csClassOptionsChunks[i][j].label, + description: csClassOptionsChunks[i][j].description, + } + ) + } + greaterThan25RowList.push(menu); + } + + + // Check if greaterThan25RowList contains any items, and if it does, loop through greaterThan25RowList + if (greaterThan25RowList.length > 0) { + + // console.log(greaterThan25RowList) //! DEBUG + + for (let i = 0; i < greaterThan25RowList.length; i++) { + // Loop through greaterThan25RowList[i] + let row = new MessageActionRow() + row.addComponents(greaterThan25RowList[i]) + msgInt.channel!.send({ embeds: [infoEmbed], components: [row] }); + } + } else { + msgInt.reply({ embeds: [infoEmbed], components: [lessThan25Row] }); + } + + + + + + + // Send the embed and message component rows + // rows.forEach((row) => { + // msgInt.reply({ embeds: [infoEmbed], components: [row] }); + // }); + + + // if (!checkForRoles(msgInt.guild!, 2)) { + // msgInt.reply("Please run the `/createRoles` command in this server to create the necessary roles for this poll!"); + // } else { + // rows.forEach((row) => { + // msgInt.reply({ embeds: [infoEmbed], components: [row] }); + // }); + // } + + // Log the command usage + console.log( + chalk.blue( + `${chalk.green(`[COMMAND]`)} ${chalk.yellow(msgInt.user.tag)} used the ${chalk.green(`/csclasspoll`)} command in ${chalk.yellow( + msgInt.guild?.name + )}` + ) + ); + }, +} as ICommand; diff --git a/csClasses.ts b/csClasses.ts new file mode 100644 index 0000000..f2805e2 --- /dev/null +++ b/csClasses.ts @@ -0,0 +1,192 @@ +const csClassOptions = [ + { + label: "COMPSCI 150", + description: "Survey of Computer Science" + }, + { + label: "COMPSCI 202", + description: "Introductory Programming Using Python" + }, + { + label: "COMPSCI 250", + description: "Introductory Computer Programming" + }, + { + label: "COMPSCI 251", + description: "Intermediate Computer Programming" + }, + { + label: "COMPSCI 317", + description: "Discrete Information Structures" + }, + { + label: "COMPSCI 337", + description: "System Programming" + }, + { + label: "COMPSCI 351", + description: "Data Structures and Algorithms" + }, + { + label: "COMPSCI 361", + description: "Introduction to Software Engineering" + }, + { + label: "COMPSCI 423", + description: "Introduction to Natural Language Processing" + }, + { + label: "COMPSCI 431", + description: "Programming Languages Concepts" + }, + { + label: "COMPSCI 431G", + description: "Programming Languages Concepts" + }, + { + label: "COMPSCI 458", + description: "Computer Architecture" + }, + { + label: "COMPSCI 458G", + description: "Computer Architecture" + }, + { + label: "COMPSCI 481", + description: "Server-side Internet Programming" + }, + { + label: "COMPSCI 481G", + description: "Server-side Internet Programming" + }, + { + label: "COMPSCI 520", + description: "Computer Networks" + }, + { + label: "COMPSCI 520G", + description: "Computer Networks" + }, + { + label: "COMPSCI 535", + description: "Algorithm Design and Analysis" + }, + { + label: "COMPSCI 535G", + description: "Algorithm Design and Analysis" + }, + { + label: "COMPSCI 537", + description: "Introduction to Operating Systems" + }, + { + label: "COMPSCI 537G", + description: "Introduction to Operating Systems" + }, + { + label: "COMPSCI 552", + description: "Advanced Object-Oriented Programming" + }, + { + label: "COMPSCI 552G", + description: "Advanced Object-Oriented Programming" + }, + { + label: "COMPSCI 594", + description: "Capstone Project Preparation" + }, + { + label: "COMPSCI 595", + description: "Capstone Project" + }, + { + label: "COMPSCI 599", + description: "Senior Thesis" + }, + { + label: "COMPSCI 657", + description: "Topics in Computer Science: 3D Graphics" + }, + { + label: "COMPSCI 657", + description: "Topics in Computer Science: Cloud Computing" + }, + // { + // label: "COMPSCI 657", + // description: "Topics in Computer Science: Concurrent Programming" + // }, + // { + // label: "COMPSCI 657", + // description: "Topics in Computer Science: Database Security" + // }, + // { + // label: "COMPSCI 657", + // description: "Topics in Computer Science: Introduction to Research Computing" + // }, + // { + // label: "COMPSCI 657", + // description: "Topics in Computer Science: Social Computing: Platforms, Technologies, and Peo" + // }, + // { + // label: "COMPSCI 699", + // description: "Independent Study" + // }, + // { + // label: "COMPSCI 720", + // description: "Computational Models of Decision Making" + // }, + // { + // label: "COMPSCI 723", + // description: "Natural Language Processing" + // }, + // { + // label: "COMPSCI 790", + // description: "Advanced Topics in Computer Science: 3D Graphics" + // }, + // { + // label: "COMPSCI 790", + // description: "Advanced Topics in Computer Science: Cloud Computing" + // }, + // { + // label: "COMPSCI 790", + // description: "Advanced Topics in Computer Science: Concurrent Programming" + // }, + // { + // label: "COMPSCI 790", + // description: "Advanced Topics in Computer Science: Database Security" + // }, + // { + // label: "COMPSCI 790", + // description: "Advanced Topics in Computer Science: Introduction to Research Computing" + // }, + // { + // label: "COMPSCI 790", + // description: "Advanced Topics in Computer Science: Social Computing: Platforms, Technologies, and Peo" + // }, + // { + // label: "COMPSCI 870", + // description: "Medical Informatics Seminar" + // }, + // { + // label: "COMPSCI 888", + // description: "Candidate for Degree" + // }, + // { + // label: "COMPSCI 990", + // description: "Masters Thesis" + // }, + // { + // label: "COMPSCI 995", + // description: "Master's Capstone Project" + // }, + // { + // label: "COMPSCI 998", + // description: "Doctoral Thesis" + // }, + // { + // label: "COMPSCI 999", + // description: "Advanced Independent Study" + // } +] + +export default csClassOptions \ No newline at end of file diff --git a/index.ts b/index.ts index 5f33754..f9a06bd 100644 --- a/index.ts +++ b/index.ts @@ -48,7 +48,7 @@ client.on("ready", () => { typeScript: true, mongoUri: String(process.env.MONGODB_URI), disabledDefaultCommands: ["help", "language"], - botOwners: ["603629606154666024", "680813135556378634"], + botOwners: ["603629606154666024", "680813135556378634", "451761128704573440"], }).setDefaultPrefix(String(process.env.BOT_DEFAULT_PREFIX)); // Set up the connection to the database diff --git a/tsconfig.json b/tsconfig.json index 8fa4c31..6fc73cc 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -33,7 +33,7 @@ // "typeRoots": [], /* Specify multiple folders that act like `./node_modules/@types`. */ // "types": [], /* Specify type package names to be included without being referenced in a source file. */ // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */ - // "resolveJsonModule": true, /* Enable importing .json files */ + "resolveJsonModule": true, /* Enable importing .json files */ // "noResolve": true, /* Disallow `import`s, `require`s or ``s from expanding the number of files TypeScript should add to a project. */ /* JavaScript Support */