You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
--use-on-cd this option able the fnm changes the version when entering in a directory, if a dotfile (.node-version) is present.
--version-file-strategy=recursive this option makes $ fnm use and $ fnm install take parent directories into account when looking for a version file when no argument was given.
The command $ notepad $profile only works on PowerShell. This command open the profile file (Microsoft.PowerShell_profile.ps1) of the PowerShell. This file is encountered at C:\Users\<username>\[OneDrive]\Documents\PowerShell.
To create an alias command to an application, put Set-Alias <alias> 'path\of\executable' in the PowerShell profile file.
This is the basic structure to build what is in ts path in es. Use references instead put the src/**/* at include.
Notes:
The compilerOptions.tsBuildInfoFile can be used to resolve conflict when two or more tsconfig file with "compilerOptions.composite: true points to the same path. This setting informs to compiler the relative path and the tsbuildinfo filename;
The compilerOptions.rootDir can be used to inform to the compiler that the root directory is in a parent path;
When use import with a relative path, you must to inform the .mjsextension of the file explicitly.
Building the structure
Inside the root path of the project, a folder (that contains a tsconfig.json file), run:
$ tsc -b
Note: for just emit declaration files (.d.ts), set compilerOptions.emitDeclarationOnly as true.
Publishing a Public Package
You need to authenticate with npm before, so run...
$ npm login
So put the Username or Email, and the Password.
Inside the folder that contains the built code with package.json, run:
$ npm publish --access public
Note that the --access flag is needed just in the first time, but can be used everytime.
By default the inspector starts at the first line of the source code, to start at the first debugger instruction setting up the environment variable of the OSNODE_INSPECT_RESUME_ON_START as 1.
Going to The Next Debugger Instruction
To go to the next debugger instruction, and pause at this breakpoint, type cont or c and press Enter, to instruct the inspector to continue...
debug> c
So the Node.js will stop only where the next debugger instruction or another breakpoint was defined.
Note: inside a loop or a recursive method, the continue instruction will stop at the breakpoint within this same loop, while that isn't resolved.
Inspecting The Value of a Variable or Method
To go to the next debugger instruction, type repl and press Enter, so the output will be like below...