@_linked/org 1.0.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.
@@ -0,0 +1,20 @@
1
+ # Changesets
2
+
3
+ This package uses [changesets](https://github.com/changesets/changesets) for version management and publishing.
4
+
5
+ ## Adding a changeset
6
+
7
+ When making a change that should trigger a new release, run:
8
+
9
+ ```bash
10
+ npx changeset
11
+ ```
12
+
13
+ This generates a markdown file in `.changeset/` describing the change. Commit it with your PR.
14
+
15
+ On merge to `main`, the publish workflow either:
16
+
17
+ 1. Creates (or updates) a **Release PR** that bumps the version + updates `CHANGELOG.md`, or
18
+ 2. If the Release PR is already merged, publishes the new version to npm.
19
+
20
+ Changes that don't need a release (docs, CI config, tooling) can skip the changeset — the check is a warning, not a block.
@@ -0,0 +1,14 @@
1
+ {
2
+ "$schema": "https://unpkg.com/@changesets/config@3.1.1/schema.json",
3
+ "changelog": [
4
+ "@changesets/changelog-github",
5
+ { "repo": "linked-cm/org" }
6
+ ],
7
+ "commit": false,
8
+ "fixed": [],
9
+ "linked": [],
10
+ "access": "public",
11
+ "baseBranch": "main",
12
+ "updateInternalDependencies": "patch",
13
+ "ignore": []
14
+ }
@@ -0,0 +1,44 @@
1
+ name: Changeset Check
2
+
3
+ on:
4
+ pull_request:
5
+ branches:
6
+ - main
7
+
8
+ jobs:
9
+ changeset-check:
10
+ name: Check for changeset
11
+ # Skip the check on the automated Release PR.
12
+ if: ${{ github.head_ref != 'changeset-release/main' }}
13
+ runs-on: ubuntu-latest
14
+ steps:
15
+ - name: Checkout
16
+ uses: actions/checkout@v4
17
+ with:
18
+ fetch-depth: 0
19
+
20
+ - name: Check for changeset files
21
+ uses: actions/github-script@v7
22
+ with:
23
+ script: |
24
+ const { data: files } = await github.rest.pulls.listFiles({
25
+ owner: context.repo.owner,
26
+ repo: context.repo.repo,
27
+ pull_number: context.issue.number,
28
+ });
29
+
30
+ const hasChangeset = files.some(f =>
31
+ f.filename.startsWith('.changeset/') &&
32
+ f.filename.endsWith('.md') &&
33
+ f.filename !== '.changeset/README.md'
34
+ );
35
+
36
+ if (!hasChangeset) {
37
+ await github.rest.issues.createComment({
38
+ owner: context.repo.owner,
39
+ repo: context.repo.repo,
40
+ issue_number: context.issue.number,
41
+ body: "No changeset found. If this PR should trigger a release, run `npx changeset` and commit the generated file.\n\nIf this change doesn't need a release (docs, CI config, etc.), you can ignore this message."
42
+ });
43
+ core.warning('No changeset file found in this PR.');
44
+ }
@@ -0,0 +1,30 @@
1
+ name: CI
2
+
3
+ on:
4
+ pull_request:
5
+ branches:
6
+ - main
7
+
8
+ jobs:
9
+ build-and-test:
10
+ name: Build & Test
11
+ # Skip CI on the automated Release PR created by changesets/action.
12
+ if: ${{ !(github.event.pull_request.base.ref == 'main' && github.head_ref == 'changeset-release/main') }}
13
+ runs-on: ubuntu-latest
14
+ steps:
15
+ - name: Checkout
16
+ uses: actions/checkout@v4
17
+
18
+ - name: Setup Node.js
19
+ uses: actions/setup-node@v4
20
+ with:
21
+ node-version: 22.16.0
22
+
23
+ - name: Install dependencies
24
+ run: npm ci --legacy-peer-deps
25
+
26
+ - name: Build
27
+ run: npm run build
28
+
29
+ - name: Test
30
+ run: npm test --if-present
@@ -0,0 +1,42 @@
1
+ name: Publish
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+
8
+ concurrency: ${{ github.workflow }}-${{ github.ref }}
9
+
10
+ jobs:
11
+ release:
12
+ name: Publish Release
13
+ runs-on: ubuntu-latest
14
+ permissions:
15
+ contents: write
16
+ pull-requests: write
17
+ steps:
18
+ - name: Checkout
19
+ uses: actions/checkout@v4
20
+
21
+ - name: Setup Node.js
22
+ uses: actions/setup-node@v4
23
+ with:
24
+ node-version: 22.16.0
25
+ registry-url: 'https://registry.npmjs.org'
26
+
27
+ - name: Install dependencies
28
+ run: npm ci --legacy-peer-deps
29
+
30
+ - name: Build
31
+ run: npm run build
32
+
33
+ - name: Create release Pull Request or Publish
34
+ uses: changesets/action@v1
35
+ with:
36
+ publish: npx changeset publish
37
+ title: 'chore: release'
38
+ commit: 'chore: release'
39
+ env:
40
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
41
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
42
+ NPM_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
package/CHANGELOG.md ADDED
@@ -0,0 +1,7 @@
1
+ # @\_linked/org
2
+
3
+ ## 1.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`c8ce0ab`](https://github.com/linked-cm/org/commit/c8ce0ab6039807fbb5347a5aa57825e2a4b02487) - Initial release under the new publishing setup.
package/package.json ADDED
@@ -0,0 +1,71 @@
1
+ {
2
+ "name": "@_linked/org",
3
+ "description": "",
4
+ "author": {
5
+ "name": "",
6
+ "email": "",
7
+ "url": ""
8
+ },
9
+ "repository": {
10
+ "type": "git",
11
+ "url": ""
12
+ },
13
+ "version": "1.0.1",
14
+ "linkedPackage": true,
15
+ "main": "lib/index.js",
16
+ "types": "dist/lincd-org.d.ts",
17
+ "license": "ISC",
18
+ "scripts": {
19
+ "start": "npm exec linked dev",
20
+ "build": "npm exec linked build",
21
+ "prepublishOnly": "npm exec linked build production",
22
+ "postpublish": "npm exec linked register"
23
+ },
24
+ "keywords": [
25
+ "lincd",
26
+ "linked data",
27
+ "interoperable",
28
+ "semantic web",
29
+ "web3"
30
+ ],
31
+ "module": "lib/esm/index.js",
32
+ "exports": {
33
+ ".": {
34
+ "types": "./lib/esm/index.d.ts",
35
+ "import": "./lib/esm/index.js",
36
+ "require": "./lib/cjs/index.js"
37
+ },
38
+ "./*.js": {
39
+ "types": "./lib/esm/*.d.ts",
40
+ "import": "./lib/esm/*.js",
41
+ "require": "./lib/cjs/*.js"
42
+ },
43
+ "./*": {
44
+ "types": "./lib/esm/*.d.ts",
45
+ "import": "./lib/esm/*.js",
46
+ "require": "./lib/cjs/*.js"
47
+ }
48
+ },
49
+ "typesVersions": {
50
+ "*": {
51
+ "*": [
52
+ "lib/esm/*"
53
+ ]
54
+ }
55
+ },
56
+ "dependencies": {
57
+ "@_linked/core": "*",
58
+ "@_linked/schema": "*"
59
+ },
60
+ "devDependencies": {
61
+ "@_linked/cli": "^1.2",
62
+ "@types/node": "^22.13.14",
63
+ "tsconfig-to-dual-package": "^1.2.0",
64
+ "typescript": "5.7.3",
65
+ "@changesets/cli": "^2.29.8",
66
+ "@changesets/changelog-github": "^0.5.2"
67
+ },
68
+ "publishConfig": {
69
+ "access": "public"
70
+ }
71
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "extends": "./tsconfig.json",
3
+ "compilerOptions": {
4
+ "module": "commonjs",
5
+ "target": "es6",
6
+ "outDir": "lib/cjs"
7
+ }
8
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "extends": "./tsconfig.json",
3
+ "compilerOptions": {
4
+ "module": "esnext",
5
+ "target": "es2018",
6
+ "outDir": "lib/esm",
7
+ "moduleResolution": "node"
8
+ }
9
+ }