Skip to content

Commit

Permalink
chore: Drop legacy entry point which should never be published on v5
Browse files Browse the repository at this point in the history
Only required on stable4 for Nextcloud 27.1

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
  • Loading branch information
susnux committed Aug 17, 2023
1 parent 7abfd30 commit 32351d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 208 deletions.
205 changes: 0 additions & 205 deletions lib/legacy.ts

This file was deleted.

5 changes: 2 additions & 3 deletions vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createLibConfig } from '@nextcloud/vite-config'
import { readdirSync, readFileSync } from 'fs'
import gettextParser from 'gettext-parser'
import { po as poParser } from 'gettext-parser'
import { defineConfig } from 'vite'

const translations = readdirSync('./l10n')
Expand All @@ -10,7 +10,7 @@ const translations = readdirSync('./l10n')
const locale = file.slice(0, -'.pot'.length)

const po = readFileSync(path)
const json = gettextParser.po.parse(po)
const json = poParser.parse(po)
return {
locale,
json,
Expand All @@ -20,7 +20,6 @@ const translations = readdirSync('./l10n')
export default defineConfig((env) => {
return createLibConfig({
index: 'lib/index.ts',
legacy: 'lib/legacy.ts',
}, {
inlineCSS: false,
config: {
Expand Down

0 comments on commit 32351d8

Please sign in to comment.