@rip-lang/swarm 1.2.12 → 1.2.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/swarm.rip +2 -2
package/package.json
CHANGED
package/swarm.rip
CHANGED
|
@@ -199,12 +199,12 @@ export swarm = (opts = {}) ->
|
|
|
199
199
|
jobs = tasks.length
|
|
200
200
|
|
|
201
201
|
# resolve paths
|
|
202
|
-
|
|
202
|
+
swarmDir = dirname(new URL(import.meta.url).pathname)
|
|
203
|
+
workerPath = join(swarmDir, 'lib', 'worker.mjs')
|
|
203
204
|
scriptPath = resolve(process.argv[1] or '')
|
|
204
205
|
|
|
205
206
|
# find rip-loader for workers — derive from swarm's own location
|
|
206
207
|
# (swarm is at node_modules/@rip-lang/swarm/, loader is at node_modules/rip-lang/)
|
|
207
|
-
swarmDir = dirname(new URL(import.meta.url).pathname)
|
|
208
208
|
loaderPath = join(swarmDir, '..', '..', 'rip-lang', 'rip-loader.js')
|
|
209
209
|
loaderPath = null unless existsSync(loaderPath)
|
|
210
210
|
|