Skip to content

v11.2.0

Choose a tag to compare

@seek-oss-ci seek-oss-ci released this 30 Nov 00:19
· 795 commits to master since this release
8de08c7

Minor Changes

  • Config files can now be in TypeScript (#655)

    Previously, projects were configured using a sku.config.js file, which exported a config object.
    As most projects at SEEK are now TypeScript based, having a JS config file makes it impossible to reuse any of your production code in the config (e.g. routes).

    This change makes it possible to use a TypeScript config file, by default sku.config.ts.
    The easiest way to migrate is to change the module exports to a default export:

    - // sku.config.js
    + // sku.config.ts
    - module.exports = {
    + export default {
      clientEntry: 'src/client.tsx',
      // ...
    }

    But sku also now exports a type for the config object, to make it easier to setup and understand the configuration options.

    + import type { SkuConfig } from 'sku';
    +
    - module.exports = {
    + const config: SkuConfig = {
      clientEntry: 'src/client.tsx',
      // ...
    }
    +
    + export default config;

    sku init will now create TypeScript config files by default.

Patch Changes

  • Ensure translations are available when running storybook (#638)