-
Notifications
You must be signed in to change notification settings - Fork 20
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
add script to register asset #724
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: Gregory Hill <[email protected]>
@@ -2,7 +2,6 @@ | |||
"extends": "./tsconfig-base.json", | |||
"compilerOptions": { | |||
"target": "ES6", | |||
"module": "ES6", | |||
"outDir": "build/esm", | |||
"module": "CommonJS", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this not cause issues for the ui? Fwiw I had this
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -1,8 +1,15 @@
{
"extends": "./tsconfig-base.json",
+ "ts-node": {
+ // these options are overrides used only by ts-node
+ // same as the --compilerOptions flag and the TS_NODE_COMPILER_OPTIONS environment variable
+ "compilerOptions": {
+ "module": "commonjs"
+ }
+ },
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See pr description
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think my version is mergable but yea I guess we don't want the register-asset script
Signed-off-by: Gregory Hill <[email protected]>
Signed-off-by: Gregory Hill <[email protected]>
Signed-off-by: Gregory Hill <[email protected]>
The scripts no longer compile so I has to tweak the
tsconfig.json
to work with CommonJS so don't merge this.Use
ts-node scripts/register-asset.ts