Skip to content

Commit

Permalink
See if using absolute path fixes can not find ohm?raw file issue
Browse files Browse the repository at this point in the history
  • Loading branch information
mationai committed May 13, 2022
1 parent 298f66f commit 3589cee
Show file tree
Hide file tree
Showing 5 changed files with 72 additions and 10 deletions.
45 changes: 39 additions & 6 deletions .pnp.cjs

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

Binary file not shown.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"ohm-js": "^16.3.4"
},
"devDependencies": {
"vite": "^2.9.8",
"vite": "v2.9.9",
"vitest": "^0.12.0"
}
}
2 changes: 1 addition & 1 deletion src/api.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import ohm from 'ohm-js'
import parser from './parser'
import grammar from './mationGrammar.ohm?raw'
import grammar from '/src/mationGrammar.ohm?raw'

/**
* @returns {
Expand Down
33 changes: 31 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -808,7 +808,7 @@ __metadata:
resolution: "mation-spec@workspace:."
dependencies:
ohm-js: ^16.3.4
vite: ^2.9.8
vite: v2.9.9
vitest: ^0.12.0
languageName: unknown
linkType: soft
Expand Down Expand Up @@ -1312,7 +1312,7 @@ __metadata:
languageName: node
linkType: hard

"vite@npm:^2.9.7, vite@npm:^2.9.8":
"vite@npm:^2.9.7":
version: 2.9.8
resolution: "vite@npm:2.9.8"
dependencies:
Expand Down Expand Up @@ -1341,6 +1341,35 @@ __metadata:
languageName: node
linkType: hard

"vite@npm:v2.9.9":
version: 2.9.9
resolution: "vite@npm:2.9.9"
dependencies:
esbuild: ^0.14.27
fsevents: ~2.3.2
postcss: ^8.4.13
resolve: ^1.22.0
rollup: ^2.59.0
peerDependencies:
less: "*"
sass: "*"
stylus: "*"
dependenciesMeta:
fsevents:
optional: true
peerDependenciesMeta:
less:
optional: true
sass:
optional: true
stylus:
optional: true
bin:
vite: bin/vite.js
checksum: 9292b8ba510a393d0c61c407ebfb4eaa818b2d8d106b3476cdc94cb57a0c59348a535936d698db04b35910a1cfdb16aeaf872f0f995b54cf6d7ed31bc7886deb
languageName: node
linkType: hard

"vitest@npm:^0.12.0":
version: 0.12.0
resolution: "vitest@npm:0.12.0"
Expand Down

0 comments on commit 3589cee

Please sign in to comment.