Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert properties-to-ts to TypeScript #2108

Merged
merged 10 commits into from
Feb 16, 2024
Merged

Conversation

KevinGhadyani-Okta
Copy link
Contributor

OKTA-691092

Summary

Converts properties-to-ts.js to properties-to-ts.ts. This allows us to check types on it just like any other file in the library.

I also swapped out ts-node for tsx because I couldn't run this with ts-node. In fact, it was giving a strange error of an unknown filetype .ts. Maybe a bad regex. Either way, tsx is the up 'n comer and worked great outta the box without any special configurations like ts-node, so I included it as part of this PR.

I verified both ts-node commands work: generate:i18n and generate:iconsIndex.

Testing & Screenshots

  • I have confirmed this change with my designer and the Odyssey Design Team.

N/A

lerna.json Outdated Show resolved Hide resolved
@KevinGhadyani-Okta KevinGhadyani-Okta merged commit 83e508e into main Feb 16, 2024
1 of 2 checks passed
@KevinGhadyani-Okta KevinGhadyani-Okta deleted the kg/OKTA-691092 branch February 16, 2024 17:42
benlister-okta pushed a commit that referenced this pull request Feb 20, 2024
* build: converts ts-node to tsx

* build: updates properties-to-ts to use TypeScript

* fix: exports FocusHandle from the correct location

* fix: removes unused recursive-readdir

* fix: minor refactor of filename in properties-to-ts

* fix: refactored properties.d.ts using future PR with better code docs

* fix: removed cyclical reference to icons index

* fix: renamed variables in convertPropertiesToJson
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants