Skip to content

Commit

Permalink
Trying this jsr thing
Browse files Browse the repository at this point in the history
  • Loading branch information
WebReflection committed Feb 20, 2024
1 parent 13c0028 commit 63be154
Show file tree
Hide file tree
Showing 8 changed files with 53 additions and 8 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Publish
on:
push:
branches:
- main

jobs:
publish:
runs-on: ubuntu-latest

permissions:
contents: read
id-token: write

steps:
- uses: actions/checkout@v4

- name: Install Deno
uses: denoland/setup-deno@v1

- name: Publish package
run: deno publish --config jsr.json
4 changes: 3 additions & 1 deletion cjs/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
'use strict';
/*! (c) 2020 Andrea Giammarchi */
// <reference types="../types.d.ts" />

// (c) 2020-present Andrea Giammarchi

const {parse: $parse, stringify: $stringify} = JSON;
const {keys} = Object;
Expand Down
3 changes: 1 addition & 2 deletions es.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion esm.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion esm/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/*! (c) 2020 Andrea Giammarchi */
/// <reference types="../types.d.ts" />

// (c) 2020-present Andrea Giammarchi

const {parse: $parse, stringify: $stringify} = JSON;
const {keys} = Object;
Expand Down
4 changes: 3 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ self.Flatted = (function (exports) {
}, _typeof(o);
}

/*! (c) 2020 Andrea Giammarchi */
// <reference types="../types.d.ts" />

// (c) 2020-present Andrea Giammarchi

var $parse = JSON.parse,
$stringify = JSON.stringify;
Expand Down
20 changes: 20 additions & 0 deletions jsr.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"name": "@wr/flatted",
"version": "3.2.9",
"exports": "./esm/index.js",
"exclude": [
".github/*",
"./cjs/*",
"./coverage/*",
"./node_modules/*",
"./rollup/*",
"./test/*",
".gitignore",
".npmignore",
".npmrc",
"es.js",
"index.js",
"min.js",
"package-lock.json"
]
}
3 changes: 1 addition & 2 deletions min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 63be154

Please sign in to comment.