@freckle/i18n-scripts 1.1.21 → 1.1.23

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.
@@ -1 +1 @@
1
- * @freckle/frontenders
1
+ * @freckle/team-student-activities
@@ -5,16 +5,23 @@ on:
5
5
  push:
6
6
  branches: main
7
7
 
8
+ permissions:
9
+ contents: read
10
+
8
11
  jobs:
9
12
  build:
10
13
  runs-on: ubuntu-latest
11
14
  steps:
12
15
  - uses: actions/checkout@v7
16
+ - uses: pnpm/action-setup@v6
13
17
  - uses: actions/setup-node@v7
14
18
  with:
15
- cache: yarn
16
- - run: yarn install
17
- - run: yarn build
19
+ node-version-file: .nvmrc
20
+ cache: pnpm
21
+ - run: pnpm install --frozen-lockfile
22
+ - run: pnpm format-check
23
+ - run: pnpm lint
24
+ - run: pnpm build
18
25
  - uses: freckle/check-git-clean-action@v1
19
26
  with:
20
- hint: "Run yarn build to update your dist/"
27
+ hint: "Run pnpm build to update your dist/"
@@ -20,7 +20,6 @@ jobs:
20
20
  with:
21
21
  extra_plugins: |
22
22
  conventional-changelog-conventionalcommits@9
23
- @semantic-release/exec
24
23
  env:
25
24
  FORCE_COLOR: 1
26
25
  NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
package/.nvmrc ADDED
@@ -0,0 +1 @@
1
+ 24.21.0
package/.prettierrc CHANGED
@@ -8,7 +8,7 @@
8
8
  "jsxSingleQuote": false,
9
9
  "trailingComma": "none",
10
10
  "bracketSpacing": false,
11
- "jsxBracketSameLine": false,
11
+ "bracketSameLine": false,
12
12
  "arrowParens": "avoid",
13
13
  "requirePragma": false,
14
14
  "insertPragma": false,
package/.releaserc.yaml CHANGED
@@ -7,10 +7,6 @@ plugins:
7
7
  - - '@semantic-release/github'
8
8
  - successCommentCondition: false
9
9
 
10
- # Update dist, in case Dependabot PRs merged without doing so
11
- - - '@semantic-release/exec'
12
- - prepareCmd: 'yarn install && yarn run build'
13
-
14
10
  - '@semantic-release/npm'
15
11
 
16
12
  branches:
package/.restyled.yaml CHANGED
@@ -5,7 +5,7 @@ restylers:
5
5
  enabled: false # prefer prettier-json
6
6
  - prettier:
7
7
  include:
8
- - 'src/**/*.ts'
8
+ - 'src/**/*.js'
9
9
  - whitespace:
10
10
  include:
11
11
  - '**/*'
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2022 Renaissance Learning Inc
3
+ Copyright (c) 2022-present Renaissance Learning Inc
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -5,7 +5,7 @@ Scripts for i18n validation.
5
5
  ## Install
6
6
 
7
7
  ```sh
8
- yarn add @freckle/i18n-scripts
8
+ pnpm add @freckle/i18n-scripts
9
9
  ```
10
10
 
11
11
  ## Usage
@@ -0,0 +1,22 @@
1
+ import freckle from '@freckle/eslint-config'
2
+ import globals from 'globals'
3
+
4
+ export default [
5
+ // The shared config scopes its rules to `**/*.ts`; this package is plain
6
+ // JavaScript, so without retargeting it would lint nothing.
7
+ ...freckle.map(config => (config.files ? {...config, files: ['**/*.js']} : config)),
8
+ {
9
+ files: ['**/*.js'],
10
+ languageOptions: {
11
+ globals: globals.node
12
+ },
13
+ rules: {
14
+ // typescript-eslint turns this off because tsc reports undefined names;
15
+ // nothing type-checks this package, so it has to come back on.
16
+ 'no-undef': 'error',
17
+ // The sources are CommonJS until the ESM conversion in #97, which drops
18
+ // this waiver.
19
+ '@typescript-eslint/no-require-imports': 'off'
20
+ }
21
+ }
22
+ ]
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@freckle/i18n-scripts",
3
- "version": "1.1.21",
3
+ "version": "1.1.23",
4
4
  "description": "Scripts for i18n",
5
- "author": "Freckle",
5
+ "author": "Renaissance Learning Inc",
6
6
  "license": "MIT",
7
7
  "bin": {
8
8
  "check-i18n-variables": "./dist/check-i18n-variables.js",
@@ -15,15 +15,24 @@
15
15
  "url": "git+https://github.com/freckle/i18n-scripts-js.git"
16
16
  },
17
17
  "scripts": {
18
- "build": "rm -r dist && cp -r src dist"
18
+ "build": "rm -r dist && cp -r src dist",
19
+ "format": "prettier --write 'src/**/*.js'",
20
+ "format-check": "prettier --check 'src/**/*.js'",
21
+ "lint": "eslint"
19
22
  },
20
23
  "dependencies": {
21
24
  "esprima-walk": "0.1.0",
22
- "flow-parser": "0.331.0",
25
+ "flow-parser": "0.332.0",
23
26
  "i18next": "26.4.2",
24
27
  "i18next-http-backend": "^4.0.2",
25
28
  "i18next-icu": "^2.4.4",
26
- "intl-messageformat": "^12.1.0"
29
+ "intl-messageformat": "^12.1.2"
27
30
  },
28
- "packageManager": "yarn@4.18.0"
31
+ "devDependencies": {
32
+ "@freckle/eslint-config": "^1.1.0",
33
+ "eslint": "^10.11.0",
34
+ "globals": "^17.12.0",
35
+ "prettier": "^3.9.8"
36
+ },
37
+ "packageManager": "pnpm@12.6.0+sha512.3ef68f951cb111ac204b4a5a16f0b2ddf0da56a96e0413e81d855d9f0b55ef926714709028e1cd00c405c2c5fb7b9e8ec4dc46777c805d0373c2f2ff00fd20ec"
29
38
  }
@@ -1,10 +0,0 @@
1
- PRChecklist:
2
- where:
3
- path:
4
- matches: 'src/**/*'
5
- body: |
6
- **PR checklist**
7
-
8
- - [ ] Flow interfaces in `lib/` have been updated to reflect changes in `.d.ts` interfaces, if any.
9
- - [ ] Version in `package.json` is updated according to semver policy.
10
- - [ ] Built `dist/` reflects all changes in PR prior to merge.
@@ -1,12 +0,0 @@
1
- name: Checklist comments
2
- on:
3
- pull_request:
4
- types: [opened]
5
-
6
- jobs:
7
- checklist:
8
- runs-on: ubuntu-latest
9
- steps:
10
- - uses: freckle/commenter-action@main
11
- with:
12
- repo-token: '${{ secrets.GITHUB_TOKEN }}'