|
1 | 1 | onBoot="npm install" |
2 | 2 | run = "npm install && node --no-warnings ." |
| 3 | +entrypoint = "index.js" |
| 4 | +hidden = [".config", "package-lock.json"] |
3 | 5 |
|
4 | 6 | [nix] |
5 | 7 | channel = "stable-21_11" |
| 8 | + |
| 9 | +[languages] |
| 10 | + |
| 11 | +[languages.javascript] |
| 12 | +pattern = "**/{*.js,*.jsx,*.ts,*.tsx}" |
| 13 | + |
| 14 | +[languages.javascript.languageServer] |
| 15 | +start = "typescript-language-server --stdio" |
| 16 | + |
| 17 | +[debugger] |
| 18 | +support = true |
| 19 | + |
| 20 | +[debugger.interactive] |
| 21 | +transport = "localhost:0" |
| 22 | +startCommand = ["dap-node"] |
| 23 | + |
| 24 | +[debugger.interactive.initializeMessage] |
| 25 | +command = "initialize" |
| 26 | +type = "request" |
| 27 | + |
| 28 | +[debugger.interactive.initializeMessage.arguments] |
| 29 | +clientID = "replit" |
| 30 | +clientName = "replit.com" |
| 31 | +columnsStartAt1 = true |
| 32 | +linesStartAt1 = true |
| 33 | +locale = "en-us" |
| 34 | +pathFormat = "path" |
| 35 | +supportsInvalidatedEvent = true |
| 36 | +supportsProgressReporting = true |
| 37 | +supportsRunInTerminalRequest = true |
| 38 | +supportsVariablePaging = true |
| 39 | +supportsVariableType = true |
| 40 | + |
| 41 | +[debugger.interactive.launchMessage] |
| 42 | +command = "launch" |
| 43 | +type = "request" |
| 44 | + |
| 45 | +[debugger.interactive.launchMessage.arguments] |
| 46 | +console = "externalTerminal" |
| 47 | +cwd = "." |
| 48 | +pauseForSourceMap = false |
| 49 | +program = "./index.js" |
| 50 | +request = "launch" |
| 51 | +sourceMaps = true |
| 52 | +stopOnEntry = false |
| 53 | +type = "pwa-node" |
| 54 | + |
| 55 | +[packager] |
| 56 | +language = "nodejs" |
| 57 | + |
| 58 | +[packager.features] |
| 59 | +packageSearch = true |
| 60 | +guessImports = true |
| 61 | +enabledForHosting = false |
| 62 | + |
| 63 | +[interpreter] |
| 64 | +command = ["prybar-nodejs", "-q", "--ps1", "\u0001\u001B[33m\u0002\u0001\u001B[00m\u0002 ", "-i"] |
| 65 | + |
| 66 | +[unitTest] |
| 67 | +language = "nodejs" |
| 68 | + |
| 69 | +[env] |
| 70 | +XDG_CONFIG_HOME = "/home/runner/$REPL_SLUG/.config" |
| 71 | +PATH = "/home/runner/$REPL_SLUG/.config/npm/node_global/bin:/home/runner/$REPL_SLUG/node_modules/.bin" |
| 72 | +npm_config_prefix = "/home/runner/$REPL_SLUG/.config/npm/node_global" |
| 73 | + |
| 74 | +[gitHubImport] |
| 75 | +requiredFiles = [".replit", "replit.nix", ".config", "package.json", "package-lock.json"] |
| 76 | + |
| 77 | +[[hints]] |
| 78 | +regex = 'Error \[ERR_REQUIRE_ESM\]' |
| 79 | +message = "We see that you are using require(...) inside your code. We currently do not support this syntax. Please use 'import' instead when using external modules. (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import)" |
| 80 | + |
| 81 | +[deployment] |
| 82 | +run = ["sh", "-c", "node index.js"] |
0 commit comments