File tree Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 52
52
uses : actions/upload-artifact@v3
53
53
with :
54
54
name : y-octo.${{ matrix.settings.target }}.node
55
- path : ./y-octo-node/*.node
55
+ path : ./y-octo-node/dist
56
56
if-no-files-found : error
57
57
58
58
test-node :
@@ -104,7 +104,7 @@ jobs:
104
104
uses : actions/download-artifact@v3
105
105
with :
106
106
name : y-octo.${{ matrix.settings.target }}.node
107
- path : ./y-octo-node
107
+ path : ./y-octo-node/dist
108
108
- name : Run node binding tests
109
109
run : ls -lah & ls -lah tests
110
110
working-directory : y-octo-node
Original file line number Diff line number Diff line change @@ -120,7 +120,8 @@ impl YDoc {
120
120
self . doc . apply_update_from_binary_v1 ( update) ?;
121
121
122
122
// if update received from remote and current client state has been changed
123
- // that means another client using same client id, we need to change the client id to avoid conflict
123
+ // that means another client using same client id, we need to change the client
124
+ // id to avoid conflict
124
125
if self . doc . get_state_vector ( ) . get ( & client) != before_current_state {
125
126
self . doc . renew_client ( ) ;
126
127
}
Original file line number Diff line number Diff line change 40
40
"artifacts" : " napi artifacts" ,
41
41
"build" : " yarn build:binding && yarn build:js" ,
42
42
"build:debug" : " yarn build:binding:debug && yarn build:js" ,
43
- "build:js" : " pkgroll" ,
43
+ "build:js" : " pkgroll -- - " ,
44
44
"build:binding" : " yarn build:binding:debug --release" ,
45
45
"build:binding:debug" : " napi build --platform --no-const-enum --manifest-path native/Cargo.toml --dts ../src/yocto.d.ts --js ../src/yocto.js -o ./dist" ,
46
46
"universal" : " napi universal" ,
47
47
"test" : " ava --concurrency 1 --serial --timeout 5s" ,
48
- "test:watch" : " yarn exec tsx ./scripts/run- test.mts all --watch" ,
49
- "test:coverage" : " NODE_OPTIONS= \" --import tsx \" c8 node ./scripts/run-test.mts all " ,
48
+ "test:watch" : " yarn test --watch" ,
49
+ "test:coverage" : " c8 ava --concurrency 1 --serial " ,
50
50
"version" : " napi version"
51
51
},
52
52
"version" : " 0.0.1" ,
You can’t perform that action at this time.
0 commit comments