Skip to content

Commit

Permalink
Fix npm internal (#1543)
Browse files Browse the repository at this point in the history
* bundle internal libs

let's see if this let's us use yari in the content repo again

* only use @yari-internal for the deployer
  • Loading branch information
fiji-flo authored Oct 27, 2020
1 parent 0e90d82 commit 92f88bf
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 12 deletions.
2 changes: 1 addition & 1 deletion content/constants.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const fs = require("fs");
const path = require("path");
const { VALID_LOCALES } = require("@yari-internal/constants");
const { VALID_LOCALES } = require("../libs/constants");

require("dotenv").config({
path: path.join(__dirname, "..", process.env.ENV_FILE || ".env"),
Expand Down
2 changes: 1 addition & 1 deletion content/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const { getPopularities } = require("./popularities");
const Redirect = require("./redirect");
const Image = require("./image");
const { buildURL, memoize, slugToFolder, execGit } = require("./utils");
const { resolveFundamental } = require("@yari-internal/fundamental-redirects");
const { resolveFundamental } = require("../libs/fundamental-redirects");

module.exports = {
CONTENT_ROOT,
Expand Down
2 changes: 1 addition & 1 deletion content/redirect.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const fs = require("fs");
const path = require("path");

const { resolveFundamental } = require("@yari-internal/fundamental-redirects");
const { resolveFundamental } = require("../libs/fundamental-redirects");
const { CONTENT_ROOT, VALID_LOCALES } = require("./constants");

// Throw if this can't be a redirect from-URL.
Expand Down
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@
"dependencies": {
"@caporal/core": "2.0.2",
"@mdn/browser-compat-data": "2.0.3",
"@yari-internal/constants": "file:./libs/constants",
"@yari-internal/fundamental-redirects": "file:./libs/fundamental-redirects",
"braces": "^3.0.2",
"chalk": "4.1.0",
"cheerio": "1.0.0-rc.3",
Expand Down
2 changes: 1 addition & 1 deletion tool/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const open = require("open");
const fs = require("fs");
const path = require("path");

const { DEFAULT_LOCALE, VALID_LOCALES } = require("@yari-internal/constants");
const { DEFAULT_LOCALE, VALID_LOCALES } = require("../libs/constants");
const { Redirect, Document, buildURL } = require("../content");

const PORT = parseInt(process.env.SERVER_PORT || "5000");
Expand Down
6 changes: 0 additions & 6 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3758,12 +3758,6 @@
resolved "https://registry.yarnpkg.com/@xtuc/long/-/long-4.2.2.tgz#d291c6a4e97989b5c61d9acf396ae4fe133a718d"
integrity sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ==

"@yari-internal/constants@file:./libs/constants":
version "0.0.1"

"@yari-internal/fundamental-redirects@file:./libs/fundamental-redirects":
version "0.0.1"

abab@^2.0.0, abab@^2.0.3:
version "2.0.4"
resolved "https://registry.yarnpkg.com/abab/-/abab-2.0.4.tgz#6dfa57b417ca06d21b2478f0e638302f99c2405c"
Expand Down

0 comments on commit 92f88bf

Please sign in to comment.