Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure that update tasks resolve dependencies from their own dir #63

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions polyfills/Intl/DateTimeFormat/update.task.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
var fs = require("fs");
var path = require("path");
var LocalesPath = path.dirname(
require.resolve("@formatjs/intl-datetimeformat/locale-data/en.js")
require.resolve("@formatjs/intl-datetimeformat/locale-data/en.js", { paths: [__dirname] })
);

var NumberFormatLocalesPath = path.dirname(require.resolve('@formatjs/intl-numberformat/locale-data/en.js'));
var NumberFormatLocalesPath = path.dirname(require.resolve('@formatjs/intl-numberformat/locale-data/en.js', { paths: [__dirname] }));

var IntlPolyfillOutput = path.resolve("polyfills/Intl/DateTimeFormat");
var LocalesPolyfillOutput = path.resolve(
Expand Down
2 changes: 1 addition & 1 deletion polyfills/Intl/DisplayNames/update.task.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

var fs = require('fs');
var path = require('path');
var LocalesPath = path.dirname(require.resolve('@formatjs/intl-displaynames/locale-data/en.js'));
var LocalesPath = path.dirname(require.resolve('@formatjs/intl-displaynames/locale-data/en.js', { paths: [__dirname] }));
var IntlPolyfillOutput = path.resolve('polyfills/Intl/DisplayNames');
var LocalesPolyfillOutput = path.resolve('polyfills/Intl/DisplayNames/~locale');
var TOML = require('@iarna/toml');
Expand Down
2 changes: 1 addition & 1 deletion polyfills/Intl/ListFormat/update.task.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

var fs = require('fs');
var path = require('path');
var LocalesPath = path.dirname(require.resolve('@formatjs/intl-listformat/locale-data/en.js'));
var LocalesPath = path.dirname(require.resolve('@formatjs/intl-listformat/locale-data/en.js', { paths: [__dirname] }));
var IntlPolyfillOutput = path.resolve('polyfills/Intl/ListFormat');
var LocalesPolyfillOutput = path.resolve('polyfills/Intl/ListFormat/~locale');
var TOML = require('@iarna/toml');
Expand Down
4 changes: 2 additions & 2 deletions polyfills/Intl/NumberFormat/update.task.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@

var fs = require('fs');
var path = require('path');
var LocalesPath = path.dirname(require.resolve('@formatjs/intl-numberformat/locale-data/en.js'));
var PluralRulesLocalesPath = path.dirname(require.resolve('@formatjs/intl-pluralrules/locale-data/en.js'));
var LocalesPath = path.dirname(require.resolve('@formatjs/intl-numberformat/locale-data/en.js', { paths: [__dirname] }));
var PluralRulesLocalesPath = path.dirname(require.resolve('@formatjs/intl-pluralrules/locale-data/en.js', { paths: [__dirname] }));
var IntlPolyfillOutput = path.resolve('polyfills/Intl/NumberFormat');
var LocalesPolyfillOutput = path.resolve('polyfills/Intl/NumberFormat/~locale');
var TOML = require('@iarna/toml');
Expand Down
2 changes: 1 addition & 1 deletion polyfills/Intl/PluralRules/update.task.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

var fs = require('fs');
var path = require('path');
var LocalesPath = path.dirname(require.resolve('@formatjs/intl-pluralrules/locale-data/en.js'));
var LocalesPath = path.dirname(require.resolve('@formatjs/intl-pluralrules/locale-data/en.js', { paths: [__dirname] }));
var IntlPolyfillOutput = path.resolve('polyfills/Intl/PluralRules');
var LocalesPolyfillOutput = path.resolve('polyfills/Intl/PluralRules/~locale');
var TOML = require('@iarna/toml');
Expand Down
6 changes: 3 additions & 3 deletions polyfills/Intl/RelativeTimeFormat/update.task.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@

var fs = require('fs');
var path = require('path');
var LocalesPath = path.dirname(require.resolve('@formatjs/intl-relativetimeformat/locale-data/en.js'));
var PluralRulesLocalesPath = path.dirname(require.resolve('@formatjs/intl-pluralrules/locale-data/en.js'));
var NumberFormatLocalesPath = path.dirname(require.resolve('@formatjs/intl-numberformat/locale-data/en.js'));
var LocalesPath = path.dirname(require.resolve('@formatjs/intl-relativetimeformat/locale-data/en.js', { paths: [__dirname] }));
var PluralRulesLocalesPath = path.dirname(require.resolve('@formatjs/intl-pluralrules/locale-data/en.js', { paths: [__dirname] }));
var NumberFormatLocalesPath = path.dirname(require.resolve('@formatjs/intl-numberformat/locale-data/en.js', { paths: [__dirname] }));
var IntlPolyfillOutput = path.resolve('polyfills/Intl/RelativeTimeFormat');
var LocalesPolyfillOutput = path.resolve('polyfills/Intl/RelativeTimeFormat/~locale');
var TOML = require('@iarna/toml');
Expand Down