Skip to content

Commit

Permalink
v2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Vorlias committed Oct 1, 2023
1 parent c023c38 commit c6be04f
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 22 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ Below is a matrix of versions to roblox-ts versions. This should be approximatel

| roblox-ts | rbxts-transform-env | typescript |
| -------------------- | ------------------- | ---------- |
| `2.2.0` | `2.2.0` (`latest`) | `~5.2.2` |
| ` 2.1.x` | `2.1.0` (`beta`) | `~4.9.5` |
| ` 2.0.x` | `2.0.0` (`latest`) | `~4.8.2` |
| ` 2.0.x` | `2.0.0` | `~4.8.2` |
| `≥ 1.3.0 && ≤ 1.3.3` | `1.1.0-ts4.5` | `~4.5.5` |
| `= 1.2.9` | `1.1.0-ts4.4` | `~4.4` |
34 changes: 17 additions & 17 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rbxts-transform-env",
"version": "2.1.0-beta.2",
"version": "2.2.0",
"description": "Transformer for Roblox TypeScript compiler that allows getting values of process.env as string literals",
"main": "out/index.js",
"scripts": {
Expand All @@ -23,8 +23,8 @@
"chalk": "^4.1.1",
"colors": "^1.4.0",
"dotenv": "^8.2.0",
"ts-expose-internals": "=4.5.5",
"typescript": "~4.9.5"
"ts-expose-internals": "=5.2.2",
"typescript": "~5.2.2"
},
"devDependencies": {
"@rbxts/types": "^1.0.428",
Expand Down
2 changes: 1 addition & 1 deletion src/transform/macros/call/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const EnvCallAsStringMacro: CallMacro = {
getSymbol(state: TransformState) {
const envSymbol = state.symbolProvider.moduleFile?.envNamespace;
assert(envSymbol, "Could not find env macro symbol");
return [envSymbol.get("string"), envSymbol.get("expectString")];
return envSymbol.get("string");
},
transform(state: TransformState, callExpression: ts.CallExpression) {
const environment = state.environmentProvider;
Expand Down

0 comments on commit c6be04f

Please sign in to comment.