Skip to content

Commit c53c7c0

Browse files
authored
chore: update to new WIT files handling (#15)
1 parent cc16da0 commit c53c7c0

8 files changed

+6
-141
lines changed

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@
33
/coverage
44

55
# Build artifacts
6-
*.wasm
6+
.edgee/
7+
*.wasm

edgee-component.toml

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ subcategory = "analytics"
88
description = "Example Javascript component for data collection"
99
documentation = "https://github.com/edgee-cloud/example-js-component"
1010
repository = "https://github.com/edgee-cloud/example-js-component"
11-
wit-world-version = "0.5.0"
11+
language = "JavaScript"
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,8 +4,8 @@
44
"main": "src/index.js",
55
"types": "./types/wit.d.ts",
66
"scripts": {
7-
"generate": "npx @bytecodealliance/jco types wit/ -o types/",
8-
"build": "npx @bytecodealliance/jco componentize src/index.js --wit wit -o example-js-component.wasm -n data-collection -d all",
7+
"generate": "npx @bytecodealliance/jco types .edgee/wit -o types/",
8+
"build": "npx @bytecodealliance/jco componentize src/index.js --wit .edgee/wit -o example-js-component.wasm -n data-collection -d all",
99
"test": "mocha",
1010
"coverage": "c8 --src js --all -r text -r text-summary npm test"
1111
},

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)