Ghost/ghost/importer-handler-content-files
Naz 74a1ab4525
Fixed root zip media/files copying during import
refs https://github.com/TryGhost/Toolbox/issues/523

- During import process of content files the files from the root directory were also copied over. This is causing chaos in the root of content folder with files that only needed for data import. For example, the csv files needed for Revue import were also copied over by "file importer" even though those do not belong to any content.
- The approach of filtering on a "handler" level was taken over filtering in the import manager due to how our globing patterns work. See a previous commit with reverted previous fix for more context.
2023-03-16 22:48:57 +01:00
..
lib Fixed root zip media/files copying during import 2023-03-16 22:48:57 +01:00
test Fixed root zip media/files copying during import 2023-03-16 22:48:57 +01:00
.eslintrc.js Renamed media import handler to file handler 2023-03-02 17:54:18 +08:00
index.js Renamed media import handler to file handler 2023-03-02 17:54:18 +08:00
package.json Update Test & linting packages 2023-03-13 02:36:20 +00:00
README.md Renamed media import handler to file handler 2023-03-02 17:54:18 +08:00

Importer Media

Importer content file handler

Usage

Develop

This is a monorepo package.

Follow the instructions for the top-level repo.

  1. git clone this repo & cd into it as usual
  2. Run yarn to install top-level dependencies.

Test

  • yarn lint run just eslint
  • yarn test run lint and tests