@techninja/clearstack 0.3.21 → 0.3.22

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.
@@ -3,8 +3,13 @@
3
3
  * @module lib/package-gen
4
4
  */
5
5
 
6
- import { writeFileSync } from 'node:fs';
7
- import { resolve } from 'node:path';
6
+ import { writeFileSync, readFileSync } from 'node:fs';
7
+ import { resolve, dirname } from 'node:path';
8
+ import { fileURLToPath } from 'node:url';
9
+
10
+ const __dirname = dirname(fileURLToPath(import.meta.url));
11
+ const ownPkg = JSON.parse(readFileSync(resolve(__dirname, '..', 'package.json'), 'utf-8'));
12
+ const ownVersion = `^${ownPkg.version.replace(/^\^/, '')}`;
8
13
 
9
14
  /**
10
15
  * Write a package.json tailored to the project mode.
@@ -33,7 +38,7 @@ export async function writePackageJson(dest, vars, existing) {
33
38
  };
34
39
 
35
40
  const specDevDeps = {
36
- '@techninja/clearstack': '^0.2.0',
41
+ '@techninja/clearstack': ownVersion,
37
42
  '@types/node': '^22.0.0',
38
43
  '@open-wc/testing': '^4.0.0',
39
44
  '@web/test-runner': '^0.20.0',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@techninja/clearstack",
3
- "version": "0.3.21",
3
+ "version": "0.3.22",
4
4
  "type": "module",
5
5
  "description": "A no-build web component framework specification — scaffold, validate, and evolve spec-compliant projects",
6
6
  "bin": {
@@ -27,9 +27,7 @@ jobs:
27
27
  - run: npm ci
28
28
 
29
29
  - name: Publish to npm
30
- run: npm publish --provenance --access public
31
- env:
32
- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
30
+ run: NODE_AUTH_TOKEN="" npm publish --provenance --access public
33
31
 
34
32
  - name: Generate changelog from commits
35
33
  id: changelog