Skip to content

Commit 71a643b

Browse files
fix: more relative node_module access
1 parent 833e4b4 commit 71a643b

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

packages/core/spec/browser/index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
<head>
44
<title>Asciidoctor.js tests</title>
55
<meta charset="utf-8"/>
6-
<link href="../../node_modules/mocha/mocha.css" rel="stylesheet"/>
6+
<link href="../../../../node_modules/mocha/mocha.css" rel="stylesheet"/>
77
</head>
88
<body>
99
<div id="mocha"></div>
10-
<script src="../../node_modules/mocha/mocha.js"></script>
11-
<script src="../../node_modules/chai/chai.js"></script>
12-
<script src="../../node_modules/dirty-chai/lib/dirty-chai.js"></script>
10+
<script src="../../../../node_modules/mocha/mocha.js"></script>
11+
<script src="../../../../node_modules/chai/chai.js"></script>
12+
<script src="../../../../node_modules/dirty-chai/lib/dirty-chai.js"></script>
1313
<script src="../share/asciidoctor-spec.cjs"></script>
1414
<script src="../share/asciidoctor-include-file-spec.cjs"></script>
1515
<script src="../share/asciidoctor-include-https-spec.cjs"></script>

packages/core/spec/browser/util.cjs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,19 +62,19 @@ module.exports.configure = (mockServer) => {
6262
mimetype: 'text/plain'
6363
}))
6464
files.push(rootRelativeFile({
65-
path: '../../node_modules/mocha/mocha.js',
65+
path: '../../../../node_modules/mocha/mocha.js',
6666
mimetype: 'application/javascript'
6767
}))
6868
files.push(rootRelativeFile({
69-
path: '../../node_modules/mocha/mocha.css',
69+
path: '../../../../node_modules/mocha/mocha.css',
7070
mimetype: 'text/plain'
7171
}))
7272
files.push(rootRelativeFile({
73-
path: '../../node_modules/chai/chai.js',
73+
path: '../../../../node_modules/chai/chai.js',
7474
mimetype: 'application/javascript'
7575
}))
7676
files.push(rootRelativeFile({
77-
path: '../../node_modules/dirty-chai/lib/dirty-chai.js',
77+
path: '../../../../node_modules/dirty-chai/lib/dirty-chai.js',
7878
mimetype: 'application/javascript'
7979
}))
8080
files.push(rootRelativeFile({

packages/core/tasks/examples.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const compileExamples = () => {
1515

1616
const opalBuilder = OpalBuilder.create()
1717
opalBuilder.appendPaths('build/asciidoctor/lib')
18-
opalBuilder.appendPaths('node_modules/opal-compiler/src/stdlib')
18+
opalBuilder.appendPaths('../../node_modules/opal-compiler/src/stdlib')
1919
opalBuilder.appendPaths('lib')
2020

2121
fs.writeFileSync(path.join(builder.examplesBuildDir, 'userguide_test.js'), opalBuilder.build('examples/userguide_test.rb').toString(), 'utf8')

0 commit comments

Comments
 (0)