Skip to content

Commit

Permalink
deps: lock file maintenance (#161)
Browse files Browse the repository at this point in the history
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Adam Skoufis <[email protected]>
  • Loading branch information
renovate[bot] and askoufis authored Nov 1, 2023
1 parent 642acf6 commit 64693a5
Show file tree
Hide file tree
Showing 14 changed files with 2,773 additions and 2,351 deletions.
4 changes: 2 additions & 2 deletions fixtures/direct/src/client.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { useState } from 'react';
import { render } from 'react-dom';
import { createRoot } from 'react-dom/client';

import {
getSyncMessage,
Expand Down Expand Up @@ -74,4 +74,4 @@ const node = document.createElement('div');

document.body.appendChild(node);

render(<App />, node);
createRoot(node).render(<App />);
2 changes: 1 addition & 1 deletion fixtures/direct/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module.exports = ({ disableVocabPlugin }) => ({
exclude: [/node_modules/],
use: [
{
loader: 'babel-loader',
loader: require.resolve('babel-loader'),
options: {
babelrc: false,
presets: [
Expand Down
1 change: 1 addition & 0 deletions fixtures/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"@types/loadable__component": "^5.13.1",
"@types/loadable__server": "^5.12.3",
"@types/loadable__webpack-plugin": "^5.7.1",
"@types/node": "^18.11.9",
"@types/react": "^18.0.9",
"@types/react-dom": "^18.0.4",
"@types/start-server-webpack-plugin": "^2.2.0",
Expand Down
4 changes: 1 addition & 3 deletions fixtures/server/src/server.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@ const statsFile = __non_webpack_require__('../dist-client/loadable-stats.json');

import { App } from './App';

import express from 'express';

import type { Request, Response } from 'express';
import express, { type Request, type Response } from 'express';

const app = express();

Expand Down
4 changes: 2 additions & 2 deletions fixtures/server/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ module.exports = () => [
exclude: [/node_modules/],
use: [
{
loader: 'babel-loader',
loader: require.resolve('babel-loader'),
options: {
babelrc: false,
plugins: ['@loadable/babel-plugin'],
Expand Down Expand Up @@ -66,7 +66,7 @@ module.exports = () => [
exclude: [/node_modules/],
use: [
{
loader: 'babel-loader',
loader: require.resolve('babel-loader'),
options: {
babelrc: false,
plugins: ['@loadable/babel-plugin'],
Expand Down
5 changes: 2 additions & 3 deletions fixtures/simple/src/client.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { VocabProvider, useTranslations } from '@vocab/react';
import React, { type ReactNode, useState } from 'react';
import { render } from 'react-dom';
import { createRoot } from 'react-dom/client';

import commonTranslations from './.vocab';
import clientTranslations from './client.vocab';
Expand Down Expand Up @@ -67,9 +67,8 @@ const node = document.createElement('div');

document.body.appendChild(node);

render(
createRoot(node).render(
<App>
<Content />
</App>,
node,
);
2 changes: 1 addition & 1 deletion fixtures/simple/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module.exports = ({ disableVocabPlugin }) => ({
exclude: [/node_modules/],
use: [
{
loader: 'babel-loader',
loader: require.resolve('babel-loader'),
options: {
babelrc: false,
presets: [
Expand Down
7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@
"lint:tsc": "tsc",
"release": "pnpm build && pnpm copy-readme-to-packages && changeset publish",
"version": "changeset version && pnpm install --lockfile-only",
"test": "jest",
"test:local": "PUPPETEER_EXPERIMENTAL_CHROMIUM_MAC_ARM=1 jest",
"test": "cross-env NODE_OPTIONS=--experimental-vm-modules jest",
"copy-readme-to-packages": "ts-node scripts/copy-readme-to-packages",
"start-fixture": "ts-node test-helpers/src/start-fixture",
"run-server-fixture": "ts-node test-helpers/src/run-server-fixture",
Expand All @@ -54,9 +53,9 @@
"@types/expect-puppeteer": "^5.0.3",
"@types/jest": "^29.4.0",
"@types/jest-environment-puppeteer": "^5.0.3",
"@types/node": "18.11.9",
"@types/node": "^18.11.9",
"@types/wait-on": "^5.3.1",
"babel-loader": "^9.1.2",
"cross-env": "^7.0.3",
"eslint": "^7.32.0",
"eslint-config-seek": "^11.1.0",
"expect-puppeteer": "^7.0.1",
Expand Down
3 changes: 1 addition & 2 deletions packages/cli/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/* eslint-disable no-console */
import type { UserConfig } from '@vocab/core';
import { pull, push } from '@vocab/phrase';
import { resolveConfig, compile, validate } from '@vocab/core';
import { type UserConfig, resolveConfig, compile, validate } from '@vocab/core';
import yargs from 'yargs';

import envCi from 'env-ci';
Expand Down
3 changes: 2 additions & 1 deletion packages/phrase/src/pull-translations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@ import { writeFile, mkdir } from './file';
import path from 'path';

import {
type TranslationFileContents,
type UserConfig,
loadAllTranslations,
getAltLanguageFilePath,
getAltLanguages,
getUniqueKey,
} from '@vocab/core';
import type { TranslationFileContents, UserConfig } from '@vocab/core';

import { pullAllTranslations, ensureBranch } from './phrase-api';
import { trace } from './logger';
Expand Down
12 changes: 6 additions & 6 deletions packages/phrase/src/push-translations.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
import type {
TranslationData,
TranslationsByLanguage,
UserConfig,
import {
loadAllTranslations,
getUniqueKey,
type TranslationData,
type TranslationsByLanguage,
type UserConfig,
} from '@vocab/core';

import {
ensureBranch,
deleteUnusedKeys as phraseDeleteUnusedKeys,
pushTranslations,
} from './phrase-api';
import { trace } from './logger';
import { loadAllTranslations, getUniqueKey } from '@vocab/core';

interface PushOptions {
branch: string;
Expand Down
7 changes: 5 additions & 2 deletions packages/webpack/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import { resolveConfigSync, validateConfig } from '@vocab/core';
import type { UserConfig } from '@vocab/core';
import {
type UserConfig,
resolveConfigSync,
validateConfig,
} from '@vocab/core';
import type { Compiler } from 'webpack';
import { trace } from './logger';

Expand Down
12 changes: 6 additions & 6 deletions packages/webpack/src/loader.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import path from 'path';

import type {
LoadedTranslation,
UserConfig,
TranslationMessagesByKey,
import {
type LoadedTranslation,
type UserConfig,
type TranslationMessagesByKey,
getDevLanguageFileFromTsFile,
loadTranslation,
} from '@vocab/core';
import * as cjsModuleLexer from 'cjs-module-lexer';
import * as esModuleLexer from 'es-module-lexer';
import { getDevLanguageFileFromTsFile, loadTranslation } from '@vocab/core';
import type { LoaderContext as WebpackLoaderContext } from 'webpack';

import { getChunkName } from './chunk-name';
Expand Down
Loading

0 comments on commit 64693a5

Please sign in to comment.