Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The ultimate goal is to move a bunch of packages to
osdk-ts-clis
, specifically:@osdk/create-app
@osdk/create-app.*
@osdk/create-widget
@osdk/create-widget.*
@osdk/cli
@osdk/cli.common
@osdk/example-generator
NOTE: Intent is to keep
cli.cmd.typescript
in this repo still.This meant:
create-app
being the exact same as theclient
. (We now need to hard code theSTABLE_PACKAGE_CLIENT_VERSION
.@osdk/cli.cmd.typscript
not private. (We need to be able to depend on it from the other repo)@osdk/cli.common
not private. (Its going to move to the other repo but we need to be able to depend on it)handleGenerate.mts
->handleGenerate.ts
)Additional changes in here:
tsup
was doing some duplicative work related to havingshims: true
and thought this would not be needed any more as we don't need to have__dirname
in our code since everything is a module now.__dirname
entries, I had to fix a few places in the code that weren't using theimport.meta.url
method, and I renamed all the times we doconst __dirname = path.dirname(fileURLToPath(import.meta.url));
to a different name so I could validate in the output there wasn't any uses of__dirname
.