@levino/shipyard-base 0.1.0 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,14 +1,6 @@
1
1
  ---
2
2
  import SidebarElement from './SidebarElement.astro';
3
-
4
- export type Entry = Record<
5
- string,
6
- {
7
- label?: string;
8
- href?: string;
9
- subEntry?: Entry;
10
- }
11
- >;
3
+ import { Entry } from './types';
12
4
 
13
5
  interface SidebarProps {
14
6
  entry: Entry;
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -0,0 +1,3 @@
1
+ @tailwind base;
2
+ @tailwind components;
3
+ @tailwind utilities;
package/lib/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import type { AstroIntegration } from 'astro';
2
2
  import type { Config } from './schemas/config.ts';
3
+ export type { Entry } from './components/types.ts';
3
4
  declare const _default: (config: Config) => AstroIntegration;
4
5
  export default _default;
package/lib/index.js CHANGED
@@ -1,5 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
1
  const shipyardConfigId = 'virtual:shipyard/config';
4
2
  const resolveId = {
5
3
  [shipyardConfigId]: `${shipyardConfigId}`,
@@ -7,7 +5,7 @@ const resolveId = {
7
5
  const load = (config) => ({
8
6
  [shipyardConfigId]: `export default ${JSON.stringify(config)}`,
9
7
  });
10
- exports.default = (config) => ({
8
+ export default (config) => ({
11
9
  name: 'shipyard',
12
10
  hooks: {
13
11
  'astro:config:setup': ({ updateConfig }) => {
@@ -3,7 +3,7 @@ import Footer from './Footer.astro'
3
3
  import '../globals.css'
4
4
  import config from 'virtual:shipyard/config'
5
5
  import GlobalDesktopNavigation from '../components/GlobalDesktopNavigation.astro'
6
- import type { NavigationTree, NavigationEntry } from '@/schemas/config'
6
+ import type { NavigationTree, NavigationEntry } from '../schemas/config'
7
7
  import { mapObjIndexed } from 'ramda'
8
8
  import SidebarNavigation from '../components/SidebarNavigation.astro'
9
9
 
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
package/lib/tools/cn.js CHANGED
@@ -1,10 +1,3 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.cn = void 0;
7
- const clsx_1 = __importDefault(require("clsx"));
8
- const tailwind_merge_1 = require("tailwind-merge");
9
- const cn = (...classes) => (0, tailwind_merge_1.twMerge)((0, clsx_1.default)(...classes));
10
- exports.cn = cn;
1
+ import clsx from 'clsx';
2
+ import { twMerge } from 'tailwind-merge';
3
+ export const cn = (...classes) => twMerge(clsx(...classes));
package/lib/types.js CHANGED
@@ -1,7 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MONTHS_DE = exports.MONTHS_EN = void 0;
4
- exports.MONTHS_EN = [
1
+ export const MONTHS_EN = [
5
2
  'january',
6
3
  'february',
7
4
  'march',
@@ -15,7 +12,7 @@ exports.MONTHS_EN = [
15
12
  'november',
16
13
  'december',
17
14
  ];
18
- exports.MONTHS_DE = [
15
+ export const MONTHS_DE = [
19
16
  'Januar',
20
17
  'Februar',
21
18
  'März',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@levino/shipyard-base",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "type": "module",
5
5
  "main": "lib/index.js",
6
6
  "peerDependencies": {
@@ -10,11 +10,16 @@
10
10
  "@tailwindcss/typography": "^0.5.10"
11
11
  },
12
12
  "scripts": {
13
- "build": "tsc -p tsconfig.build.json && rsync -avm --include='*/' --include='*.astro' --exclude='*' ./src/ ./lib/"
13
+ "build": "tsc -p tsconfig.build.json && rsync -avm --include='*/' --include='*.astro' --include='*.css' --exclude='*' ./src/ ./lib/",
14
+ "prepublishOnly": "npm run build"
14
15
  },
15
16
  "files": [
16
17
  "lib"
17
18
  ],
19
+ "exports": {
20
+ ".": "./lib/index.js",
21
+ "./*": "./lib/*"
22
+ },
18
23
  "devDependencies": {
19
24
  "@tailwindcss/typography": "^0.5.10",
20
25
  "@types/ramda": "^0.29.9",