@sequenceholdings/artifact-studio 0.1.0 → 0.1.1
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.
package/dist/cli.js
CHANGED
|
@@ -94,22 +94,19 @@ async function initCommand(args) {
|
|
|
94
94
|
await replaceInFile(join(dir, 'artifact.bundle.yml'), /\{\{slug\}\}/g, slug);
|
|
95
95
|
await replaceInFile(join(dir, 'artifact.bundle.yml'), /\{\{title\}\}/g, titleize(slug));
|
|
96
96
|
await replaceInFile(join(dir, 'package.json'), /\{\{slug\}\}/g, slug);
|
|
97
|
-
// TODO(npm-publish): switch back to ^semver from the registry once both
|
|
98
|
-
// @sequenceholdings/atlas-ui and @sequenceholdings/artifact-studio are published to npm.
|
|
99
97
|
const pkgJson = join(dir, 'package.json');
|
|
100
|
-
|
|
101
|
-
|
|
98
|
+
const atlasUiVersion = readPackageVersion('@sequenceholdings/atlas-ui');
|
|
99
|
+
const artifactStudioVersion = readPackageVersion('@sequenceholdings/artifact-studio');
|
|
100
|
+
await replaceInFile(pkgJson, /"@sequenceholdings\/atlas-ui": "workspace:\*"/, `"@sequenceholdings/atlas-ui": "^${atlasUiVersion}"`);
|
|
101
|
+
await replaceInFile(pkgJson, /"@sequenceholdings\/artifact-studio": "workspace:\*"/, `"@sequenceholdings/artifact-studio": "^${artifactStudioVersion}"`);
|
|
102
102
|
console.log(`[artifact-studio] initialized ${dir}`);
|
|
103
103
|
const relativeDir = relative(process.cwd(), dir) || '.';
|
|
104
104
|
console.log(`Next: cd ${relativeDir} && pnpm install && artifact-studio login && artifact-studio dev --env staging`);
|
|
105
105
|
return 0;
|
|
106
106
|
}
|
|
107
|
-
function
|
|
107
|
+
function readPackageVersion(packageName) {
|
|
108
108
|
const req = createRequire(import.meta.url);
|
|
109
|
-
return
|
|
110
|
-
}
|
|
111
|
-
function resolveArtifactStudioLocalPath() {
|
|
112
|
-
return resolve(dirname(fileURLToPath(import.meta.url)), '..');
|
|
109
|
+
return req(`${packageName}/package.json`).version;
|
|
113
110
|
}
|
|
114
111
|
async function loginCommand(args) {
|
|
115
112
|
const token = typeof args.flags.token === 'string' ? args.flags.token : undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sequenceholdings/artifact-studio",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "CLI and SDK types for building Artifact Studio apps",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -14,7 +14,8 @@
|
|
|
14
14
|
"./cli": {
|
|
15
15
|
"types": "./dist/cli.d.ts",
|
|
16
16
|
"default": "./dist/cli.js"
|
|
17
|
-
}
|
|
17
|
+
},
|
|
18
|
+
"./package.json": "./package.json"
|
|
18
19
|
},
|
|
19
20
|
"files": [
|
|
20
21
|
"dist",
|
|
@@ -34,7 +35,7 @@
|
|
|
34
35
|
"tw-animate-css": "^1.4.0",
|
|
35
36
|
"vite": "8.0.8",
|
|
36
37
|
"zod": "^4.1.13",
|
|
37
|
-
"@sequenceholdings/atlas-ui": "0.1.
|
|
38
|
+
"@sequenceholdings/atlas-ui": "0.1.1"
|
|
38
39
|
},
|
|
39
40
|
"devDependencies": {
|
|
40
41
|
"@types/js-yaml": "^4.0.9",
|