Skip to content

Commit

Permalink
Add aliases entry to generated .luaurc file (#9)
Browse files Browse the repository at this point in the history
An upcoming feature in darklua (`.luaurc` support in
[#246](seaofvoices/darklua#246)) will now remove
the need to specify the aliases within the darklua config, and instead
only use the `.luaurc` files.

npmluau now sets an alias to `@pkg` to the generated `.luau-aliases` 
in the `node_modules/.luaurc` file.
  • Loading branch information
jeparlefrancais authored Jan 15, 2025
1 parent 99de26d commit 2cd7e85
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## Unreleased

- add a `pkg` alias entry to the generated `.luaurc` file in `node_modules` ([#9](https://github.com/seaofvoices/darklua/pull/9))

## 0.1.1

- re-export types in nested blocks ([#6](https://github.com/seaofvoices/darklua/pull/6))
Expand Down
1 change: 1 addition & 0 deletions src/createLuauRc.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ const path = require('path')
const NOCHECK_CONFIG = JSON.stringify(
{
languageMode: 'nocheck',
aliases: { pkg: './.luau-aliases' },
},
null,
4
Expand Down

0 comments on commit 2cd7e85

Please sign in to comment.