@sequenceholdings/artifact-studio 0.1.1 → 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.
Files changed (2) hide show
  1. package/dist/build.js +1 -3
  2. package/package.json +1 -1
package/dist/build.js CHANGED
@@ -1,18 +1,16 @@
1
1
  import { mkdir, writeFile } from 'node:fs/promises';
2
2
  import { createRequire } from 'node:module';
3
3
  import { dirname, resolve } from 'node:path';
4
- import { fileURLToPath } from 'node:url';
5
4
  import { build as viteBuild } from 'vite';
6
5
  import { sha256Hex } from './hash.js';
7
6
  import { readArtifactStudioSource } from './project.js';
8
7
  const cliRequire = createRequire(import.meta.url);
9
- const cliDir = dirname(fileURLToPath(import.meta.url));
10
8
  const reactDir = dirname(cliRequire.resolve('react/package.json'));
11
9
  const reactDomDir = dirname(cliRequire.resolve('react-dom/package.json'));
12
10
  const atlasUiDir = dirname(cliRequire.resolve('@sequenceholdings/atlas-ui/package.json'));
13
11
  const atlasUiDist = resolve(atlasUiDir, 'dist');
14
12
  const tailwindCssPath = resolve(dirname(cliRequire.resolve('tailwindcss/package.json')), 'index.css');
15
- const twAnimateCssPath = resolve(cliDir, '..', 'node_modules', 'tw-animate-css', 'dist', 'tw-animate.css');
13
+ const twAnimateCssPath = resolve(dirname(cliRequire.resolve('tw-animate-css/package.json')), 'dist', 'tw-animate.css');
16
14
  function isAssetOutput(value) {
17
15
  return value.type === 'asset';
18
16
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sequenceholdings/artifact-studio",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "CLI and SDK types for building Artifact Studio apps",
5
5
  "type": "module",
6
6
  "bin": {