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

add script to register asset #724

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

gregdhill
Copy link
Member

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

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",
Copy link
Member

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"
+        }
+      },

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See pr description

Copy link
Member

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]>
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.

2 participants