Skip to content

Commit

Permalink
fix: packaging issues
Browse files Browse the repository at this point in the history
  • Loading branch information
6eDesign committed Sep 18, 2021
1 parent ce596d7 commit 866ae40
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "svelte-calendar",
"version": "3.0.18",
"main": "src/lib/index.js",
"main": "index.js",
"scripts": {
"dev": "svelte-kit dev",
"package": "svelte-kit package",
"prebuild": "rm -rf build",
"build": "svelte-kit build",
"postbuild": "touch docs/.nojekyll",
"postversion": "cp package.json ./package/ && cp package-lock.json ./package/ && mv ./package/index.d.ts ./package/index.js",
"postversion": "cp package.json ./package/ && cp package-lock.json ./package/",
"preview": "svelte-kit preview",
"lint": "prettier --check --plugin-search-dir=. . && eslint --ignore-path .gitignore .",
"format": "prettier --write --plugin-search-dir=. ."
Expand Down
2 changes: 1 addition & 1 deletion src/lib/docs/examples/Locale.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import 'dayjs/locale/ar-dz.js';
import 'dayjs/locale/he.js';
import dayjs from 'dayjs';
import { InlineCalendar, Swappable, themes } from '../../index.js';
import { InlineCalendar, Swappable, themes } from '../../index';
import { onDestroy } from 'svelte';
const locales = ['en', 'es', 'zh-cn', 'ar-dz', 'he'];
Expand Down
2 changes: 1 addition & 1 deletion svelte.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const config = {
/\/\/\s+\@example\((.*), (.*)\)/g,
(_, name, path) => {
const text = readFileSync(resolve('./src/lib/docs/examples', path), 'utf-8')
.replace(/\'\.\.\/\.\.\/\.\.\/\.\.\/index\'/g, "'svelte-calendar'")
.replace(/\'\.\.\/\.\.\/index\'/g, "'svelte-calendar'")
.split(/\<!\-\- Example Notes \-\-\>/)
.shift();
const highlighted = Prism.highlight(text, Prism.languages.svelte, 'svelte');
Expand Down

0 comments on commit 866ae40

Please sign in to comment.