Skip to content

Commit 6522a77

Browse files
authored
chore: update to new WIT files handling (#9)
1 parent 7893edf commit 6522a77

8 files changed

+6
-141
lines changed

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
/node_modules
33
/coverage
44

5+
.edgee/
56
src/index.js
67

78
# Build artifacts
8-
*.wasm
9+
*.wasm

edgee-component.toml

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ subcategory = "analytics"
88
description = "Example TypeScript component for data collection"
99
documentation = "https://github.com/edgee-cloud/example-ts-component"
1010
repository = "https://github.com/edgee-cloud/example-ts-component"
11-
wit-world-version = "0.5.0"
11+
language = "TypeScript"
12+
wit-version = "0.5.0"
1213

1314
[component.build]
1415
command = "npm install && npm run generate && npm run build"

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
"main": "src/index.ts",
55
"types": "types/wit.d.ts",
66
"scripts": {
7-
"generate": "npx @bytecodealliance/jco types wit/ -o types/",
7+
"generate": "npx @bytecodealliance/jco types .edgee/wit -o types",
88
"compile": "npx tsc",
9-
"build": "npm run compile && npx @bytecodealliance/jco componentize src/index.js --wit wit -o example-ts-component.wasm -n data-collection -d all",
9+
"build": "npm run compile && npx @bytecodealliance/jco componentize src/index.js --wit .edgee/wit -o example-ts-component.wasm -n data-collection -d all",
1010
"lint": "npx eslint",
1111
"test": "mocha",
1212
"coverage": "c8 --src js --all -r text -r text-summary npm test"

wit/deps.lock

-4
This file was deleted.

wit/deps.toml

-1
This file was deleted.

wit/deps/edgee/consent-mapping.wit

-13
This file was deleted.

wit/deps/edgee/data-collection.wit

-114
This file was deleted.

wit/world.wit

-5
This file was deleted.

0 commit comments

Comments
 (0)