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 <[email protected]>
  • Loading branch information
susnux committed Aug 17, 2023
1 parent 3509d9d commit 1487012
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 211 deletions.
3 changes: 0 additions & 3 deletions l10n/messages.pot
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,10 @@ msgid "All files"
msgstr ""

#: lib/filepicker.ts:183
#: lib/legacy.ts:135
msgid "Choose"
msgstr ""

#: lib/filepicker.ts:171
#: lib/legacy.ts:141
msgid "Copy"
msgstr ""

Expand All @@ -47,7 +45,6 @@ msgstr ""

#: lib/filepicker.ts:177
#: lib/filepicker.ts:191
#: lib/legacy.ts:147
msgid "Move"
msgstr ""

Expand Down
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 1487012

Please sign in to comment.