Skip to content

Commit

Permalink
feat: modus-sdk-as cli component
Browse files Browse the repository at this point in the history
  • Loading branch information
JairusSW committed Oct 10, 2024
1 parent df0f8d9 commit 88774a4
Show file tree
Hide file tree
Showing 16 changed files with 23 additions and 12 deletions.
2 changes: 1 addition & 1 deletion runtime/languages/assemblyscript/testdata/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "testdata",
"private": true,
"scripts": {
"build": "node ./node_modules/@hypermode/modus-sdk-as/bin/build-plugin.js"
"build": "modus-as-build"
},
"dependencies": {
"@hypermode/modus-sdk-as": "../../../../sdk/assemblyscript/src",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"license": "Apache-2.0",
"type": "module",
"scripts": {
"build": "node ./node_modules/@hypermode/modus-sdk-as/bin/build-plugin.js",
"build": "modus-as-build",
"lint": "eslint .",
"pretty": "prettier --write .",
"pretty:check": "prettier --check ."
Expand Down
2 changes: 1 addition & 1 deletion sdk/assemblyscript/examples/classification/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"license": "Apache-2.0",
"type": "module",
"scripts": {
"build": "node ./node_modules/@hypermode/modus-sdk-as/bin/build-plugin.js",
"build": "modus-as-build",
"lint": "eslint .",
"pretty": "prettier --write .",
"pretty:check": "prettier --check ."
Expand Down
2 changes: 1 addition & 1 deletion sdk/assemblyscript/examples/collection/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"license": "Apache-2.0",
"type": "module",
"scripts": {
"build": "node ./node_modules/@hypermode/modus-sdk-as/bin/build-plugin.js",
"build": "modus-as-build",
"lint": "eslint .",
"pretty": "prettier --write .",
"pretty:check": "prettier --check ."
Expand Down
2 changes: 1 addition & 1 deletion sdk/assemblyscript/examples/dgraph/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"license": "Apache-2.0",
"type": "module",
"scripts": {
"build": "node ./node_modules/@hypermode/modus-sdk-as/bin/build-plugin.js",
"build": "modus-as-build",
"lint": "eslint .",
"pretty": "prettier --write .",
"pretty:check": "prettier --check ."
Expand Down
2 changes: 1 addition & 1 deletion sdk/assemblyscript/examples/embedding/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"license": "Apache-2.0",
"type": "module",
"scripts": {
"build": "node ./node_modules/@hypermode/modus-sdk-as/bin/build-plugin.js",
"build": "modus-as-build",
"lint": "eslint .",
"pretty": "prettier --write .",
"pretty:check": "prettier --check ."
Expand Down
2 changes: 1 addition & 1 deletion sdk/assemblyscript/examples/graphql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"license": "Apache-2.0",
"type": "module",
"scripts": {
"build": "node ./node_modules/@hypermode/modus-sdk-as/bin/build-plugin.js",
"build": "modus-as-build",
"lint": "eslint .",
"pretty": "prettier --write .",
"pretty:check": "prettier --check ."
Expand Down
3 changes: 3 additions & 0 deletions sdk/assemblyscript/examples/http/package-lock.json

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

2 changes: 1 addition & 1 deletion sdk/assemblyscript/examples/http/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"license": "Apache-2.0",
"type": "module",
"scripts": {
"build": "node ./node_modules/@hypermode/modus-sdk-as/bin/build-plugin.js",
"build": "modus-as-build",
"lint": "eslint .",
"pretty": "prettier --write .",
"pretty:check": "prettier --check ."
Expand Down
2 changes: 1 addition & 1 deletion sdk/assemblyscript/examples/postgresql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"license": "Apache-2.0",
"type": "module",
"scripts": {
"build": "node ./node_modules/@hypermode/modus-sdk-as/bin/build-plugin.js",
"build": "modus-as-build",
"lint": "eslint .",
"pretty": "prettier --write .",
"pretty:check": "prettier --check ."
Expand Down
2 changes: 1 addition & 1 deletion sdk/assemblyscript/examples/simple/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"license": "Apache-2.0",
"type": "module",
"scripts": {
"build": "node ./node_modules/@hypermode/modus-sdk-as/bin/build-plugin.js",
"build": "modus-as-build",
"lint": "eslint .",
"pretty": "prettier --write .",
"pretty:check": "prettier --check ."
Expand Down
2 changes: 1 addition & 1 deletion sdk/assemblyscript/examples/textgeneration/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"license": "Apache-2.0",
"type": "module",
"scripts": {
"build": "node ./node_modules/@hypermode/modus-sdk-as/bin/build-plugin.js",
"build": "modus-as-build",
"lint": "eslint .",
"pretty": "prettier --write .",
"pretty:check": "prettier --check ."
Expand Down
2 changes: 1 addition & 1 deletion sdk/assemblyscript/examples/vectors/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"license": "Apache-2.0",
"type": "module",
"scripts": {
"build": "node ./node_modules/@hypermode/modus-sdk-as/bin/build-plugin.js",
"build": "modus-as-build",
"lint": "eslint .",
"pretty": "prettier --write .",
"pretty:check": "prettier --check ."
Expand Down
2 changes: 2 additions & 0 deletions sdk/assemblyscript/src/bin/build-plugin.js
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env node

/*
* Copyright 2024 Hypermode Inc.
* Licensed under the terms of the Apache License, Version 2.0
Expand Down
3 changes: 3 additions & 0 deletions sdk/assemblyscript/src/package-lock.json

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

3 changes: 3 additions & 0 deletions sdk/assemblyscript/src/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
"author": "Hypermode Inc.",
"license": "Apache-2.0",
"type": "module",
"bin": {
"modus-as-build": "./bin/build-plugin.js"
},
"scripts": {
"test": "ast run",
"pretest": "ast build && tsc -p ./tests",
Expand Down

0 comments on commit 88774a4

Please sign in to comment.