Skip to content

Commit

Permalink
fix __dirname
Browse files Browse the repository at this point in the history
  • Loading branch information
domoritz committed Jan 31, 2024
1 parent 4677f01 commit 0b181c6
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
3 changes: 3 additions & 0 deletions scripts/build-normalized-example
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ import fs from 'fs';
import * as vl from '../build/src/index.js';
import stableStringify from 'fast-json-stable-stringify';
import compactStringify from 'json-stringify-pretty-compact';
import {dirname} from 'path';
import {fileURLToPath} from 'url';

const __dirname = dirname(fileURLToPath(import.meta.url));
const args = require('yargs').demand(0).argv;

const DIR = __dirname + '/..';
Expand Down
4 changes: 4 additions & 0 deletions scripts/build-normalized-examples
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ import fs from 'fs';
import * as vl from '../build/src/index.js';
import stableStringify from 'fast-json-stable-stringify';
import compactStringify from 'json-stringify-pretty-compact';
import {dirname} from 'path';
import {fileURLToPath} from 'url';

const __dirname = dirname(fileURLToPath(import.meta.url));

const DIR = __dirname + '/..';
const SPECS = '/examples/specs';
Expand Down
10 changes: 5 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8712,16 +8712,16 @@ y18n@^5.0.5:
resolved "https://registry.yarnpkg.com/y18n/-/y18n-5.0.8.tgz#7f4934d0f7ca8c56f95314939ddcd2dd91ce1d55"
integrity sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==

yallist@*, yallist@^4.0.0:
version "4.0.0"
resolved "https://registry.yarnpkg.com/yallist/-/yallist-4.0.0.tgz#9bb92790d9c0effec63be73519e11a35019a3a72"
integrity sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==

yallist@^3.0.2:
version "3.1.1"
resolved "https://registry.yarnpkg.com/yallist/-/yallist-3.1.1.tgz#dbb7daf9bfd8bac9ab45ebf602b8cbad0d5d08fd"
integrity sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==

yallist@^4.0.0:
version "4.0.0"
resolved "https://registry.yarnpkg.com/yallist/-/yallist-4.0.0.tgz#9bb92790d9c0effec63be73519e11a35019a3a72"
integrity sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==

yaml-front-matter@^4.1.1:
version "4.1.1"
resolved "https://registry.yarnpkg.com/yaml-front-matter/-/yaml-front-matter-4.1.1.tgz#66eaa9a998fc3dd723708c73aa8e06e79cac91c9"
Expand Down

0 comments on commit 0b181c6

Please sign in to comment.